/* ============================================
   AppBull CSS Framework
   Custom lightweight CSS library
   ============================================ */

/* --- CSS Variables / Theme --- */
:root {
    --primary: #dc2626;
    --primary-dark: #b91c1c;
    --primary-light: #ef4444;
    --primary-bg: #fef2f2;
    --secondary: #64748b;
    --success: #22c55e;
    --success-bg: #f0fdf4;
    --danger: #ef4444;
    --danger-bg: #fef2f2;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --info: #06b6d4;
    --info-bg: #ecfeff;

    --bg: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --surface: #ffffff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);

    --transition: 0.2s ease;
    --max-width: 1200px;
}

/* Dark mode */
[data-theme="dark"] {
    --bg: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --surface: #1e293b;
    --border: #334155;
    --border-light: #1e293b;
    --text: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --primary-bg: #1e1b4b;
    --success-bg: #052e16;
    --danger-bg: #450a0a;
    --warning-bg: #451a03;
    --info-bg: #083344;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.4);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.3; color: var(--text); margin-bottom: 0.5em; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }
p { margin-bottom: 1em; color: var(--text-secondary); }
small { font-size: 0.8125rem; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 0.8125rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* --- Layout --- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 640px; }
.container-md { max-width: 768px; }
.container-lg { max-width: 1024px; }

/* Grid */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 24px; }
.gap-6 { gap: 32px; }
.flex-1 { flex: 1; }

/* Spacing */
.m-0 { margin: 0; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 16px; } .mt-4 { margin-top: 24px; } .mt-5 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 16px; } .mb-4 { margin-bottom: 24px; } .mb-5 { margin-bottom: 32px; } .mb-6 { margin-bottom: 48px; }
.ml-auto { margin-left: auto; }
.p-0 { padding: 0; } .p-1 { padding: 4px; } .p-2 { padding: 8px; } .p-3 { padding: 16px; } .p-4 { padding: 24px; } .p-5 { padding: 32px; } .p-6 { padding: 48px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; } .py-3 { padding-top: 16px; padding-bottom: 16px; } .py-4 { padding-top: 24px; padding-bottom: 24px; } .py-5 { padding-top: 32px; padding-bottom: 32px; } .py-6 { padding-top: 48px; padding-bottom: 48px; }
.px-2 { padding-left: 8px; padding-right: 8px; } .px-3 { padding-left: 16px; padding-right: 16px; } .px-4 { padding-left: 24px; padding-right: 24px; }
.section { padding: 48px 0; }
.section-lg { padding: 80px 0; }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.w-full { width: 100%; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 20px; font-size: 14px; font-weight: 600; line-height: 1.4;
    border: 1px solid transparent; border-radius: var(--radius);
    cursor: pointer; transition: all var(--transition); white-space: nowrap;
    text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn.disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn i { font-size: 14px; }

.btn-primary { background: var(--primary); color: var(--text-inverse); }
.btn-primary:hover { background: var(--primary-dark); color: var(--text-inverse); }
.btn-secondary { background: var(--bg-tertiary); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--border); color: var(--text); }
.btn-success { background: var(--success); color: var(--text-inverse); }
.btn-danger { background: var(--danger); color: var(--text-inverse); }
.btn-warning { background: var(--warning); color: #000; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--text-inverse); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-tertiary); color: var(--text); }
.btn-link { background: transparent; color: var(--primary); padding: 0; border: 0; }
.btn-link:hover { text-decoration: underline; box-shadow: none; transform: none; }

.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-xl { padding: 16px 32px; font-size: 18px; }
.btn-block { display: flex; width: 100%; }
.btn-icon { padding: 10px; width: 40px; height: 40px; }
.btn-icon.btn-sm { width: 32px; height: 32px; padding: 6px; }

.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; }
.btn-group .btn:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.btn-group .btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.btn-group .btn + .btn { margin-left: -1px; }

