/* Reset e variáveis CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --primary-light: #7c8aff;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --dark-color: #0f172a;
    --gray-900: #1e293b;
    --gray-700: #334155;
    --gray-500: #64748b;
    --gray-300: #cbd5e1;
    --gray-100: #f1f5f9;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --radius: 16px;
    --radius-sm: 8px;
    --text-color: #ffffff;
    --text-color-secondary: rgba(255, 255, 255, 0.8);
    --background-color: #0f172a;
    --background-secondary: rgba(255, 255, 255, 0.1);
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Compatibilidade com código existente */
    --secondary-color: #3498db;
    --accent-color: #ef4444;
    --light-color: #f1f5f9;
    --gray-light: #cbd5e1;
    --gray-dark: #64748b;
    --shadow: var(--shadow-md);
    --shadow-hover: var(--shadow-xl);
    --gradient-primary: var(--primary);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
    color: var(--dark-color);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    animation: gradientShift 20s ease infinite;
    z-index: -1;
}

@keyframes gradientShift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-20px, -20px) rotate(120deg); }
    66% { transform: translate(20px, -10px) rotate(240deg); }
}

/* Animações globais */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(52, 152, 219, 0.5); }
    50% { box-shadow: 0 0 20px rgba(52, 152, 219, 0.8); }
    100% { box-shadow: 0 0 5px rgba(52, 152, 219, 0.5); }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header do painel */
.header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 0 0 24px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(102, 126, 234, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.6s ease-out;
    margin: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    animation: headerGlow 3s ease-in-out infinite;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #00bfff 20%, #0080ff 50%, #00bfff 80%, transparent 100%);
    box-shadow: 
        0 0 15px rgba(0, 191, 255, 0.8),
        0 0 30px rgba(0, 191, 255, 0.6),
        0 0 45px rgba(0, 191, 255, 0.4),
        0 2px 8px rgba(0, 191, 255, 0.7),
        0 4px 15px rgba(0, 191, 255, 0.5),
        0 8px 25px rgba(0, 191, 255, 0.3),
        0 15px 35px rgba(0, 191, 255, 0.2);
    animation: neonPulse 2s ease-in-out infinite alternate;
}

/* Reflexo da faixa neon */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    animation: headerGlow 3s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, 
        rgba(0, 191, 255, 0.08) 0%,
        rgba(0, 191, 255, 0.04) 40%,
        rgba(0, 191, 255, 0.02) 70%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 500;
    animation: reflectionShimmer 3s ease-in-out infinite;
}

@keyframes reflectionShimmer {
    0%, 100% { 
        opacity: 0.6;
        transform: scaleY(1);
    }
    50% { 
        opacity: 1;
        transform: scaleY(1.1);
    }
}

@keyframes neonPulse {
    0% {
        opacity: 0.7;
        box-shadow: 
            0 0 20px rgba(0, 191, 255, 0.6),
            0 0 40px rgba(0, 191, 255, 0.4),
            0 4px 15px rgba(0, 191, 255, 0.3);
    }
    100% {
        opacity: 1;
        box-shadow: 
            0 0 30px rgba(0, 191, 255, 0.8),
            0 0 60px rgba(0, 191, 255, 0.6),
            0 6px 25px rgba(0, 191, 255, 0.5);
    }
}

@keyframes headerGlow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    color: white;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 5px 15px rgba(102, 126, 234, 0.4));
}

.logo i {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    animation: logoPulse 3s ease-in-out infinite;
    margin-right: 15px;
    position: relative;
    overflow: hidden;
}

.logo i::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: logoShine 4s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    }
}

@keyframes logoShine {
    0% { transform: translateX(-200%) translateY(-200%) rotate(45deg); }
    50% { transform: translateX(200%) translateY(200%) rotate(45deg); }
    100% { transform: translateX(-200%) translateY(-200%) rotate(45deg); }
}

/* Navegação */
.nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: center;
    max-width: 900px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-item {
    position: relative;
}

.nav-item a, 
.nav-link-dropdown {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    white-space: nowrap;
    min-width: fit-content;
    height: 38px;
}

.nav-item a::before,
.nav-link-dropdown::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.nav-item a:hover::before,
.nav-link-dropdown:hover::before {
    transform: translateX(100%);
}

.nav-item a:hover,
.nav-link-dropdown:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    border-color: rgba(102, 126, 234, 0.3);
}

/* Estilo para botão ativo */
.nav-item a.active,
.nav-item a[style*="background: var(--secondary-color)"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.4);
}

