/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a1628;
    min-height: 100vh;
    color: #f1f5f9;
    overflow-x: hidden;
}

/* Animação de batimento cardíaco */
@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    10% {
        transform: scale(1.15);
    }
    20% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.15);
    }
    40% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}

/* Header - Tema Médico - Otimizado */
.menu-header {
    background: rgba(10, 22, 40, 0.98);
    border-bottom: none;
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.menu-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #6366f1, #3b82f6, #06b6d4, #6366f1, transparent);
    background-size: 200% 100%;
    animation: headerGradientShift 12s ease infinite;
    will-change: background-position;
}

@keyframes headerGradientShift {
    0%, 100% { background-position: 0% 0; }
    50% { background-position: 200% 0; }
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

.logo-video {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: transparent;
    border-radius: 8px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.logo-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1;
    font-family: 'Montserrat', 'Inter', sans-serif;
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.4));
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 3.5px;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    font-family: 'Raleway', 'Montserrat', sans-serif;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(147, 197, 253, 0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
    opacity: 0.95;
}

.logo i {
    font-size: 2.5rem;
    color: #ef4444;
    animation: heartbeat 2s ease-in-out 3;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.2s ease;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Session Dot (reused in footer) */
.session-dot {
    width: 6px;
    height: 6px;
    background: #34d399;
    border-radius: 50%;
    animation: sessionPulse 2.5s ease-in-out infinite;
    box-shadow: 0 0 4px rgba(52, 211, 153, 0.6);
}

@keyframes sessionPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 4px rgba(52, 211, 153, 0.6); }
    50% { opacity: 0.6; box-shadow: 0 0 8px rgba(52, 211, 153, 0.9); }
}

.user-name-only {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.user-name {
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-name::before {
    content: '👤';
    font-size: 1.2rem;
}

.logout-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease, gap 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.logout-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: rotate(25deg);
    transition: left 0.5s ease;
}

.logout-btn:hover::after {
    left: 125%;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.45);
    gap: 0.65rem;
}

.logout-btn:hover i {
    animation: logoutIconSlide 0.4s ease;
}

@keyframes logoutIconSlide {
    0% { transform: translateX(0); }
    50% { transform: translateX(3px); }
    100% { transform: translateX(0); }
}

.logout-btn:active {
    transform: translateY(0);
}

.logout-btn i {
    font-size: 1rem;
}

/* Main Container */
.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Welcome Section - Simple Greeting Bar */
.welcome-section {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
}

.welcome-greeting-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    max-width: 600px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 14px;
    border: 1px solid rgba(99, 102, 241, 0.08);
}

.greeting-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.greeting-icon.morning {
    color: #f59e0b;
    animation: rotateSun 20s linear infinite;
}

.greeting-icon.afternoon {
    color: #f97316;
    animation: pulseSun 3s ease-in-out infinite;
}

.greeting-icon.evening {
    color: #8b5cf6;
    animation: glowMoon 4s ease-in-out infinite;
}

/* Animação do sol de manhã - rotação suave */
@keyframes rotateSun {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Animação do sol da tarde - pulse suave */
@keyframes pulseSun {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Animação da lua - brilho suave */
@keyframes glowMoon {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-2px);
        opacity: 0.8;
    }
}

.welcome-message {
    font-size: 0.95rem;
    font-weight: 400;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}

.welcome-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.welcome-greeting,
.welcome-time,
.welcome-date,
.system-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: default;
}

.welcome-greeting:hover,
.welcome-time:hover,
.welcome-date:hover,
.system-status:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
}

.welcome-greeting i,
.welcome-time i,
.welcome-date i {
    font-size: 1rem;
    color: var(--primary-color);
}

/* Ícones específicos para cada período do dia */
.welcome-greeting.morning i {
    color: #f59e0b; /* Laranja para manhã */
}

.welcome-greeting.afternoon i {
    color: #f97316; /* Laranja escuro para tarde */
}

.welcome-greeting.evening i {
    color: #8b5cf6; /* Roxo para noite */
}

