/* ============================================================
    InvAnalytics - Matching InvCount Professional Classic Theme
    ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #1e3a5f;
    --primary-dark: #152a45;
    --primary-light: #e8eef4;
    --accent: #8b2635;
    --accent-light: #f4e8e9;
    --gold: #b8860b;
    --gold-light: #fbf5e6;
    
    --success: #2d5a3d;
    --success-light: #e6f0ea;
    --warning: #936c19;
    --warning-light: #faf5e6;
    --danger: #9b1c1c;
    --danger-light: #f9e8e8;
    --info: #1e5a6b;
    --info-light: #e6f0f2;
    
    --secondary: #5a5a5a;
    --secondary-light: #f0efee;
    
    --bg: #f7f5f2;
    --surface: #ffffff;
    --text: #2d2d2d;
    --text-light: #5a5a5a;
    --text-muted: #8a8a8a;
    --border: #d4d0cc;
    --border-light: #e8e5e2;
    
    --sidebar-width: 260px;
    --topbar-height: 60px;
    --radius: 4px;
    --radius-sm: 2px;
    --shadow: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.08);
    --transition: 0.25s ease;
}
.hidden { display: none !important; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }

/* Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
}
.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left var(--transition);
}
.sidebar-collapsed .main-wrapper {
    margin-left: 0;
}
.main-content {
    padding: 28px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #1e3a5f 0%, #152840 100%);
    color: #e0dcd8;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform var(--transition);
    overflow-y: auto;
    border-right: 3px solid var(--gold);
}
.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f5f0e8;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.brand-icon { 
    font-size: 1.4rem; 
    color: var(--gold);
}
.sidebar-menu { 
    flex: 1; 
    padding: 20px 0; 
}
.menu-section { margin-bottom: 8px; }
.menu-section-title {
    padding: 10px 20px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #8b8b8b;
    font-weight: 600;
    font-family: 'Segoe UI', system-ui, sans-serif;
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    color: #c4c0bc;
    font-size: 0.9rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}
.menu-item:hover {
    background: rgba(255,255,255,0.08);
    color: #f5f0e8;
    border-left-color: var(--gold);
}
.menu-item.active {
    background: rgba(184, 134, 11, 0.15);
    color: #f5f0e8;
    border-left-color: var(--gold);
}
.menu-icon { 
    font-size: 1rem; 
    width: 20px; 
    text-align: center;
    color: var(--gold);
}
.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.7rem;
    color: #6b6b6b;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* Topbar */
.topbar {
    background: var(--surface);
    border-bottom: 2px solid var(--border-light);
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}
.sidebar-toggle {
    background: none;
    border: 1px solid var(--border);
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text);
    padding: 8px;
    margin-right: 16px;
    border-radius: var(--radius-sm);
    display: none;
}
.sidebar-toggle:hover { background: var(--secondary-light); border-color: var(--primary); }
.topbar-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.3px;
}
.topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}
.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid var(--gold);
}
.user-info {
    display: flex;
    flex-direction: column;
}
.user-name { 
    font-size: 0.85rem; 
    font-weight: 600; 
    color: var(--text);
    font-family: 'Segoe UI', system-ui, sans-serif;
}
.user-role { 
    font-size: 0.7rem; 
    color: var(--text-muted);
    font-family: 'Segoe UI', system-ui, sans-serif;
}
.btn-logout {
    color: var(--text-muted);
    font-size: 1.1rem;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    border: 1px solid transparent;
    background: none;
    cursor: pointer;
}
.btn-logout:hover { 
    color: var(--danger); 
    background: var(--danger-light);
    border-color: var(--danger);
}