.nav-item a i,
.nav-link-dropdown i {
    font-size: 14px;
    flex-shrink: 0;
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

/* Ajuste para garantir que o texto não quebre em múltiplas linhas */
.nav-item a span,
.nav-link-dropdown span {
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 10px !important;
    transition: transform 0.3s ease;
    margin-left: 2px;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-submenu {
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(102, 126, 234, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 200px;
    z-index: 1001;
    margin-top: 5px;
    overflow: hidden;
}

.nav-submenu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    animation: submenuGlow 2s ease-in-out infinite;
}

@keyframes submenuGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.nav-dropdown:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.submenu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.submenu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

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

.submenu-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    color: white;
    transform: translateX(8px);
    padding-left: 28px;
}

.submenu-item:hover::before {
    transform: scaleY(1);
}

.submenu-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: #667eea;
    transition: all 0.3s ease;
}

.submenu-item:hover i {
    color: white;
    transform: scale(1.1);
}

.user-menu {
    position: relative;
}

.user-dropdown {
    display: flex;
    align-items: center;
    color: white;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.user-dropdown:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.user-avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: avatarShine 3s ease-in-out infinite;
}

@keyframes avatarShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: -100%; }
}

/* Página de login */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50px, -50px) rotate(360deg); }
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 80px rgba(52, 152, 219, 0.1);
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 1s ease;
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 10px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: var(--gray-dark);
    font-size: 14px;
}

/* Formulários */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--white);
    position: relative;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    animation: glow 2s infinite;
}

.form-control.error {
    border-color: var(--accent-color);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Botões */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--white);
}

.btn-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: var(--white);
}

/* Dashboard principal */
.main-content {
    padding: 40px 0 30px 0;
    animation: fadeIn 1s ease;
    position: relative;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, 
        rgba(0, 191, 255, 0.06) 0%,
        rgba(0, 191, 255, 0.03) 50%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
    animation: contentReflection 4s ease-in-out infinite;
}

@keyframes contentReflection {
    0%, 100% { 
        opacity: 0.7;
        transform: scaleX(0.8);
    }
    50% { 
        opacity: 1;
        transform: scaleX(1);
    }
}


.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
    color: var(--white);
}