/* Status do sistema com ponto verde pulsante */
.system-status {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.system-status i {
    font-size: 0.5rem;
    color: #10b981;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Animação suave quando o tempo atualiza */
.time-update {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0.5;
    }
    to {
        opacity: 1;
    }
}

.welcome-greeting i,
.welcome-time i {
    font-size: 1rem;
    color: var(--primary-color);
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.welcome-badge i {
    font-size: 1.5rem;
    color: #6366f1;
}

.welcome-badge span {
    color: #f1f5f9;
    font-size: 1.1rem;
    font-weight: 500;
}

.welcome-subtitle {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 400;
}

/* Systems Section */
.systems-section {
    margin-top: 1rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.section-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 12px;
    flex-shrink: 0;
}

.section-icon i {
    font-size: 1.5rem;
    color: white;
}

.section-info {
    flex: 1;
}

.section-title {
    color: #f1f5f9;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.section-description {
    color: #94a3b8;
    font-size: 0.875rem;
    margin: 0;
}

/* Systems Grid */
.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    justify-items: center;
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* System Cards - Gradient Border */
.system-card {
    background: rgba(30, 41, 59, 0.85);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(99, 102, 241, 0.2);
    overflow: visible;
    contain: layout style;
    /* Stagger entrada */
    opacity: 0;
    transform: translateY(20px);
    animation: cardStaggerIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* Gradient border overlay */
.system-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 17px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.2));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.system-card:hover::before {
    opacity: 1;
}

@keyframes cardStaggerIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efeito de brilho no hover (box-shadow em vez de filter blur) */
.card-glow {
    display: none;
}

/* Container do ícone com animação */
.card-icon-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.system-card:hover .card-icon {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.system-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px var(--card-glow-color, rgba(99, 102, 241, 0.15));
}

.card-icon i {
    font-size: 1.75rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Anel animado ao redor do ícone */
.card-icon-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    border: 2px dashed rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.4s ease, border-color 0.4s ease;
    z-index: 1;
}

.system-card:hover .card-icon-ring {
    border-color: rgba(99, 102, 241, 0.6);
    animation: ring-rotate 8s linear infinite;
}

@keyframes ring-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Título do card */
.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
    text-align: center;
    transition: color 0.3s ease;
}

/* Descrição do card */
.card-description {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 1.25rem;
}

/* Footer do card */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(99, 102, 241, 0.15);
}

/* Status */
.card-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    animation: status-pulse 2s ease-in-out infinite;
}

.status-dot.online {
    background: #10b981;
}

.status-dot.offline {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

@keyframes status-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.status-text {
    font-size: 0.8rem;
    color: #10b981;
    font-weight: 500;
}

/* Seta de navegação */
.card-arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease;
}

.card-arrow i {
    font-size: 0.85rem;
    color: #6366f1;
    transition: color 0.3s ease;
}

.system-card:hover .card-arrow {
    background: rgba(99, 102, 241, 0.3);
    transform: translateX(4px);
}

.system-card:hover .card-arrow i {
    color: #818cf8;
}

.system-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(99, 102, 241, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
}

.system-card:active {
    transform: translateY(-1px);
}

/* Modal de Seleção de OS */
.os-selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.os-selection-modal.show {
    opacity: 1;
    visibility: visible;
}