/* Cards */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    overflow: hidden;
}
.card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, #faf9f7 0%, #f5f4f2 100%);
}
.card-header h3, .card-header h5 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.3px;
    margin: 0;
}
.card-body { 
    padding: 22px; 
}
.card-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--border-light);
    background: var(--secondary-light);
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}
.stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all var(--transition);
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    border: 1px solid var(--border);
}
.stat-icon.primary { background: var(--primary-light); color: var(--primary); }
.stat-icon.success { background: var(--success-light); color: var(--success); }
.stat-icon.warning { background: var(--warning-light); color: var(--warning); }
.stat-icon.danger { background: var(--danger-light); color: var(--danger); }
.stat-icon.info { background: var(--info-light); color: var(--info); }
.stat-icon.secondary { background: var(--secondary-light); color: var(--secondary); }
.stat-content { flex: 1; }
.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    font-family: Georgia, serif;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    justify-content: center;
    white-space: nowrap;
    font-family: 'Segoe UI', system-ui, sans-serif;
}
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { background: #234a31; border-color: #234a31; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #7a1818; border-color: #7a1818; color: #fff; }
.btn-warning { background: var(--warning); color: #fff; border-color: var(--warning); }
.btn-warning:hover { background: #785815; border-color: #785815; color: #fff; }
.btn-secondary { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.btn-secondary:hover { background: #4a4a4a; border-color: #4a4a4a; color: #fff; }
.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}
.btn-outline:hover { background: var(--secondary-light); border-color: var(--text-light); color: var(--text); }
.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.btn-block { width: 100%; }
.btn-group { display: flex; gap: 10px; }

/* Forms */
.form-group {
    margin-bottom: 18px;
}
.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    font-family: 'Segoe UI', system-ui, sans-serif;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--surface);
    transition: border-color var(--transition), box-shadow var(--transition);
    font-family: 'Segoe UI', system-ui, sans-serif;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(30, 58, 95, 0.1);
}
.form-control::placeholder { color: var(--text-muted); }
select.form-control {
    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 fill='%235a5a5a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}
textarea.form-control { resize: vertical; min-height: 90px; }
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}
.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 5px;
    font-family: 'Segoe UI', system-ui, sans-serif;
}
.form-error {
    font-size: 0.8rem;
    color: var(--danger);
    margin-top: 5px;
}
.is-invalid { border-color: var(--danger) !important; }
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.form-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Tables */
.table-container {
    overflow-x: auto;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
}
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
}
table th, table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.85rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
}
table th {
    background: linear-gradient(180deg, #f5f4f2 0%, #eeedeb 100%);
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    border-bottom: 2px solid var(--border);
}
table tbody tr { transition: background var(--transition); }
table tbody tr:hover { background: #faf9f7; }
table tbody tr:last-child td { border-bottom: none; }
.table-actions {
    display: flex;
    gap: 8px;
}
.table-sm th, .table-sm td {
    padding: 10px 14px;
    font-size: 0.8rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Segoe UI', system-ui, sans-serif;
}
.badge-success { background: var(--success-light); color: var(--success); border: 1px solid #c4dbc9; }
.badge-danger { background: var(--danger-light); color: var(--danger); border: 1px solid #ecc8c8; }
.badge-warning { background: var(--warning-light); color: var(--warning); border: 1px solid #e8dfb8; }
.badge-info { background: var(--info-light); color: var(--info); border: 1px solid #b8d4d9; }
.badge-secondary { background: var(--secondary-light); color: var(--secondary); border: 1px solid #d4d2cf; }
.badge-primary { background: var(--primary-light); color: var(--primary); border: 1px solid #ccd4df; }

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    cursor: pointer;
    transition: opacity 0.3s;
    border: 1px solid;
}
.alert-success { background: var(--success-light); color: var(--success); border-color: #a8d4b1; }
.alert-error { background: var(--danger-light); color: var(--danger); border-color: #e4b4b4; }
.alert-warning { background: var(--warning-light); color: var(--warning); border-color: #e8dfb8; }
.alert-info { background: var(--info-light); color: var(--info); border-color: #b8d4d9; }
.alert-danger { background: var(--danger-light); color: var(--danger); border-color: #e4b4b4; }
.alert-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}
.alert-close:hover { opacity: 1; }

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    overflow: auto;
    pointer-events: auto;
}
.modal-overlay.show { 
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.modal {
    background: var(--surface);
    border-radius: var(--radius);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: relative;
    pointer-events: auto;
}
.modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, #faf9f7 0%, #f5f4f2 100%);
}
.modal-header h3 { font-size: 1.15rem; font-weight: 600; color: var(--primary); }
.modal-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-body { padding: 22px; }
.modal-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: var(--secondary-light);
}

/* Pagination */
.pagination-nav {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}
.pagination {
    display: flex;
    list-style: none;
    gap: 6px;
}
.page-item .page-link {
    display: block;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text);
    background: var(--surface);
    transition: all var(--transition);
    font-family: 'Segoe UI', system-ui, sans-serif;
}
.page-item .page-link:hover { background: var(--secondary-light); border-color: var(--primary); }
.page-item.active .page-link {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.page-item.disabled .page-link {
    color: var(--text-muted);
    pointer-events: none;
    background: var(--secondary-light);
}

/* Auth Pages */
.auth-body {
    background: linear-gradient(135deg, #1e3a5f 0%, #152840 50%, #0f1a28 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}
.auth-card {
    background: var(--surface);
    border-radius: 8px;
    padding: 44px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}
.auth-header .brand {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.auth-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
}
.empty-state .icon {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--border);
}
.empty-state h3 {
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 10px;
}
.empty-state p {
    font-size: 0.9rem;
    margin-bottom: 22px;
}

/* Toolbar */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}
.toolbar-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.toolbar-right { display: flex; align-items: center; gap: 12px; }
.search-box {
    position: relative;
}
.search-box input {
    padding-left: 40px;
    min-width: 260px;
}
.search-box::before {
    content: "\1F50D";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
}

/* Grid Utilities */
.row { display: flex; flex-wrap: wrap; margin: -12px; }
.g-4 { gap: 20px; }
.col-md-3, .col-md-4, .col-md-6, .col-md-12 { padding: 12px; flex: 0 0 auto; }
.col-md-3 { width: 25%; }
.col-md-4 { width: 33.333%; }
.col-md-6 { width: 50%; }
.col-md-12 { width: 100%; }
.col-auto { flex: 0 0 auto; width: auto; }

/* Typography */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 18px; }
.mb-3 { margin-bottom: 28px; }
.mb-4 { margin-bottom: 36px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 18px; }
.mt-3 { margin-top: 28px; }
.mt-4 { margin-top: 36px; }
.w-100 { width: 100%; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-center { text-align: center; }
.hr { border: none; border-top: 1px solid var(--border-light); margin: 16px 0; }

/* Utility Classes */
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-end { justify-content: flex-end; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 18px; }
.gap-3 { gap: 24px; }
.flex-wrap { flex-wrap: wrap; }
.ms-auto { margin-left: auto; }

/* Filter Section */
.filter-section {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
}
.filter-section .row {
    align-items: flex-end;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-wrapper {
        margin-left: 0;
    }
    .col-md-3, .col-md-4, .col-md-6 {
        width: 100%;
    }
}

/* Additional Bootstrap-like utilities */
.table-responsive {
    overflow-x: auto;
}
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}
.text-end { text-align: right; }
.text-start { text-align: left; }
.form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--surface);
    font-family: 'Segoe UI', system-ui, sans-serif;
}
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(30, 58, 95, 0.1);
}
.row.g-3 {
    gap: 16px;
}
.btn-group {
    display: inline-flex;
    gap: 8px;
}

/* Modal Styles for Bootstrap */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1060;
    align-items: center;
    justify-content: center;
}
.modal.show {
    display: flex;
}
.modal-dialog {
    background: var(--surface);
    border-radius: var(--radius);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}
.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    padding: 0;
}
.modal-close:hover {
    color: var(--text);
}
.modal-body {
    padding: 22px;
}
.modal-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: var(--secondary-light);
}
.btn-close {
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23000' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") no-repeat center;
    border: 0;
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
    opacity: 0.5;
}
.btn-close:hover {
    opacity: 1;
}

/* More utility classes */
.mb-3 { margin-bottom: 18px; }
.mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 32px; }
.mt-3 { margin-top: 18px; }
.mt-4 { margin-top: 24px; }
.p-3 { padding: 18px; }
.p-4 { padding: 24px; }
.py-3 { padding-top: 18px; padding-bottom: 18px; }
.px-3 { padding-left: 18px; padding-right: 18px; }
.gap-2 { gap: 12px; }
.gap-3 { gap: 18px; }

/* Grid system */
.col-12 { width: 100%; }
.col-6 { width: 50%; }
.col-4 { width: 33.333%; }
.col-3 { width: 25%; }

/* Offset classes */
.offset-md-2 { margin-left: 16.666%; }
.offset-md-3 { margin-left: 25%; }
.offset-md-4 { margin-left: 33.333%; }
.offset-md-6 { margin-left: 50%; }

/* Order classes */
.order-first { order: -1; }
.order-last { order: 1; }
.order-1 { order: 1; }
.order-2 { order: 2; }
.order-3 { order: 3; }

/* Display utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-grid { display: grid; }
.d-table { display: table; }
.d-table-row { display: table-row; }
.d-table-cell { display: table-cell; }

/* Flex utilities */
.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-wrap { flex-wrap: wrap; }
.flex-fill { flex: 1 1 auto; }
.flex-grow-0 { flex-grow: 0; }
.flex-grow-1 { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-shrink-1 { flex-shrink: 1; }
.justify-content-center { justify-content: center; }
.justify-content-start { justify-content: flex-start; }
.justify-content-end { justify-content: flex-end; }
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }
.align-items-center { align-items: center; }
.align-self-start { align-self: flex-start; }
.align-self-end { align-self: flex-end; }
.align-self-center { align-self: center; }

/* Spacing utilities */
.m-0 { margin: 0; }
.m-1 { margin: 4px; }
.m-2 { margin: 8px; }
.m-3 { margin: 16px; }
.m-4 { margin: 24px; }
.m-5 { margin: 32px; }
.m-auto { margin: auto; }
.mt-0 { margin-top: 0; }
.mt-5 { margin-top: 32px; }
.mb-5 { margin-bottom: 32px; }
.ms-1 { margin-left: 4px; }
.ms-2 { margin-left: 8px; }
.ms-3 { margin-left: 16px; }
.ms-auto { margin-left: auto; }
.me-1 { margin-right: 4px; }
.me-2 { margin-right: 8px; }
.me-3 { margin-right: 16px; }
.me-auto { margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-0 { margin-top: 0; margin-bottom: 0; }
.my-3 { margin-top: 16px; margin-bottom: 16px; }
.my-4 { margin-top: 24px; margin-bottom: 24px; }

.p-0 { padding: 0; }
.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-3 { padding: 16px; }
.p-4 { padding: 24px; }
.p-5 { padding: 32px; }
.pt-0 { padding-top: 0; }
.pt-3 { padding-top: 16px; }
.pt-4 { padding-top: 24px; }
.pb-0 { padding-bottom: 0; }
.pb-3 { padding-bottom: 16px; }
.pb-4 { padding-bottom: 24px; }
.px-4 { padding-left: 24px; padding-right: 24px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-4 { padding-top: 24px; padding-bottom: 24px; }

/* Border utilities */
.border { border: 1px solid var(--border); }
.border-0 { border: 0; }
.border-top { border-top: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }
.border-start { border-left: 1px solid var(--border); }
.border-end { border-right: 1px solid var(--border); }
.rounded { border-radius: var(--radius); }
.rounded-0 { border-radius: 0; }
.rounded-1 { border-radius: 2px; }
.rounded-2 { border-radius: 4px; }
.rounded-3 { border-radius: 6px; }
.rounded-circle { border-radius: 50%; }
.rounded-pill { border-radius: 50px; }

/* Shadow utilities */
.shadow-sm { box-shadow: var(--shadow); }
.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-none { box-shadow: none; }

/* Sizing */
.w-25 { width: 25%; }
.w-50 { width: 50%; }
.w-75 { width: 75%; }
.w-100 { width: 100%; }
.w-auto { width: auto; }
.h-25 { height: 25%; }
.h-50 { height: 50%; }
.h-75 { height: 75%; }
.h-100 { height: 100%; }
.h-auto { height: auto; }
.min-vw-100 { min-width: 100vw; }
.min-vh-100 { min-height: 100vh; }
.vw-100 { width: 100vw; }
.vh-100 { height: 100vh; }
.max-vh-100 { max-height: 100vh; }

/* Overflow */
.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }
.overflow-visible { overflow: visible; }
.overflow-scroll { overflow: scroll; }

/* Position */
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.start-0 { left: 0; }
.end-0 { right: 0; }
.translate-middle { transform: translate(-50%, -50%); }

/* Z-index */
.z-index-1 { z-index: 1; }
.z-index-2 { z-index: 2; }
.z-index-3 { z-index: 3; }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }

/* Visibility */
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* Text utilities */
.text-start { text-align: left; }
.text-end { text-align: right; }
.text-center { text-align: center; }
.text-decoration-none { text-decoration: none; }
.text-decoration-underline { text-decoration: underline; }
.text-decoration-line-through { text-decoration: line-through; }
.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }
.text-capitalize { text-transform: capitalize; }
.text-wrap { white-space: normal; }
.text-nowrap { white-space: nowrap; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.font-italic { font-style: italic; }
.font-normal { font-style: normal; }
.fw-light { font-weight: 300; }
.fw-lighter { font-weight: lighter; }
.fw-normal { font-weight: 400; }
.fw-bold { font-weight: 700; }
.fw-bolder { font-weight: bolder; }
.lh-1 { line-height: 1; }
.lh-sm { line-height: 1.25; }
.lh-base { line-height: 1.5; }
.lh-lg { line-height: 2; }

/* Background utilities */
.bg-primary { background-color: var(--primary) !important; color: #fff; }
.bg-secondary { background-color: var(--secondary) !important; color: #fff; }
.bg-success { background-color: var(--success) !important; color: #fff; }
.bg-danger { background-color: var(--danger) !important; color: #fff; }
.bg-warning { background-color: var(--warning) !important; color: #fff; }
.bg-info { background-color: var(--info) !important; color: #fff; }
.bg-light { background-color: var(--secondary-light) !important; color: var(--text); }
.bg-dark { background-color: var(--primary-dark) !important; color: #fff; }
.bg-white { background-color: #fff; }
.bg-transparent { background-color: transparent; }

/* Border utilities with colors */
.border-primary { border-color: var(--primary) !important; }
.border-secondary { border-color: var(--secondary) !important; }
.border-success { border-color: var(--success) !important; }
.border-danger { border-color: var(--danger) !important; }
.border-warning { border-color: var(--warning) !important; }
.border-info { border-color: var(--info) !important; }
.border-light { border-color: var(--border-light) !important; }
.border-dark { border-color: var(--primary-dark) !important; }
.border-white { border-color: #fff !important; }

/* Text colors */
.text-white { color: #fff !important; }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }
.text-light { color: var(--text-light) !important; }
.text-dark { color: var(--text) !important; }
.text-body { color: var(--text) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-white-50 { color: rgba(255,255,255,0.5) !important; }
.text-black-50 { color: rgba(0,0,0,0.5) !important; }

/* Link colors */
.link-secondary { color: var(--secondary); }
.link-dark { color: var(--text); }

/* Object fit */
.object-fit-cover { object-fit: cover; }
.object-fit-contain { object-fit: contain; }

/* Aspect ratio */
.ratio { position: relative; width: 100%; }
.ratio-1x1 { padding-top: 100%; }
.ratio-4x3 { padding-top: 75%; }
.ratio-16x9 { padding-top: 56.25%; }
.ratio-21x9 { padding-top: 42.857%; }

/* Transitions */
.transition-none { transition: none; }
.transition-fade { transition: opacity 0.15s linear; }
.transition-transform { transition: transform 0.15s ease-out; }

/* Interaction */
.user-select-all { user-select: all; }
.user-select-text { user-select: text; }
.user-select-none { user-select: none; }
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* Focus */
.focus-ring:focus { outline: 0; box-shadow: 0 0 0 0.25rem rgba(30, 58, 95, 0.25); }

/* Print */
@media print {
    .d-print-none { display: none !important; }
    .d-print-inline { display: inline !important; }
    .d-print-inline-block { display: inline-block !important; }
    .d-print-block { display: block !important; }
    .d-print-table { display: table !important; }
    .d-print-table-row { display: table-row !important; }
    .d-print-table-cell { display: table-cell !important; }
    .d-print-flex { display: flex !important; }
    .d-print-inline-flex { display: inline-flex !important; }
}