/* ===========================================
   LIVIAGO - DESIGN MODERNO COM TEMAS
   =========================================== */

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========================================
   VARIÁVEIS DE TEMA - CLARO E ESCURO
   ======================================== */

/* Tema Escuro (Padrao) - Brand: Navy + Steel Blue + Red GO */
:root,
[data-theme="dark"] {
    /* Cores de fundo */
    --bg-primary: #0b1622;
    --bg-secondary: #0f1d2e;
    --bg-tertiary: #172a42;
    --bg-card: #132338;
    --bg-hover: #1a3050;
    --bg-input: #0f1d2e;

    /* Cores de destaque - Brand */
    --accent-primary: #4a9ebe;
    --accent-secondary: #5bb5d8;
    --accent-hover: #5bb5d8;
    --accent-glow: rgba(74, 158, 190, 0.25);
    --brand-blue: #4a9ebe;
    --brand-red: #e53935;

    /* Cores de texto */
    --text-primary: #eaf2fb;
    --text-secondary: #8aa8c7;
    --text-muted: #5a7a9a;
    --text-inverse: #0b1622;

    /* Bordas */
    --border-color: rgba(90, 165, 210, 0.12);
    --border-hover: rgba(90, 165, 210, 0.22);
    --border-focus: #4a9ebe;

    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);

    /* Overlays */
    --overlay-bg: rgba(5, 10, 18, 0.8);
    --modal-bg: #132338;

    /* Status */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
}

/* Tema Claro */
[data-theme="light"],
body.light-theme {
    /* Cores de fundo */
    --bg-primary: #f4f7fb;
    --bg-secondary: #edf2f8;
    --bg-tertiary: #dce5ef;
    --bg-card: #ffffff;
    --bg-hover: #eef5fa;
    --bg-input: #f8fafc;

    /* Cores de destaque - Brand */
    --accent-primary: #2d7fa5;
    --accent-secondary: #4a9ebe;
    --accent-hover: #236b8e;
    --accent-glow: rgba(45, 127, 165, 0.18);
    --brand-blue: #2d7fa5;
    --brand-red: #d32f2f;

    /* Cores de texto */
    --text-primary: #0d1b2a;
    --text-secondary: #3e5c76;
    --text-muted: #6b8ba8;
    --text-inverse: #ffffff;

    /* Bordas */
    --border-color: rgba(74, 158, 190, 0.15);
    --border-hover: rgba(74, 158, 190, 0.28);
    --border-focus: #2d7fa5;

    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(13, 27, 42, 0.08);
    --shadow-md: 0 4px 12px rgba(13, 27, 42, 0.1);
    --shadow-lg: 0 10px 24px rgba(13, 27, 42, 0.12);

    /* Overlays */
    --overlay-bg: rgba(13, 27, 42, 0.5);
    --modal-bg: #ffffff;

    /* Status */
    --success-color: #059669;
    --warning-color: #d97706;
    --error-color: #dc2626;
}

/* ========================================
   ESTILOS GERAIS
   ======================================== */

/* Tipografia */
:root {
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Fira Code', 'Monaco', 'Courier New', monospace;
}

/* Body */
body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Header/Navbar - DESIGN MODERNIZADO */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0 30px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 0;
}

/* Logo - DESIGN REFINADO */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: translateY(-2px);
}

.logo-small {
    height: 42px !important;
    width: auto !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Botão de Alternância de Tema */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.theme-toggle:hover {
    background: var(--bg-hover);
    transform: scale(1.1);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    fill: var(--text-primary);
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.dashboard-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control,
.form-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-input:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--border-focus);
    background: var(--bg-tertiary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Placeholder */
::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--text-inverse);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-warning {
    background: #ffc107;
    color: var(--text-primary);
}

.btn-warning:hover {
    background: #e0a800;
}

/* Tabelas */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table thead {
    background: var(--bg-tertiary);
}

.table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    padding: 12px;
    border-top: 1px solid var(--border-color);
    color: var(--text-primary);
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background: var(--bg-hover);
}

/* Modal/Popup */
.modal,
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-bg);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal.show,
.popup.show {
    display: flex;
}

.modal-content,
.popup-content {
    background: var(--modal-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-body {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* Sidebar */
.sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.sidebar-menu {
    list-style: none;
}

.sidebar-item {
    margin-bottom: 5px;
}

.sidebar-link {
    display: block;
    padding: 10px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: var(--accent-primary);
    color: var(--text-inverse);
}

/* Badges/Pills */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: var(--accent-primary);
    color: var(--text-inverse);
}

.badge-success {
    background: #28a745;
    color: white;
}

.badge-warning {
    background: #ffc107;
    color: #000;
}

.badge-danger {
    background: #dc3545;
    color: white;
}

.badge-info {
    background: #17a2b8;
    color: white;
}

/* Alerts/Notificações */
.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    border-color: #17a2b8;
    color: #17a2b8;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
    color: #28a745;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
    color: #856404;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #dc3545;
}

/* Chat/Mensagens */
.chat-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    margin-bottom: 20px;
}

.message {
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    max-width: 70%;
    word-wrap: break-word;
}