.os-selection-modal .modal-content {
    transform: translateY(20px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.os-selection-modal.show .modal-content {
    transform: translateY(0) scale(1);
}

.modal-content {
    background: rgba(25, 25, 40, 0.97);
    border-radius: 20px;
    padding: 3.5rem;
    max-width: 550px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #3b82f6, #06b6d4, #6366f1);
    background-size: 200% 100%;
    animation: headerGradientShift 4s ease infinite;
    border-radius: 20px 20px 0 0;
}

.modal-header {
    margin-bottom: 3rem;
}

.modal-title {
    font-size: 2rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.modal-title i {
    color: #6366f1;
}

.modal-subtitle {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* OS Options */
.os-options {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.os-option {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2.5rem;
    border-radius: 15px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.os-option::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transform: rotate(25deg);
    transition: left 0.5s ease;
}

.os-option:hover::after {
    left: 125%;
}

.os-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    background: #7c3aed;
}

.os-option:active {
    transform: translateY(-1px);
}

.os-option.admin-option {
    background: #ef4444;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.os-option.admin-option:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    background: #dc2626;
}

.os-option i {
    font-size: 1.4rem;
    margin-right: 1rem;
}

/* Modal Close Button */
.modal-close {
    background: rgba(71, 85, 105, 0.3);
    border: 2px solid rgba(148, 163, 184, 0.3);
    color: #cbd5e1;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(71, 85, 105, 0.5);
    border-color: #e74c3c;
    color: #e74c3c;
}

/* Loading Placeholder */
.loading-placeholder {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 3rem;
    color: #f1f5f9;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(99, 102, 241, 0.2);
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Animações */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 30, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: #f1f5f9;
    font-size: 1.3rem;
    font-weight: 500;
}

#loading-overlay .loading-spinner {
    margin-right: 1.5rem;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .systems-grid {
        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 0.5rem;
    }
    
    .user-info {
        justify-content: center;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .menu-container {
        padding: 2rem 1rem;
        min-height: calc(100vh - 100px);
    }
    
    .welcome-glass {
        padding: 1.25rem 1rem;
        border-radius: 14px;
    }
    
    .welcome-title {
        font-size: 2.8rem;
    }
    
    .welcome-subtitle {
        font-size: 1.15rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .systems-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .system-card {
        padding: 2.5rem 2rem;
        max-width: 100%;
    }
    
    .system-icon {
        font-size: 3.5rem;
    }
    
    .modal-content {
        padding: 2.5rem;
        margin: 1rem;
        border-radius: 25px;
    }
    
    .modal-title {
        font-size: 1.7rem;
    }
    
    .os-options {
        gap: 1rem;
    }
    
    .os-option {
        padding: 1.3rem 2rem;
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 1rem 0.5rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .welcome-title {
        font-size: 2.2rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .user-info {
        width: 100%;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }
    
    .user-name {
        font-size: 0.85rem;
        flex: 1;
        min-width: 0;
    }
    
    .user-name::before {
        font-size: 1rem;
    }
    
    .logout-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .logout-btn i {
        font-size: 0.9rem;
    }
    
    .system-card {
        padding: 2rem 1.5rem;
    }
    
    .system-icon {
        font-size: 3rem;
    }
    
    .system-title {
        font-size: 1.5rem;
    }
    
    .modal-content {
        padding: 2rem 1.5rem;
    }
    
    .os-option {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }
    
    .os-option i {
        font-size: 1.2rem;
    }
}

/* Telas muito pequenas */
@media (max-width: 360px) {
    .header-content {
        padding: 0.75rem 0.5rem;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .logo i {
        font-size: 2rem;
    }
    
    .user-info {
        padding: 0.6rem 0.8rem;
        gap: 0.5rem;
    }
    
    .user-name {
        font-size: 0.75rem;
        gap: 0.3rem;
    }
    
    .user-name::before {
        font-size: 0.9rem;
    }
    
    .logout-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        gap: 0.3rem;
    }
    
    .logout-btn i {
        font-size: 0.8rem;
    }
}

/* Focus States for Accessibility */
.system-card:focus,
.logout-btn:focus,
.os-option:focus,
.modal-close:focus {
    outline: 3px solid rgba(99, 102, 241, 0.8);
    outline-offset: 3px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: #f1f5f9;
}

::-moz-selection {
    background: rgba(99, 102, 241, 0.3);
    color: #f1f5f9;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 15, 30, 0.5);
}

::-webkit-scrollbar-thumb {
    background: #6366f1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8b5cf6;
}

/* ==================== RECENT ACTIVITY ==================== */

.recent-activity-section {
    margin-top: 2.5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeSlideUp 0.5s ease-out;
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.recent-activity-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0 0.25rem;
}

.recent-activity-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.recent-activity-title i {
    color: #6366f1;
    font-size: 0.9rem;
}

.recent-activity-link {
    color: #6366f1;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease, gap 0.2s ease;
}

.recent-activity-link:hover {
    color: #818cf8;
    gap: 0.6rem;
}

.recent-activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.recent-activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    animation: fadeSlideUp 0.3s ease-out backwards;
}

.recent-activity-item:nth-child(1) { animation-delay: 0.05s; }
.recent-activity-item:nth-child(2) { animation-delay: 0.1s; }
.recent-activity-item:nth-child(3) { animation-delay: 0.15s; }
.recent-activity-item:nth-child(4) { animation-delay: 0.2s; }
.recent-activity-item:nth-child(5) { animation-delay: 0.25s; }

.recent-activity-item:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(4px);
}

.recent-activity-item:hover .activity-icon {
    transform: scale(1.1);
}

.recent-activity-item:hover .activity-icon i {
    animation: iconBounceMenu 0.4s ease;
}

@keyframes iconBounceMenu {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2) rotate(-5deg); }
}

.activity-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
    font-size: 0.85rem;
    transition: transform 0.25s ease;
}

.activity-icon.status-open {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.activity-icon.status-progress {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.activity-icon.status-done {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.activity-icon.status-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.activity-icon.status-pending {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}

.activity-info {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-os-number {
    color: #818cf8;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.activity-meta {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.activity-dept {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.activity-dept i {
    font-size: 0.65rem;
    color: #6366f1;
    opacity: 0.7;
}

.activity-equip {
    color: #94a3b8;
}

.activity-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    flex-shrink: 0;
}

.activity-status-badge {
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
    white-space: nowrap;
}

.activity-status-badge.badge-open {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.activity-status-badge.badge-progress {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.activity-status-badge.badge-done {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.activity-status-badge.badge-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.activity-status-badge.badge-pending {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}

.activity-time {
    font-size: 0.75rem;
    color: #475569;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Skeleton */
.recent-activity-skeleton {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 12px;
}

.skeleton-line {
    height: 12px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 6px;
}

@keyframes skeleton-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

.skeleton-pulse {
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.recent-activity-empty {
    text-align: center;
    padding: 2rem;
    color: #64748b;
    font-size: 0.875rem;
}

.recent-activity-empty i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
    color: #475569;
}

@media (max-width: 768px) {
    .recent-activity-section {
        margin-top: 2rem;
    }
    .recent-activity-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    .activity-icon {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
}

/* ==================== NOTIFICAÇÕES FLUTUANTES - MENU ==================== */

/* Container das notificações flutuantes */
body .notifications-container .notification {
    background: linear-gradient(145deg, #1e1e32 0%, #252540 100%) !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    color: #f1f5f9 !important;
}

body .notifications-container .notification::before {
    background: linear-gradient(180deg, #6366f1, #4f46e5) !important;
}

body .notifications-container .notification.pending-approval::before,
body .notifications-container .notification.priority-high::before {
    background: linear-gradient(180deg, #f59e0b, #d97706) !important;
}

body .notifications-container .notification.new-message::before {
    background: linear-gradient(180deg, #3b82f6, #2563eb) !important;
}

/* Título da notificação */
body .notifications-container .notification-title {
    color: #f8fafc !important;
    font-weight: 600 !important;
}

/* Conteúdo da notificação */
body .notifications-container .notification-content {
    color: #94a3b8 !important;
    margin-left: 52px;
    margin-top: 4px;
    font-size: 0.875rem;
}

/* Meta (tempo) */
body .notifications-container .notification-meta {
    margin-left: 52px;
    margin-top: 8px;
    color: #64748b;
    font-size: 0.75rem;
}

body .notifications-container .notification-time {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
}

/* Ícone da notificação */
body .notifications-container .notification-icon {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4) !important;
}

body .notifications-container .notification.pending-approval .notification-icon,
body .notifications-container .notification.priority-high .notification-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4) !important;
}

body .notifications-container .notification.new-message .notification-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
}

/* Botão fechar */
body .notifications-container .notification-close {
    color: #64748b !important;
    background: transparent !important;
}

body .notifications-container .notification-close:hover {
    color: #f1f5f9 !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Ações/Botões da notificação */
body .notifications-container .notification-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    margin-left: 52px;
}

body .notifications-container .notification-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

body .notifications-container .notification-btn.primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

body .notifications-container .notification-btn.primary:hover {
    background: linear-gradient(135deg, #7c7ff7 0%, #6366f1 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Barra de progresso */
body .notifications-container .notification-progress {
    background: rgba(255, 255, 255, 0.1) !important;
}

body .notifications-container .notification-progress::after {
    background: linear-gradient(90deg, #6366f1, #8b5cf6) !important;
}

/* Botão trigger (sino) de notificações no header */
.notifications-trigger {
    position: relative;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a5b4fc;
    font-size: 1.2rem;
    margin-right: 12px;
}

.notifications-trigger:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.5);
    color: #c7d2fe;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.notifications-trigger i {
    color: inherit;
}

/* Badge de contagem */
.notifications-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    border: 2px solid #0a1628;
}

.notifications-count:empty,
.notifications-count[data-count="0"] {
    display: none;
}
/* ==================== PERFORMANCE & OTIMIZAÇÕES ==================== */

/* Prefers-reduced-motion para acessibilidade e PCs lentos */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.15s !important;
        scroll-behavior: auto !important;
    }
    .card-glow,
    .card-icon-ring {
        display: none !important;
    }
}

/* GPU Acceleration para elementos animados */
.notification-badge,
.confetti,
.snowflake,
.firework {
    will-change: transform;
    transform: translateZ(0);
}

/* ==================== BADGE DE NOTIFICAÇÃO DO CARD ==================== */

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 24px;
    height: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
    border: 2px solid #0a1628;
    z-index: 10;
    animation: badge-appear 0.3s ease-out;
}

.notification-badge.pulse {
    animation: badge-pulse 0.5s ease-out;
}

@keyframes badge-appear {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.8);
    }
}

/* Tooltip do badge */
.notification-tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    z-index: 100;
    pointer-events: none;
}

.notification-badge:hover .notification-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==================== LOADING SKELETON ==================== */

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    width: 100%;
    height: 180px;
    border-radius: 16px;
}

/* ==================== LAZY LOADING ==================== */

.lazy-load {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.lazy-load.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== KPI SUMMARY (inside activity section) ==================== */

.activity-kpis {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.kpi-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: default;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    animation: kpiFadeIn 0.4s ease-out both;
}

.kpi-item:nth-child(1) { animation-delay: 0.1s; }
.kpi-item:nth-child(2) { animation-delay: 0.2s; }
.kpi-item:nth-child(3) { animation-delay: 0.3s; }
.kpi-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes kpiFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.kpi-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

.kpi-item i {
    font-size: 0.85rem;
}

.kpi-open i { color: #60a5fa; }
.kpi-open { border-color: rgba(96, 165, 250, 0.2); }
.kpi-open:hover { border-color: rgba(96, 165, 250, 0.4); }

.kpi-pending i { color: #c084fc; }
.kpi-pending { border-color: rgba(192, 132, 252, 0.2); }
.kpi-pending:hover { border-color: rgba(192, 132, 252, 0.4); }

.kpi-done i { color: #34d399; }
.kpi-done { border-color: rgba(52, 211, 153, 0.2); }
.kpi-done:hover { border-color: rgba(52, 211, 153, 0.4); }

.kpi-messages i { color: #fbbf24; }
.kpi-messages { border-color: rgba(251, 191, 36, 0.2); }
.kpi-messages:hover { border-color: rgba(251, 191, 36, 0.4); }

.kpi-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f1f5f9;
    font-variant-numeric: tabular-nums;
    min-width: 1.2em;
    text-align: center;
}

.kpi-label {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Highlight when value > 0 */
.kpi-item.has-value {
    background: rgba(255, 255, 255, 0.08);
}

.kpi-pending.has-value {
    background: rgba(192, 132, 252, 0.08);
    border-color: rgba(192, 132, 252, 0.35);
}

.kpi-messages.has-value {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.35);
}

/* ==================== QUICK ACTIONS (inside activity section) ==================== */

.activity-quick-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    animation: kpiFadeIn 0.4s ease-out 0.5s both;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.quick-action-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    color: #c7d2fe;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.quick-action-btn:active {
    transform: translateY(0);
}

.quick-action-btn i {
    font-size: 0.9rem;
}

.quick-action-btn.qa-pending {
    border-color: rgba(192, 132, 252, 0.3);
    background: rgba(192, 132, 252, 0.1);
    color: #d8b4fe;
}

.quick-action-btn.qa-pending:hover {
    background: rgba(192, 132, 252, 0.2);
    border-color: rgba(192, 132, 252, 0.5);
    color: #e9d5ff;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

/* ==================== CARD HIGHLIGHT (OS card = principal) ==================== */

.system-card.card-highlight {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(99, 102, 241, 0.1);
}

.system-card.card-highlight .card-live-stats {
    display: flex;
}

.card-live-stats {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}

.card-stat {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.card-stat-value {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.card-stat.stat-open .card-stat-value { color: #60a5fa; }
.card-stat.stat-pending .card-stat-value { color: #c084fc; }
.card-stat.stat-messages .card-stat-value { color: #fbbf24; }

/* ==================== BADGE SHAKE ==================== */

@keyframes badgeShake {
    0%, 100% { transform: scale(1) rotate(0deg); }
    15% { transform: scale(1.15) rotate(-3deg); }
    30% { transform: scale(1.15) rotate(3deg); }
    45% { transform: scale(1.1) rotate(-2deg); }
    60% { transform: scale(1.1) rotate(2deg); }
    75% { transform: scale(1.05) rotate(0deg); }
}

.notification-badge.shake {
    animation: badgeShake 0.6s ease-in-out;
}

/* ==================== MINI PROGRESS BAR (Activity items) ==================== */

.activity-progress {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
}

.activity-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-progress-fill.progress-open { width: 25%; background: #60a5fa; }
.activity-progress-fill.progress-progress { width: 50%; background: #fbbf24; }
.activity-progress-fill.progress-pending { width: 75%; background: #c084fc; }
.activity-progress-fill.progress-done { width: 100%; background: #34d399; }
.activity-progress-fill.progress-rejected { width: 30%; background: #f87171; }

/* ==================== TYPING EFFECT ==================== */

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: #6366f1;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: typingBlink 0.7s step-end infinite;
}

@keyframes typingBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ==================== PAGE TRANSITION ==================== */

.page-transition-overlay {
    position: fixed;
    inset: 0;
    background: #0a1628;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.page-transition-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ==================== MENU TOAST ==================== */

.menu-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: rgba(25, 25, 42, 0.97);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 1050;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    max-width: 420px;
}

.menu-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.menu-toast-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 10px;
    flex-shrink: 0;
    color: white;
    font-size: 0.9rem;
    animation: toastBell 1s ease 0.5s;
}

@keyframes toastBell {
    0%, 100% { transform: rotate(0); }
    15% { transform: rotate(12deg); }
    30% { transform: rotate(-10deg); }
    45% { transform: rotate(8deg); }
    60% { transform: rotate(-5deg); }
    75% { transform: rotate(2deg); }
}

.menu-toast-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}

.menu-toast-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f1f5f9;
}

.menu-toast-text {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.4;
}

.menu-toast-action {
    padding: 0.4rem 0.9rem;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.menu-toast-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.menu-toast-close {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.25rem;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.menu-toast-close:hover {
    color: #f1f5f9;
}

/* ==================== FOOTER ==================== */

.menu-footer {
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(99, 102, 241, 0.08);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-version,
.footer-support {
    font-size: 0.75rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-version i,
.footer-support i {
    font-size: 0.7rem;
    color: #6366f1;
    opacity: 0.6;
}

.footer-separator {
    color: #334155;
    font-size: 0.6rem;
}

.footer-session {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #34d399;
    font-size: 0.75rem;
    font-weight: 500;
}

.footer-session svg {
    opacity: 0.7;
    stroke: #34d399;
}

.footer-session span:last-child {
    color: #475569;
}

@media (max-width: 768px) {
    .activity-kpis {
        gap: 0.5rem;
    }
    .kpi-item {
        padding: 0.4rem 0.75rem;
    }
    .kpi-label {
        display: none;
    }
    .menu-toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-width: none;
    }
    .activity-quick-actions {
        flex-direction: column;
        align-items: center;
    }
    .footer-content {
        flex-direction: column;
        gap: 0.4rem;
    }
    .footer-separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .activity-kpis {
        gap: 0.35rem;
    }
    .kpi-item {
        flex: 1;
        min-width: 60px;
        justify-content: center;
        padding: 0.4rem 0.5rem;
    }
    .kpi-item i {
        display: none;
    }
}