/**
 * Contabil - Dashboard Contador
 * Soft UI / Clean SaaS Design System
 * Versão 2.0
 */

/* ========================================
   CSS VARIABLES - SOFT UI DESIGN
   ======================================== */
:root {
    /* Cores de Fundo */
    --bg-body: #F4F5F7;
    --bg-card: #FFFFFF;
    --bg-sidebar: #FFFFFF;
    --bg-input: #FFFFFF;
    --bg-hover: #F9FAFB;
    
    /* Cores de Texto */
    --text-primary: #374151;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --text-white: #FFFFFF;
    --text-dark: #1F2937;
    
    /* Cores de Destaque */
    --accent-mint: #10B981;
    --accent-mint-light: #D1FAE5;
    --accent-salmon: #F87171;
    --accent-salmon-light: #FEE2E2;
    --accent-purple: #374151;
    --accent-purple-light: #F3F4F6;
    --accent-blue: #3B82F6;
    --accent-blue-light: #DBEAFE;
    --accent-amber: #F59E0B;
    --accent-amber-light: #FEF3C7;
    
    /* Cores Legadas (para compatibilidade) */
    --primary: #374151;
    --primary-dark: #1F2937;
    --primary-light: #6B7280;
    --secondary: #F59E0B;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    
    /* Escala de Cinza */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Bordas */
    --border-light: #E5E7EB;
    --border-medium: #D1D5DB;
    --border-focus: #374151;
    
    /* Sombras Soft UI */
    --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 
                   0 10px 20px -2px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 4px 25px -5px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 30px -5px rgba(0, 0, 0, 0.1);
    --shadow-button: 0 4px 14px 0 rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius: 10px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Transições */
    --transition: all 0.25s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.35s ease;
    
    /* Larguras */
    --sidebar-width: 260px;
}

/* ========================================
   RESET E BASE
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.875rem;
    color: var(--text-primary);
    background: var(--bg-body);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-purple);
}

/* ========================================
   CONTAINER PRINCIPAL
   ======================================== */
.admin-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* ========================================
   SIDEBAR - COLAPSÁVEL COM ÍCONES
   ======================================== */
:root {
    --sidebar-collapsed: 70px;
    --sidebar-expanded: 260px;
}

.sidebar {
    width: var(--sidebar-collapsed);
    background: var(--bg-sidebar);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border-right: 1px solid var(--border-light);
}

.sidebar:hover {
    width: var(--sidebar-expanded);
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: var(--radius);
}

/* Header da Sidebar - Logo + Actions */
.sidebar-header {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Actions no topo (notificação e logout) */
.sidebar-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 0.25rem 0;
}

.sidebar:hover .sidebar-actions {
    justify-content: flex-end;
}

.sidebar-action-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    background: var(--bg-hover);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    position: relative;
}

.sidebar-action-btn:hover {
    background: var(--border-light);
    color: var(--accent-purple);
}

.sidebar-action-btn.logout:hover {
    background: var(--accent-salmon-light);
    color: var(--accent-salmon);
    border-color: var(--accent-salmon);
}

.sidebar-action-btn .notification-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--accent-salmon);
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    padding: 0.25rem;
}

.sidebar:hover .logo {
    justify-content: flex-start;
}

.logo-image {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: var(--radius-md);
    object-fit: contain;
    background: transparent;
}

.logo-text {
    display: flex;
    flex-direction: column;
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.2s ease 0.1s;
    overflow: hidden;
}

.sidebar:hover .logo-text {
    opacity: 1;
}

.logo-text h1 {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.logo-text span {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Navegação */
.sidebar-nav {
    padding: 0.5rem 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-section {
    margin-bottom: 0.5rem;
}

.nav-section-title {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.2s ease 0.1s;
}

.sidebar:hover .nav-section-title {
    opacity: 1;
    height: auto;
    padding: 0.5rem 1.25rem;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 0.5rem;
    margin: 0.125rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
    border: none;
    background: none;
    width: calc(100% - 1.5rem);
    text-align: left;
    cursor: pointer;
    font-size: 0.875rem;
    border-radius: var(--radius);
    font-family: inherit;
}

.sidebar:hover .nav-item {
    justify-content: flex-start;
    padding: 0.75rem 1rem;
    margin: 0.125rem 0.5rem;
    width: calc(100% - 1rem);
}

.nav-item span {
    opacity: 0;
    white-space: nowrap;
    position: absolute;
    left: 3rem;
    pointer-events: none;
    transition: opacity 0.2s ease 0.1s;
}

.sidebar:hover .nav-item span {
    opacity: 1;
    position: static;
    pointer-events: auto;
}

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

.nav-item.active {
    background: var(--accent-purple-light);
    color: var(--accent-purple);
    font-weight: 500;
}

.nav-item.active i {
    color: var(--accent-purple);
}

.nav-item i {
    width: 24px;
    min-width: 24px;
    font-size: 1.25rem;
    text-align: center;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.nav-item:hover i {
    color: var(--accent-purple);
}

.nav-item.active i {
    color: var(--accent-purple);
}

/* Badge no menu */
.nav-badge {
    margin-left: auto;
    padding: 0.15rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    background: var(--accent-salmon);
    color: white;
    border-radius: var(--radius-full);
    opacity: 0;
    transition: opacity 0.2s ease 0.1s;
}

.sidebar:hover .nav-badge {
    opacity: 1;
}

/* Dot indicator quando colapsado */
.nav-item .nav-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--accent-salmon);
    border-radius: 50%;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.sidebar:hover .nav-item .nav-dot {
    opacity: 0;
}

/* Footer da Sidebar - Removido (ações foram para o topo) */
.sidebar-footer {
    display: none;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-collapsed);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header Principal - Simplificado */
.header {
    position: sticky;
    top: 0;
    background: var(--bg-card);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-soft);
    z-index: 100;
    border-bottom: 1px solid var(--border-light);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-left h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* User Menu no Header */
.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition-fast);
    background: var(--bg-hover);
}

.user-menu:hover {
    background: var(--border-light);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-purple) 0%, #7C3AED 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
}

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