/* --- Forms --- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-label .required { color: var(--danger); }
.form-hint { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.form-control {
    display: block; width: 100%; padding: 10px 14px;
    font-size: 14px; line-height: 1.5; color: var(--text);
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); transition: all var(--transition);
    outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.form-control::placeholder { color: var(--text-muted); }
.form-control:disabled { background: var(--bg-tertiary); opacity: 0.7; cursor: not-allowed; }
.form-control.error { border-color: var(--danger); }
.form-control.error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.15); }

.form-control-sm { padding: 6px 10px; font-size: 13px; }
.form-control-lg { padding: 14px 18px; font-size: 16px; }

textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; appearance: none; 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 d='M6 8L1 3h10z' fill='%2364748b'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

.form-check { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; cursor: pointer; }
.form-check input[type="checkbox"], .form-check input[type="radio"] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary); }

.input-group { display: flex; }
.input-group .form-control { border-radius: 0; }
.input-group .form-control:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.input-group .form-control:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.input-group-text { display: flex; align-items: center; padding: 0 14px; background: var(--bg-tertiary); border: 1px solid var(--border); font-size: 14px; color: var(--text-secondary); white-space: nowrap; }
.input-group-text:first-child { border-radius: var(--radius) 0 0 var(--radius); border-right: 0; }
.input-group-text:last-child { border-radius: 0 var(--radius) var(--radius) 0; border-left: 0; }
.input-group .btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; }

.form-row { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.form-row-3 { grid-template-columns: repeat(3, 1fr); }

.error-text { color: var(--danger); font-size: 13px; margin-top: 4px; }

/* --- Cards --- */
.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 20px; }
.card-title { font-size: 1.125rem; font-weight: 600; margin-bottom: 8px; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--primary); }
.card-text { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; }
.card-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-muted); }
.card-footer { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 600; }
.card-flat { border: none; box-shadow: none; }
.card-flat:hover { box-shadow: none; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-compact .card-body { padding: 16px; }
.card-compact .card-footer { padding: 12px 16px; }

/* Product Card specific */
.product-card { position: relative; }
.product-card .card-img-wrap { position: relative; overflow: hidden; }
.product-card .card-img-wrap img { transition: transform 0.3s; }
.product-card:hover .card-img-wrap img { transform: scale(1.03); }
.product-card .card-badge { position: absolute; top: 12px; left: 12px; z-index: 1; }
.product-card .card-price { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.product-card .card-price-old { font-size: 0.875rem; color: var(--text-muted); text-decoration: line-through; margin-left: 6px; }
.product-card .card-category { font-size: 12px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.product-card .card-rating { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.product-card .card-wishlist { position: absolute; top: 12px; right: 12px; z-index: 1; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.9); border-radius: var(--radius-full); border: none; cursor: pointer; color: var(--text-muted); transition: all var(--transition); }
.product-card .card-wishlist:hover { color: var(--danger); background: #fff; }
.product-card .card-wishlist.active { color: var(--danger); }

/* --- Badges --- */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; font-size: 12px; font-weight: 600;
    border-radius: var(--radius-full); line-height: 1.5;
}
.badge-primary { background: var(--primary-bg); color: var(--primary); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-secondary { background: var(--bg-tertiary); color: var(--text-secondary); }
.badge-sm { padding: 2px 6px; font-size: 11px; }
.badge-lg { padding: 5px 14px; font-size: 14px; }

/* --- Alerts --- */
.alert {
    padding: 14px 18px; border-radius: var(--radius);
    font-size: 14px; display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 16px;
}
.alert i { margin-top: 2px; }
.alert-success { background: var(--success-bg); color: #166534; border: 1px solid #bbf7d0; }
.alert-danger { background: var(--danger-bg); color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: var(--warning-bg); color: #92400e; border: 1px solid #fed7aa; }
.alert-info { background: var(--info-bg); color: #155e75; border: 1px solid #a5f3fc; }
.alert-close { margin-left: auto; cursor: pointer; opacity: 0.5; background: none; border: none; font-size: 18px; }
.alert-close:hover { opacity: 1; }

/* --- Tables --- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 12px 16px; text-align: left; font-size: 13px; font-weight: 600; color: var(--text-secondary); background: var(--bg-secondary); border-bottom: 1px solid var(--border); text-transform: uppercase; letter-spacing: 0.5px; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border-light); font-size: 14px; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: var(--bg-secondary); }
.table-striped tr:nth-child(even) td { background: var(--bg-secondary); }
.table .actions { display: flex; gap: 4px; }

/* --- Tabs --- */
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.tab { padding: 12px 20px; font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; transition: all var(--transition); background: none; border-top: none; border-left: none; border-right: none; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* --- Modal --- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.modal-overlay.open { display: flex; }
.modal { background: var(--surface); border-radius: var(--radius-xl); width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-xl); }
.modal-sm { max-width: 400px; }
.modal-lg { max-width: 720px; }
.modal-xl { max-width: 960px; }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { margin-bottom: 0; }
.modal-close { background: none; border: none; cursor: pointer; font-size: 20px; color: var(--text-muted); padding: 4px; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: flex-end; gap: 8px; }

/* --- Dropdown --- */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 100; min-width: 200px; padding: 6px 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: none; }
.dropdown-menu.open { display: block; }
.dropdown-menu.right { left: auto; right: 0; }
.dropdown-item { display: flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: 14px; color: var(--text); cursor: pointer; transition: background var(--transition); }
.dropdown-item:hover { background: var(--bg-secondary); color: var(--text); }
.dropdown-item.active { color: var(--primary); background: var(--primary-bg); }
.dropdown-item i { width: 16px; text-align: center; color: var(--text-muted); }
.dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }
.dropdown-header { padding: 6px 16px; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* --- Pagination --- */
.pagination { display: flex; align-items: center; gap: 4px; }
.page-link { display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; font-size: 14px; font-weight: 500; color: var(--text-secondary); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: all var(--transition); text-decoration: none; }
.page-link:hover { background: var(--bg-secondary); color: var(--text); border-color: var(--primary); }
.page-link.active { background: var(--primary); color: var(--text-inverse); border-color: var(--primary); }
.page-link.disabled { opacity: 0.4; cursor: not-allowed; }

/* --- Accordion --- */
.accordion { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item:last-child { border-bottom: 0; }
.accordion-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; cursor: pointer; font-weight: 600; font-size: 15px; background: var(--bg); transition: background var(--transition); }
.accordion-header:hover { background: var(--bg-secondary); }
.accordion-header .icon { transition: transform 0.3s; font-size: 12px; }
.accordion-item.open .accordion-header .icon { transform: rotate(180deg); }
.accordion-body { padding: 0 20px 16px; display: none; font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.accordion-item.open .accordion-body { display: block; }

/* --- Tooltip --- */
.tooltip { position: relative; }
.tooltip::after { content: attr(data-tooltip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding: 6px 10px; font-size: 12px; color: #fff; background: #1e293b; border-radius: var(--radius-sm); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; transform: translateX(-50%) translateY(4px); z-index: 50; }
.tooltip:hover::after { opacity: 1; transform: translateX(-50%) translateY(-4px); }

/* --- Avatar --- */
.avatar { width: 40px; height: 40px; border-radius: var(--radius-full); object-fit: cover; background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--primary); font-size: 16px; }
.avatar-sm { width: 32px; height: 32px; font-size: 13px; }
.avatar-lg { width: 56px; height: 56px; font-size: 22px; }
.avatar-xl { width: 80px; height: 80px; font-size: 32px; }

/* --- Stars --- */
.stars { display: inline-flex; gap: 2px; color: #fbbf24; font-size: 14px; }
.star::before { content: '\2605'; }
.star.empty { color: var(--border); }
.star.half { position: relative; color: var(--border); }
.star.half::after { content: '\2605'; position: absolute; left: 0; width: 50%; overflow: hidden; color: #fbbf24; }

/* --- Toast --- */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 14px 20px; border-radius: var(--radius); color: #fff; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); animation: slideIn 0.3s ease; min-width: 280px; display: flex; align-items: center; gap: 10px; }
.toast-success { background: #16a34a; }
.toast-danger { background: #dc2626; }
.toast-warning { background: #d97706; }
.toast-info { background: #0891b2; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* --- Skeleton loading --- */
.skeleton { background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%); background-size: 200% 100%; animation: skeleton 1.5s infinite; border-radius: var(--radius); }
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-text:last-child { width: 60%; }
.skeleton-title { height: 24px; width: 70%; margin-bottom: 12px; }
.skeleton-img { aspect-ratio: 16/10; }
.skeleton-avatar { width: 40px; height: 40px; border-radius: var(--radius-full); }
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* --- Breadcrumb --- */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); padding: 12px 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .separator { font-size: 10px; }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* --- Tag --- */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; font-size: 13px; background: var(--bg-tertiary); color: var(--text-secondary); border-radius: var(--radius-full); transition: all var(--transition); }
.tag:hover { background: var(--primary-bg); color: var(--primary); }

/* --- Empty State --- */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 48px; color: var(--text-muted); margin-bottom: 16px; }
.empty-state h3 { color: var(--text); margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); max-width: 400px; margin: 0 auto 20px; }

/* --- Divider --- */
.divider { height: 1px; background: var(--border); margin: 24px 0; }

/* --- Stat Card --- */
.stat-card { text-align: center; padding: 24px; }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.stat-label { font-size: 14px; color: var(--text-muted); }

/* --- Progress --- */
.progress { height: 8px; background: var(--bg-tertiary); border-radius: var(--radius-full); overflow: hidden; }
.progress-bar { height: 100%; background: var(--primary); border-radius: var(--radius-full); transition: width 0.3s; }
.progress-success .progress-bar { background: var(--success); }
.progress-danger .progress-bar { background: var(--danger); }

/* --- Sidebar Layout --- */
.layout-sidebar { display: grid; grid-template-columns: 260px 1fr; gap: 32px; min-height: calc(100vh - 200px); }
.sidebar { padding: 24px 0; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-link { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 14px; font-weight: 500; color: var(--text-secondary); border-radius: var(--radius); transition: all var(--transition); }
.sidebar-link:hover { background: var(--bg-tertiary); color: var(--text); }
.sidebar-link.active { background: var(--primary-bg); color: var(--primary); font-weight: 600; }
.sidebar-link i { width: 20px; text-align: center; }
.sidebar-divider { height: 1px; background: var(--border); margin: 12px 0; }
.sidebar-heading { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); padding: 8px 16px; }

.main-content { padding: 24px 0; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
    .layout-sidebar { grid-template-columns: 1fr; }
    .sidebar { padding: 0; }
}
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .form-row-3 { grid-template-columns: 1fr; }
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.375rem; }
    .section { padding: 32px 0; }
    .section-lg { padding: 48px 0; }
    .container { padding: 0 16px; }
    .table-wrap { margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; }
    .modal { margin: 10px; max-height: 85vh; }
}
@media (max-width: 480px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    body { font-size: 14px; }
    .btn-lg { padding: 12px 20px; font-size: 15px; }
    .hide-mobile { display: none; }
}