.dashboard-title {
    font-size: 36px;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.dashboard-subtitle {
    font-size: 16px;
    opacity: 0.9;
}

/* Seções do Dashboard */
.section-header {
    text-align: center;
    margin: 60px 0 40px 0;
    color: var(--white);
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header h2 i {
    margin-right: 15px;
    color: var(--secondary-color);
}

.section-header p {
    font-size: 16px;
    opacity: 0.9;
}

/* Cards de Estatísticas Modernos */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

@media (max-width: 1400px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    transition: all 0.3s ease;
}

.stat-card.primary::before { background: linear-gradient(90deg, #3498db, #2980b9); }
.stat-card.success::before { background: linear-gradient(90deg, #27ae60, #229954); }
.stat-card.warning::before { background: linear-gradient(90deg, #f39c12, #e67e22); }
.stat-card.info::before { background: linear-gradient(90deg, #9b59b6, #8e44ad); }

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.stat-card:hover::before {
    height: 100%;
    opacity: 0.03;
}

.stat-icon-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.stat-card.primary .stat-icon { background: linear-gradient(135deg, #3498db, #2980b9); }
.stat-card.success .stat-icon { background: linear-gradient(135deg, #27ae60, #229954); }
.stat-card.warning .stat-icon { background: linear-gradient(135deg, #f39c12, #e67e22); }
.stat-card.info .stat-icon { background: linear-gradient(135deg, #9b59b6, #8e44ad); }

.stat-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.stat-trend.up {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.stat-trend.stable {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.stat-trend.down {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 4px;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.stat-description {
    font-size: 12px;
    color: var(--gray-dark);
    line-height: 1.4;
    margin-bottom: 12px;
}

.stat-footer {
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: auto;
}

.stat-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gray-dark);
}

.stat-detail i {
    color: var(--secondary-color);
}

/* Performance Grid */
.performance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.performance-chart,
.activity-feed {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.chart-header,
.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.chart-header h3,
.feed-header h3 {
    font-size: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chart-period {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.metric-row {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 16px;
}

.metric-value {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    margin-left: 20px;
}

.metric-value .value {
    font-weight: 700;
    color: var(--primary-color);
    min-width: 50px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Feed de Atividades */
.feed-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: scale(1.05);
}

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

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

.activity-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
}

.activity-icon.success { background: linear-gradient(135deg, #27ae60, #229954); }
.activity-icon.warning { background: linear-gradient(135deg, #f39c12, #e67e22); }
.activity-icon.info { background: linear-gradient(135deg, #3498db, #2980b9); }

.activity-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.activity-time {
    font-size: 12px;
    color: var(--gray-dark);
}

/* Ações Rápidas Modernizadas */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.action-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    transition: all 0.3s ease;
}

.action-card.primary::before { background: linear-gradient(90deg, #3498db, #2980b9); }
.action-card.success::before { background: linear-gradient(90deg, #27ae60, #229954); }
.action-card.warning::before { background: linear-gradient(90deg, #f39c12, #e67e22); }
.action-card.danger::before { background: linear-gradient(90deg, #e74c3c, #c0392b); }

.action-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.action-card:hover::before {
    height: 100%;
    opacity: 0.03;
}

.action-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    margin-bottom: 24px;
}

.action-card.primary .action-icon { background: linear-gradient(135deg, #3498db, #2980b9); }
.action-card.success .action-icon { background: linear-gradient(135deg, #27ae60, #229954); }
.action-card.warning .action-icon { background: linear-gradient(135deg, #f39c12, #e67e22); }
.action-card.danger .action-icon { background: linear-gradient(135deg, #e74c3c, #c0392b); }

.action-content h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.action-content p {
    color: var(--gray-dark);
    margin-bottom: 20px;
    line-height: 1.6;
}

.action-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.action-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-dark);
    background: rgba(0, 0, 0, 0.05);
    padding: 6px 12px;
    border-radius: 8px;
}

.action-stats i {
    color: var(--secondary-color);
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-light);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--gray-light);
    border-color: var(--primary-color);
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

/* Cards do dashboard originais (mantidos para compatibilidade) */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transition: height 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.dashboard-card:hover::before {
    height: 100%;
    opacity: 0.05;
}

.card-icon {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

.card-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.card-description {
    color: var(--gray-dark);
    line-height: 1.6;
}

/* Alertas */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid;
    animation: slideInRight 0.5s ease;
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
    border-color: var(--success-color);
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.alert-warning {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
    border-color: var(--warning-color);
}

/* Responsividade */
@media (max-width: 1200px) {
    .header-container {
        padding: 12px 20px;
        gap: 15px;
    }
    
    .nav-menu {
        gap: 4px;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .nav-menu::-webkit-scrollbar {
        display: none;
    }
    
    .nav-item a, 
    .nav-link-dropdown {
        padding: 8px 10px;
        font-size: 12px;
        height: 36px;
    }
    
    .nav-item a i,
    .nav-link-dropdown i {
        font-size: 13px;
    }
}

/* Tablets e telas médias */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 3px;
    }
    
    .nav-item a, 
    .nav-link-dropdown {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .nav {
        max-width: 100%;
    }
}

/* Smartphones */
@media (max-width: 768px) {
    .header {
        border-radius: 0 0 16px 16px;
    }
    
    .header-container {
        flex-direction: column;
        gap: 16px;
        padding: 12px 20px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .logo i {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    .nav-menu {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-item a, 
    .nav-link-dropdown {
        width: 100%;
        justify-content: center;
        padding: 10px 8px;
        font-size: 11px;
    }
    
    .nav-item a i,
    .nav-link-dropdown i {
        display: none;
    }
    
    .nav-dropdown {
        grid-column: span 3;
    }
    
    .nav-submenu {
        position: fixed;
        top: auto;
        right: 20px;
        left: 20px;
        bottom: 80px;
        transform: translateY(10px) scale(0.95);
    }
    
    .nav-dropdown:hover .nav-submenu {
        transform: translateY(0) scale(1);
    }
    
    .dashboard-title {
        font-size: 28px;
    }
    
    .login-box {
        margin: 20px;
        padding: 30px 20px;
    }
}

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none;
}

/* Dropdown Menu do Usuário */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    margin-top: 8px;
    padding: 8px 0;
    animation: dropdownFadeIn 0.2s ease-out;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateX(4px);
}

.dropdown-item i {
    width: 16px;
    color: #00ffff;
    font-size: 14px;
}

.dropdown-item:hover i {
    color: #ffffff;
}

.dropdown-item.active,
.dropdown-item:active {
    background: rgba(0, 255, 255, 0.1);
    border-left: 3px solid #00ffff;
}

.dropdown-item.active i {
    color: #00ffff;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Estilos para tabela de usuários */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.data-table th,
.data-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table th {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.data-table tr {
    transition: all 0.3s ease;
}

.data-table tbody tr:hover {
    background: rgba(0, 255, 255, 0.05);
    transform: translateX(5px);
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #000;
    font-size: 14px;
}

.user-name {
    font-weight: 600;
    color: #ffffff;
}

.user-id {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-active {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.status-inactive {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4757;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.role-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.role-master {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: #000;
}

.role-admin {
    background: linear-gradient(45deg, #00ffff, #0080ff);
    color: #000;
}

.role-user {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-edit {
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.btn-edit:hover {
    background: rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-delete {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4757;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.btn-delete:hover {
    background: rgba(255, 0, 0, 0.3);
    transform: translateY(-2px);
}