

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 0.25rem 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1;
}

.api-key-card {
    margin-bottom: 1.5rem;
}

.api-key-card .card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.api-key-card .card-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.api-key-card .card-header i {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.api-key-content {
    padding: 1.5rem;
}

.api-key-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.api-key-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    outline: none;
    transition: all 0.2s ease;
}

.api-key-input:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.api-key-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 0.95rem;
    outline: none;
    padding: 0;
}

.api-key-btn i {
    line-height: 1;
    display: block;
}

button.api-key-btn {
    padding: 0;
}

.api-key-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-1px);
}

.api-key-btn:active {
    transform: translateY(0);
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.regenerate-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.docs-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.content-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header h2 i {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.view-all {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.view-all:hover {
    color: white;
}

.activity-list {
    padding: 1rem 1.5rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.activity-icon.success {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.activity-icon.danger {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.activity-icon.warning {
    background: rgba(241, 196, 15, 0.1);
    color: #f1c40f;
}

.activity-icon.info {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-text {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.activity-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    padding: 1.5rem;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.action-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.action-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.action-item:hover .action-icon {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.action-item span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-align: center;
}

.action-item:hover span {
    color: white;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .content-card {
        margin-bottom: 1rem;
    }
    
    .card-header {
        padding: 1rem 1.25rem;
    }
    
    .card-header h2 {
        font-size: 0.95rem;
    }
    
    .activity-list {
        padding: 0.75rem 1rem;
    }
    
    .actions-grid {
        padding: 1.25rem;
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem 1.25rem;
    }
    
    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 1.35rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .api-key-input-container {
        margin-bottom: 0.5rem;
    }

    .api-key-input {
        font-size: 0.85rem;
        padding: 0.65rem 0.85rem;
    }

    .api-key-buttons {
        display: flex;
        gap: 0.5rem;
        justify-content: center;
    }

    .api-key-btn {
        flex: 1;
        min-width: calc(33.333% - 0.35rem);
        height: 40px;
        max-width: none;
    }

    .api-key-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
        padding: 1rem;
    }
    
    .action-item {
        padding: 0.85rem 0.75rem;
    }
    
    .action-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .action-item span {
        font-size: 0.8rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .card-header h2 {
        font-size: 0.9rem;
    }
    
    .view-all {
        font-size: 0.8rem;
    }
    
    .activity-list {
        padding: 0.75rem 1rem;
    }
    
    .activity-item {
        padding: 0.65rem 0;
    }
    
    .activity-icon {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
    
    .activity-text {
        font-size: 0.85rem;
    }
    
    .activity-time {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        gap: 0.65rem;
    }
    
    .stat-card {
        padding: 0.85rem 1rem;
        gap: 0.75rem;
    }
    
    .stat-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .api-key-content {
        padding: 1rem;
    }
    
    .api-key-input-container {
        margin-bottom: 0.5rem;
    }

    .api-key-input {
        font-size: 0.8rem;
        padding: 0.6rem 0.75rem;
    }

    .api-key-buttons {
        display: flex;
        gap: 0.5rem;
        justify-content: center;
    }

    .api-key-btn {
        height: 40px;
        font-size: 0.9rem;
        min-width: calc(33.333% - 0.35rem);
    }

    .api-key-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.85rem;
    }
    
    .action-item {
        flex-direction: row;
        justify-content: flex-start;
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .action-icon {
        width: 34px;
        height: 34px;
    }
    
    .action-item span {
        text-align: left;
    }
    
    .card-header {
        padding: 0.85rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .view-all {
        align-self: flex-end;
    }
}

.sidebar-link {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #e74c3c;
    border-radius: 50%;
    animation: pulse-notification 2s infinite;
}

@keyframes pulse-notification {
    0%, 100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-50%) scale(1.2);
    }
}

.custom-notification {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 400px;
    word-wrap: break-word;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
