/* Token Manager - Estilos Completos */

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #64748b;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --light: #f8fafc;
    --dark: #1e293b;
    --white: #ffffff;
    
    --bg-primary: #f1f5f9;
    --bg-secondary: #e2e8f0;
    --bg-input: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --accent-blue: #3b82f6;
    --accent-green: #22c55e;
    --accent-yellow: #f59e0b;
    --accent-red: #ef4444;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-input: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-color: #334155;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

/* Dark Mode Sidebar - Simplificado */
[data-theme="dark"] .sidebar {
    background: #1e293b;
    border-right: 1px solid #334155;
}

[data-theme="dark"] .sidebar-logo h2 {
    color: #f1f5f9;
}

[data-theme="dark"] .user-details h3,
[data-theme="dark"] .user-details p {
    color: #cbd5e1;
}

[data-theme="dark"] .nav-link {
    color: #cbd5e1;
    transition: all 0.2s ease;
}

[data-theme="dark"] .nav-link:hover {
    background: #334155;
    color: #f1f5f9;
}

[data-theme="dark"] .nav-link.active {
    background: #3b82f6;
    color: #ffffff;
}

/* Dark Mode - Fondo Oscuro y Tablas Marcadas */
[data-theme="dark"] .main-content {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .main-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-bottom: 2px solid #22c55e;
}

[data-theme="dark"] .page-title {
    color: #f1f5f9;
}

[data-theme="dark"] .stat-card,
[data-theme="dark"] .table-container,
[data-theme="dark"] .form-section {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    border: 2px solid #22c55e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .data-table {
    background: #1e293b;
    border: 2px solid #22c55e;
}

[data-theme="dark"] .data-table th {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    color: #f1f5f9;
    border-bottom: 3px solid #22c55e;
    font-weight: 600;
    padding: 12px 8px;
}

[data-theme="dark"] .data-table td {
    border-bottom: 2px solid #475569;
    color: #e2e8f0;
    padding: 12px 8px;
}

[data-theme="dark"] .data-table tr:nth-child(odd) {
    background: #334155;
}

[data-theme="dark"] .data-table tr:nth-child(even) {
    background: #475569;
}

[data-theme="dark"] .data-table tr:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

[data-theme="dark"] .form-control {
    background: #334155;
    border: 2px solid #475569;
    color: #f1f5f9;
}

[data-theme="dark"] .form-control:focus {
    border-color: #22c55e;
    background: #475569;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

[data-theme="dark"] .btn {
    border: 2px solid transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .btn:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #22c55e;
}

[data-theme="dark"] .btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    border-color: #22c55e;
}

[data-theme="dark"] .btn-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border-color: #22c55e;
}

[data-theme="dark"] .btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: #22c55e;
}

[data-theme="dark"] .btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #22c55e;
}

/* Eliminar datos de prueba en Ingresos */
.data-table tr:has(td:contains("SaraModel")),
.data-table tr:has(td:contains("AnnaModel")),
.data-table tr:has(td:contains("Chaturbate Standard")),
.data-table tr:has(td:contains("Stripchat Premium")) {
    display: none !important;
}

/* Dark Mode - Página de Importar */
[data-theme="dark"] .file-upload-area {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    border: 2px dashed #22c55e;
    color: #f1f5f9;
}

[data-theme="dark"] .file-upload-area:hover,
[data-theme="dark"] .file-upload-area.dragover {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    border-color: #16a34a;
}

[data-theme="dark"] .upload-placeholder i {
    color: #22c55e;
}

[data-theme="dark"] .upload-placeholder p {
    color: #e2e8f0;
}

[data-theme="dark"] .upload-placeholder small {
    color: #cbd5e1;
}

[data-theme="dark"] .instructions {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    border-left: 4px solid #22c55e;
    color: #f1f5f9;
}

[data-theme="dark"] .result-card {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    border: 2px solid #22c55e;
    color: #f1f5f9;
}

[data-theme="dark"] .result-card h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .stat-item {
    background: #1e293b;
    color: #e2e8f0;
}

[data-theme="dark"] .stat-label {
    color: #cbd5e1;
}

[data-theme="dark"] .error-list {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    border: 2px solid #ef4444;
    color: #f1f5f9;
}

[data-theme="dark"] .error-list h5 {
    color: #ef4444;
}

