/* ========== IMPORTAÇÃO DE FONTES ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ========== VARIÁVEIS CSS ========== */
:root {
    /* Paleta de Cores Principal - Tema ACF (Amarelo/Azul) */
    --primary-yellow: #FFFF00;
    --primary-yellow-hover: #FFD700;
    --primary-yellow-light: #FFFF66;
    --primary-yellow-dark: #FFC700;
    
    --primary-blue: #003087;
    --primary-blue-hover: #002266;
    --primary-blue-light: #0047B3;
    --primary-blue-dark: #001A4D;
    
    /* Cores Cinza */
    --gray-light: #f2f2f2;
    --gray-medium: #e0e0e0;
    --gray-dark: #333333;
    --gray-darker: #1a1a1a;
    
    /* Cores de Fundo */
    --sidebar-bg: var(--primary-blue);
    --sidebar-hover: var(--primary-blue-light);
    --content-bg: var(--gray-light);
    --card-bg: #ffffff;
    
    /* Cores de Texto */
    --text-primary: var(--gray-dark);
    --text-secondary: #666666;
    --text-light: #999999;
    --text-white: #ffffff;
    
    /* Cores de Status */
    --status-pendente: #fff3cd;
    --status-pendente-text: #856404;
    --status-consultado: #d4edda;
    --status-consultado-text: #155724;
    
    /* Bordas e Sombras */
    --border-color: #dddddd;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.15);
    
    /* Dimensões */
    --sidebar-width: 270px;
    --sidebar-collapsed-width: 80px;
    --header-height: 70px;
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========== RESET E BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--content-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
    background-color: var(--primary-yellow);
    color: var(--text-white);
}

::-moz-selection {
    background-color: var(--primary-yellow);
    color: var(--text-white);
}

/* ========== SIDEBAR ========== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    transition: width var(--transition-normal), transform var(--transition-normal);
    z-index: 1000;
    box-shadow: var(--shadow-xl);
    border-right: 1px solid rgba(255, 255, 0, 0.1);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: var(--header-height);
    background: rgba(0, 0, 0, 0.15);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--primary-yellow);
    white-space: nowrap;
    letter-spacing: -0.5px;
}

.logo i {
    font-size: 2rem;
    filter: drop-shadow(0 0 8px rgba(255, 102, 0, 0.4));
}

.sidebar.collapsed .logo-text {
    display: none;
}

.sidebar-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.625rem;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
    width: 40px;
    height: 40px;
    display: flex; /* Visível em desktop */
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    transform: scale(1.05);
}

/* Navegação da Sidebar */
.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    margin: 0.25rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    border-radius: var(--border-radius);
    position: relative;
}

.sidebar-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--primary-yellow);
    border-radius: 0 4px 4px 0;
    transition: height var(--transition-fast);
}

.sidebar-item:hover {
    background: rgba(255, 255, 0, 0.15);
    color: var(--primary-yellow);
    transform: translateX(5px);
}

.sidebar-item:hover::before {
    height: 70%;
}

.sidebar-item.active {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 100%);
    color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(255, 255, 0, 0.3);
    font-weight: 700;
}

.sidebar-item.active::before {
    height: 0;
}

.sidebar-item i {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
    transition: transform var(--transition-fast);
}

.sidebar-item:hover i {
    transform: scale(1.1);
}

.sidebar.collapsed .sidebar-text {
    display: none;
}

.sidebar.collapsed .sidebar-item {
    justify-content: center;
    margin: 0.25rem 0.75rem;
    padding: 1rem;
}

/* Footer da Sidebar */
.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 0;
    background: rgba(0, 0, 0, 0.15);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    margin: 0 1rem 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    transition: background var(--transition-fast);
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.08);
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-white);
}

.user-status {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.user-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.sidebar.collapsed .user-info {
    display: none;
}

.sidebar.collapsed .user-profile {
    justify-content: center;
    padding: 1rem;
}

.logout-item {
    color: #fc8181 !important;
    background: rgba(252, 129, 129, 0.1);
}

.logout-item:hover {
    background: rgba(252, 129, 129, 0.2) !important;
    color: #f56565 !important;
}

/* ========== MAIN WRAPPER ========== */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition-normal);
    background-color: var(--content-bg);
}

.main-wrapper.sidebar-collapsed {
    margin-left: var(--sidebar-collapsed-width);
}

/* ========== HEADER ========== */
.header {
    background: linear-gradient(135deg, var(--card-bg) 0%, #fafafa 100%);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.mobile-toggle {
    display: none; /* Escondido por padrão em desktop */
    background: var(--gray-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    transition: all var(--transition-fast);
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
}

.mobile-toggle:hover {
    background: var(--primary-yellow);
    color: var(--text-white);
    border-color: var(--primary-yellow);
}

.page-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 0.25rem;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-yellow);
    border-radius: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: var(--gray-light);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-fast);
}

.header-user:hover {
    background: rgba(255, 102, 0, 0.1);
    box-shadow: var(--shadow-sm);
}

.welcome-text {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 100%);
    color: var(--primary-blue);
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
}

.welcome-text strong {
    color: var(--primary-blue);
    font-weight: 700;
}