.user-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dark);
}

.user-role {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

/* Header do Content (Alternativo) */
.content-header {
    position: sticky;
    top: 0;
    background: var(--bg-card);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-soft);
    z-index: 100;
    border-bottom: 1px solid var(--border-light);
}

.content-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-header h2 i {
    color: var(--accent-purple);
}

/* Área de conteúdo */
.content-area {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

/* ========================================
   CARDS - SOFT UI
   ======================================== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: none;
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header h3 i {
    color: var(--accent-purple);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-hover);
}

/* ========================================
   BOTÕES - SOFT UI
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple) 0%, #7C3AED 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

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

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

.btn-success {
    background: linear-gradient(135deg, var(--accent-mint) 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--accent-salmon) 0%, #DC2626 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(248, 113, 113, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, var(--accent-amber) 0%, #D97706 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-sm {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius);
}

/* ========================================
   FORMS - SOFT UI
   ======================================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group label i {
    margin-right: 0.5rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:disabled {
    background: var(--bg-hover);
    color: var(--text-muted);
    cursor: not-allowed;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ========================================
   TABELAS - SOFT UI
   ======================================== */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    text-align: left;
    padding: 0.875rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--bg-hover);
    border-bottom: 1px solid var(--border-light);
}

.table td {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-fast);
}

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

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ========================================
   BADGES
   ======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-success {
    background: var(--accent-mint-light);
    color: #047857;
}

.badge-danger {
    background: var(--accent-salmon-light);
    color: #B91C1C;
}

.badge-warning {
    background: var(--accent-amber-light);
    color: #B45309;
}

.badge-info {
    background: var(--accent-blue-light);
    color: #1D4ED8;
}

.badge-purple {
    background: var(--accent-purple-light);
    color: #6D28D9;
}

/* ========================================
   ALERTAS
   ======================================== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert i {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.alert-success {
    background: var(--accent-mint-light);
    color: #047857;
}

.alert-danger {
    background: var(--accent-salmon-light);
    color: #B91C1C;
}

.alert-warning {
    background: var(--accent-amber-light);
    color: #B45309;
}

.alert-info {
    background: var(--accent-blue-light);
    color: #1D4ED8;
}

/* ========================================
   MODAIS
   ======================================== */
.modal-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.6) !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
    padding: 1rem;
    backdrop-filter: blur(4px);
    overflow-y: auto;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.25s ease;
    position: relative;
    margin: auto;
}

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

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--accent-salmon-light);
    color: var(--accent-salmon);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    background: var(--bg-hover);
}

/* ========================================
   SPINNER DE LOADING
   ======================================== */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    z-index: 3000;
}

.loading-overlay .spinner {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

/* ========================================
   NOTIFICAÇÕES / TOASTS
   ======================================== */
.notification-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 4000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.notification {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 400px;
    animation: notificationSlide 0.3s ease;
    background: var(--bg-card);
    border-left: 4px solid;
}

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

.notification.success {
    border-color: var(--accent-mint);
}

.notification.error {
    border-color: var(--accent-salmon);
}

.notification.warning {
    border-color: var(--accent-amber);
}

.notification.info {
    border-color: var(--accent-blue);
}

.notification i {
    font-size: 1.1rem;
}

.notification.success i { color: var(--accent-mint); }
.notification.error i { color: var(--accent-salmon); }
.notification.warning i { color: var(--accent-amber); }
.notification.info i { color: var(--accent-blue); }

/* ========================================
   CONFIG SECTIONS
   ======================================== */
.config-container {
    max-width: 1000px;
    margin: 0 auto;
}

.config-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.config-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.config-section .section-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-hover);
}

.config-section .section-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.config-section .section-header h3 i {
    color: var(--accent-purple);
}

.config-section .section-content {
    padding: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-item span {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Preferences Switch */
.preferences-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.preference-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-hover);
    border-radius: var(--radius);
}

.preference-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.preference-info i {
    font-size: 1.25rem;
    color: var(--accent-purple);
}

.preference-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.preference-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* Switch Toggle */
.switch {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gray-300);
    transition: var(--transition-fast);
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: var(--transition-fast);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

input:checked + .slider {
    background: var(--accent-purple);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

input:disabled + .slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Status Badge no Email Config */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.status-badge.success {
    background: var(--accent-mint-light);
    color: #047857;
}

.status-badge.warning {
    background: var(--accent-amber-light);
    color: #B45309;
}

/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
    margin-bottom: 1.5rem;
}

.page-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.page-header h2 i {
    color: var(--accent-purple);
}

.page-header .text-muted {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ========================================
   SUBSCRIPTION BANNER
   ======================================== */
.subscription-banner {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.subscription-banner i {
    font-size: 1.1rem;
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ========================================
   UTILITIES
   ======================================== */
.text-muted { color: var(--text-muted) !important; }
.text-primary { color: var(--text-primary) !important; }
.text-success { color: var(--accent-mint) !important; }
.text-danger { color: var(--accent-salmon) !important; }
.text-warning { color: var(--accent-amber) !important; }
.text-center { text-align: center; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }

/* ========================================
   RESPONSIVO
   ======================================== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content-area {
        padding: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-toggle {
        display: flex;
    }
    
    .user-info {
        display: none;
    }
    
    .header {
        padding: 0.75rem 1rem;
    }
    
    .branding-container {
        grid-template-columns: 1fr;
    }
}