/* Dark Mode Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.theme-toggle i {
    transition: transform 0.3s ease;
}

[data-theme="dark"] .theme-toggle i {
    transform: rotate(180deg);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.logo i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-right: 0.75rem;
}

.logo h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: var(--primary);
}

.form-group input {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.2s;
    background: var(--bg-input);
}

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

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-login {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(239, 68, 68, 0.2);
    font-size: 0.875rem;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.login-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

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

.sidebar {
    width: 280px;
    background: var(--white);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.sidebar-logo i {
    font-size: 1.5rem;
    color: var(--primary);
}

.sidebar-logo h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.user-avatar.small {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
}

.user-details h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.user-details p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.nav-menu {
    padding: 1rem 0;
    flex: 1;
}

.nav-item {
    margin-bottom: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: 0 8px 8px 0;
    margin-right: 1rem;
}

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

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

.nav-link i {
    font-size: 1.125rem;
    width: 1.25rem;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    background: var(--bg-primary);
    min-height: 100vh;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
}

.content-area {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

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

.btn-secondary:hover {
    background: #475569;
}

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

.btn-info:hover {
    background: #0891b2;
}

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

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

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

/* Forms */
.form-control {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-section {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.form-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.field-group input,
.field-group select,
.field-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    transition: all 0.2s;
    background: var(--bg-input);
}

.field-group input::placeholder,
.field-group textarea::placeholder {
    color: var(--text-muted);
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.field-group small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Tables */
.table-container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--bg-primary);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table td {
    color: var(--text-primary);
    font-size: 0.875rem;
}

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

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--white);
    background: var(--primary);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Dashboard Specific */
.dashboard-charts {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    margin: 2rem auto 0 auto;
    width: 100%;
    max-width: 1000px;
}

.dashboard-charts .form-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 50%;
    min-width: 320px;
    max-width: 400px;
    margin: 0 auto;
}

.dashboard-charts h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    text-align: center;
}

.chart-container {
    position: relative;
    height: 180px;
    max-height: 180px;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    overflow: hidden;
}

/* Estilos para importación */
.file-upload-area {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--primary);
    background: #e3f2fd;
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    pointer-events: none;
}

.upload-placeholder i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.upload-placeholder p {
    margin: 0.5rem 0;
    color: #666;
}

.upload-placeholder small {
    color: #999;
}

.instructions {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.instructions p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.instructions ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.instructions li {
    margin: 0.5rem 0;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.result-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.result-card h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.stat-label {
    font-weight: 500;
    color: #666;
}

.stat-value {
    font-weight: 600;
    font-size: 1.1rem;
}

.stat-value.success {
    color: #28a745;
}

.stat-value.error {
    color: #dc3545;
}

.error-list {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.error-list h5 {
    margin: 0 0 0.5rem 0;
    color: #dc3545;
}

.error-list ul {
    margin: 0;
    padding-left: 1.5rem;
}

.error-list li {
    margin: 0.25rem 0;
    color: #666;
    font-size: 0.9rem;
}

.dashboard-charts .form-section canvas {
    max-height: 160px !important;
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto;
    display: block;
}

/* Dark Mode - Gráficos Pequeños y Sin Fondo Blanco */
[data-theme="dark"] .dashboard-charts {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    margin: 1rem auto 0 auto;
    width: 100%;
    max-width: 800px;
}

[data-theme="dark"] .dashboard-charts .form-section {
    width: 45%;
    min-width: 280px;
    max-width: 350px;
    margin: 0 auto;
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    border: 2px solid #22c55e;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .dashboard-charts h3 {
    color: #f1f5f9;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

[data-theme="dark"] .chart-container {
    position: relative;
    height: 150px;
    max-height: 150px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    overflow: hidden;
    background: #1e293b;
    border-radius: 8px;
    padding: 0.5rem;
}

[data-theme="dark"] .dashboard-charts .form-section canvas {
    max-height: 120px !important;
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto;
    display: block;
    background: #1e293b !important;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.confirmed,
.status-badge.completado {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.status-badge.pending,
.status-badge.pendiente {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-badge.cancelled,
.status-badge.cancelado {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.status-badge.ingreso {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.status-badge.pago {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }

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

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

.hidden { display: none !important; }

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .stats-grid,
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .main-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .table-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dashboard-charts {
        gap: 1rem;
    }
    
    .chart-container {
        height: 250px;
    }
} 