.message.user {
    background: var(--accent-primary);
    color: var(--text-inverse);
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

.message.assistant,
.message.ai {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 2px;
}

/* Input de Chat */
.chat-input-container {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.chat-input {
    flex: 1;
    padding: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* Loading/Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

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

/* Progress Bar */
.progress {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    width: 200px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Breadcrumbs */
.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: var(--text-secondary);
}

.breadcrumb-item a {
    color: var(--accent-primary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--text-muted);
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: var(--bg-card);
    min-width: 160px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    z-index: 100;
    margin-top: 5px;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    color: var(--text-primary);
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background: var(--bg-hover);
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }

.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Estilos do Logo */
.logo-liviago {
    max-width: 25% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.logo-liviago:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .logo-liviago {
        max-width: 40% !important;
    }
}

/* Transições suaves para mudança de tema */
* {
    transition: background-color 0.3s ease, 
                color 0.3s ease, 
                border-color 0.3s ease;
}

/* (seção removida - duplicada com a versão melhorada no início do arquivo) */

/* Menu de Navegação - DESIGN ATUALIZADO */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.nav-link.active {
    background: none;
    color: var(--accent-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 18px;
    right: 18px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--accent-glow);
}

/* Ações da Navbar */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Menu do Usuário */
.user-menu {
    position: relative;
}

/* Menu do Usuário - DESIGN REFINADO */
.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.user-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-name {
    font-weight: 500;
    color: var(--text-primary);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 250px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 15px;
    background: var(--bg-hover);
    border-radius: 8px 8px 0 0;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info strong {
    color: var(--text-primary);
}

.user-info small {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: var(--bg-hover);
}

.dropdown-item.text-danger {
    color: #dc3545;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-sidebar-close {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
}

.mobile-nav {
    padding: 15px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 5px;
    transition: background 0.2s ease;
}

.mobile-nav-link:hover {
    background: var(--bg-hover);
}

/* Conteúdo Principal */
.main-content {
    flex: 1;
    padding: 30px 0;
    min-height: calc(100vh - 120px);
}

/* App Container */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Dashboard Específicos */
/* Sistema de grid de 12 colunas para dashboard */
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    max-width: 100%;
}

.stats-grid .stat-card {
    flex: 1 0 calc(25% - 20px);
    min-width: 200px;
    max-width: calc(80% - 20px);
    box-sizing: border-box;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-error { color: var(--error-color); }

.small-text {
    font-size: 0.75rem;
    margin-top: 8px;
}

/* Responsividade: 2 colunas em tablets */
@media (max-width: 992px) {
    .stats-grid .stat-card {
        flex: 1 0 calc(50% - 20px);
    }
}

/* 1 coluna em mobile */
@media (max-width: 576px) {
    .stats-grid .stat-card {
        flex: 1 0 100%;
    }
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-primary);
}

/* Tablet: 2 colunas (span 6) */
@media (max-width: 992px) {
    .stat-card {
        grid-column: span 6;
    }
}

/* Mobile: 1 coluna (span 12) */
@media (max-width: 576px) {
    .stat-card {
        grid-column: span 12;
        max-width: 100% !important;
        flex: 0 0 100%;
    }
}

@media (max-width: 1200px) {
    .stat-card {
        max-width: 25% !important;
        flex: 0 0 25%;
    }
}

@media (max-width: 992px) {
    .stat-card {
        max-width: 33.333% !important;
        flex: 0 0 33.333%;
    }
}

@media (max-width: 768px) {
    .stat-card {
        max-width: 50% !important;
        flex: 0 0 50%;
    }
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-primary);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 40px;
}

.welcome-section h1 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.welcome-section p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section {
    padding: 0 15px;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 600;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Desktop only */
.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-in {
    animation: slideIn 0.3s ease;
}

/* ========================================
   BRAND ELEMENTS
   ======================================== */

/* Brand text styling */
.brand-text { color: var(--brand-blue); font-weight: 700; }
.brand-go { color: var(--brand-red); font-weight: 800; }

/* Logo link - remove underline */
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

/* Auth pages (login, register, etc.) */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 40px 36px;
}

.auth-card .logo-liviago {
    max-width: 100px !important;
    margin-bottom: 16px;
}

.auth-card .logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

/* Button full width */
.btn-full { width: 100%; }
.btn-large { padding: 14px 24px; font-size: 1rem; }
.btn-small { padding: 6px 12px; font-size: 0.8rem; }

/* Flex helpers that templates use */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.mb-4 { margin-bottom: 24px; }
.mt-4 { margin-top: 24px; }

/* Admin panel sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 0;
    overflow-y: auto;
    z-index: 50;
    transition: background 0.3s ease;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-nav {
    padding: 16px 12px;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2px;
    transition: all 0.2s ease;
}

.sidebar-nav .nav-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.sidebar-nav .nav-link.active {
    background: rgba(74, 158, 190, 0.12);
    color: var(--accent-primary);
}

/* Admin main content offset */
.sidebar + .main-content {
    margin-left: 260px;
}

/* Admin card style */
.admin-card {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    transition: background 0.2s ease;
}

.admin-card:hover {
    background: var(--bg-hover);
}

/* Modal overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-overlay.hidden {
    display: none;
}

/* Status badge colors */
.badge-error { background: var(--error-color); color: #fff; }
.btn-error { background: var(--error-color); color: #fff; }
.btn-error:hover { background: #dc2626; }

/* Textarea */
.textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
}

/* Hidden utility */
.hidden { display: none !important; }

/* Loader */
.loader {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}

/* Policy pages */
.policy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Print styles */
@media print {
    .theme-toggle,
    .sidebar,
    .btn,
    .modal {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}