.user-avatar-small {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
    border: 2px solid var(--card-bg);
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* ========== CONTENT ========== */
.content {
    flex: 1;
    padding: 2.5rem;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== BOTÕES ARREDONDADOS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: var(--border-radius-lg);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    text-align: center;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.2px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn i {
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 100%);
    color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(255, 255, 0, 0.3);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 0, 0.4);
    background: linear-gradient(135deg, var(--primary-yellow-dark) 0%, var(--primary-yellow) 100%);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--gray-dark) 0%, var(--gray-darker) 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #404040 0%, var(--gray-dark) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
    background: rgba(255, 102, 0, 0.05);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3);
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 101, 101, 0.4);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ========== CARDS ========== */
.card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--primary-yellow);
}

.card-header {
    border-bottom: 3px solid var(--primary-yellow);
    padding-bottom: 1rem;
    margin-bottom: 1.75rem;
    border-radius: 2px;
}

.card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.3px;
}

/* ========== INPUTS ESTILIZADOS ========== */
.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.625rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all var(--transition-fast);
    font-family: inherit;
    background-color: var(--card-bg);
    color: var(--text-primary);
}

.form-control:hover {
    border-color: var(--gray-medium);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-yellow);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.1);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: var(--text-light);
}

/* Input com ícone */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 1rem;
    color: var(--text-light);
    pointer-events: none;
}

.input-group .form-control {
    padding-left: 3rem;
}

/* Textarea */
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Select */
select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
    appearance: none;
}

/* ========== ALERTS ========== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert i {
    font-size: 1.25rem;
}

.alert-error {
    background-color: #fff5f5;
    border-color: #fc8181;
    color: #c53030;
}

.alert-success {
    background-color: #f0fff4;
    border-color: #68d391;
    color: #22543d;
}

.alert-info {
    background-color: #ebf8ff;
    border-color: #63b3ed;
    color: #2c5282;
}

.alert-warning {
    background-color: #fffaf0;
    border-color: #f6ad55;
    color: #c05621;
}

/* ========== FOOTER ========== */
.footer {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--gray-light) 100%);
    padding: 1.75rem 2.5rem;
    border-top: 2px solid var(--border-color);
    text-align: center;
    margin-top: 3rem;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-content i {
    color: var(--primary-yellow);
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20%, 40% { transform: scale(1); }
}

/* ========== OVERLAY (MOBILE) ========== */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.overlay.active {
    display: block;
    opacity: 1;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .sidebar.collapsed {
        transform: translateX(-100%);
    }
    
    .main-wrapper {
        margin-left: 0;
    }
    
    .main-wrapper.sidebar-collapsed {
        margin-left: 0;
    }
    
    .mobile-toggle {
        display: flex !important; /* Mostra apenas em mobile */
    }
    
    .header {
        padding: 0 1rem;
    }
    
    .page-title {
        font-size: 1.25rem;
    }
    
    .welcome-text {
        display: none;
    }
    
    .content {
        padding: 1rem;
    }
    
    .sidebar-toggle {
        display: none !important; /* Esconde em mobile */
    }
}

@media (max-width: 480px) {
    .header-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* ========== SCROLLBAR PERSONALIZADA ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 100%);
    border-radius: 10px;
    border: 2px solid var(--gray-light);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-yellow-light) 0%, var(--primary-yellow) 100%);
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 102, 0, 0.3);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 102, 0, 0.5);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-yellow) var(--gray-light);
}

/* ========== UTILITÁRIOS ========== */
.text-orange {
    color: var(--primary-yellow) !important;
}

.bg-orange {
    background-color: var(--primary-yellow) !important;
}

.rounded {
    border-radius: var(--border-radius) !important;
}

.rounded-lg {
    border-radius: var(--border-radius-lg) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-md {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* ========== LOADING SPINNER ========== */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-light);
    border-top-color: var(--primary-yellow);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== BADGES ========== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: var(--border-radius-lg);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
}

.badge-orange {
    background: var(--primary-yellow);
    color: white;
}

.badge-gray {
    background: var(--gray-dark);
    color: white;
}

.badge-outline {
    background: transparent;
    border: 2px solid var(--primary-yellow);
    color: var(--primary-yellow);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.user-info {
    color: var(--secondary-color);
    font-size: 0.9rem;
    padding-left: 1rem;
    border-left: 2px solid var(--border-color);
}

/* Main content */
main {
    flex: 1;
    padding: 2rem 0;
}

/* Auth container */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
}

.auth-card h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2rem;
}

/* Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.form-control {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #475569;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Auth link */
.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--secondary-color);
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Content sections */
.content-section {
    max-width: 1000px;
    margin: 0 auto;
}

.welcome-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.welcome-card h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Info grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-list {
    list-style: none;
}

.info-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-list li:last-child {
    border-bottom: none;
}

.link-list {
    list-style: none;
}

.link-list li {
    margin-bottom: 0.75rem;
}

.link-list a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.link-list a:hover {
    color: var(--primary-hover);
    padding-left: 10px;
}

/* Features */
.features {
    margin-top: 2rem;
}

.features h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-item .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.feature-item h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-card .card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.dashboard-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.dashboard-card .card-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.dashboard-card .card-label {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Action section */
.action-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.action-section h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background-color: var(--card-bg);
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

footer p {
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .user-info {
        border-left: none;
        padding-left: 0;
        width: 100%;
        text-align: center;
    }
    
    .info-grid,
    .feature-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}
