/* ===========================================
   FIXED & COMPACTED style.css (FULL FILE)
   - Preserves original class names/structure
   - Scales down sizes, paddings, fonts for compact UI
   =========================================== */

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

:root {
    --primary-color: #4a6bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-color: #dee2e6;

    /* Compact dimensions */
    --sidebar-width: 180px;    /* reduced from 250 */
    --header-height: 50px;     /* reduced from 70 */
    --footer-height: 45px;     /* reduced from 60 */

    /* font scale */
    --font-xs: 11px;
    --font-sm: 12px;
    --font-md: 18px;
    --font-lg: 16px;
    --radius-sm: 6px;
    --radius-md: 8px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fb;
    color: #333;
    line-height: 1.5;
    overflow-x: hidden;
    font-size: var(--font-md) !important;
}

/* ===== HEADER STYLES ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: white;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--primary-color);
    cursor: pointer;
    display: none;
}

.logo img {
    height: 28px;
}

.logo h1 {
    font-size: 16px;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: 0.2px;
}

.header-center .current-info {
    text-align: center;
}

.digital-clock {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.current-date {
    color: var(--secondary-color);
    font-size: var(--font-sm);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.user-avatar {
    width: 34px;
    height: 34px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.user-details {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.user-name {
    font-weight: 600;
    font-size: var(--font-sm);
}

.user-role {
    font-size: 11px;
    color: var(--secondary-color);
}

.dropdown-toggle {
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-radius: var(--radius-sm);
    min-width: 180px;
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.dropdown-menu a {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    font-size: var(--font-sm);
}

.dropdown-menu a:hover {
    background: var(--light-color);
}

.dropdown-menu a i {
    width: 18px;
    margin-right: 8px;
    font-size: 13px;
}

.user-dropdown:hover .dropdown-menu {
    display: block;
}

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-notification {
    position: relative;
    background: none;
    border: none;
    font-size: 16px;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
}

.notification-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--danger-color);
    color: white;
    font-size: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-quick-sale {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-sm);
}

.notifications-panel {
    position: absolute;
    top: 100%;
    right: 8px;
    width: 320px;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-radius: 8px;
    display: none;
    z-index: 1001;
}

.notifications-panel.active {
    display: block;
}

.notifications-header {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-list {
    max-height: 320px;
    overflow-y: auto;
}

.notification-item {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: var(--font-sm);
}

.notification-item.unread {
    background: #f8f9ff;
}

.notification-icon {
    width: 36px;
    height: 36px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 14px;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: var(--font-sm);
}

.notification-message {
    color: var(--secondary-color);
    font-size: 12px;
    margin-bottom: 4px;
}

.notification-time {
    font-size: 11px;
    color: #999;
}

.notification-mark-read {
    background: none;
    border: none;
    color: var(--success-color);
    cursor: pointer;
    padding: 6px;
}

/* ===== SIDEBAR STYLES ===== */
.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: white;
    box-shadow: 1px 0 8px rgba(0,0,0,0.05);
    overflow-y: auto;
    transition: transform 0.25s;
    z-index: 999;
}

.sidebar-header {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-user .user-avatar {
    width: 44px;
    height: 44px;
    font-size: 18px;
}

.user-info .user-name {
    font-size: var(--font-sm);
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 18px;
    cursor: pointer;
}

.sidebar-menu {
    padding: 12px 0;
}

.sidebar-menu ul {
    list-style: none;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: #333;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s;
    font-size: var(--font-sm);
}

.sidebar-menu li a:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.sidebar-menu li.active a {
    background: #f0f5ff;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar-menu li a i {
    width: 22px;
    margin-right: 10px;
    font-size: 14px;
}

.menu-dropdown .dropdown-arrow {
    margin-left: auto;
    transition: transform 0.2s;
}

.menu-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.submenu {
    display: none;
    background: var(--light-color);
}

.menu-dropdown.open .submenu {
    display: block;
}

.submenu li a {
    padding-left: 44px;
    font-size: var(--font-sm);
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    border-top: 1px solid var(--border-color);
    background: white;
}


.system-info {
    margin-bottom: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 12px;
    color: var(--secondary-color);
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 8px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: var(--font-sm);
}

/* ===== MAIN CONTENT ===== */
.container {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    /* top  right bottom left  */
    padding: 8px 0 8px 8px;   /* no right padding */
    transition: margin-left 0.25s;
}

.main-content {
    max-width: 100%;           /* remove fixed 1200px */
    margin: 0;                 /* remove centering gap */
}
/* ===== FOOTER STYLES ===== */
.footer {
    margin-left: var(--sidebar-width);
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 8px 10px;
    transition: margin-left 0.25s;
    font-size: 12px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;       /* use full width */
    margin: 0;         /* no centering gap */
    padding: 8px 0 8px 100px;   /* no right padding */
}

.footer-left p {
    margin-bottom: 4px;
    font-size: 12px;
}

.footer-address, .footer-phone {
    font-size: 12px;
    color: var(--secondary-color);
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-color);
}

.server-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--secondary-color);
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.footer-links {
    display: flex;
    gap: 10px;
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 12px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.session-info {
    font-size: 12px;
    color: var(--secondary-color);
}

/* ===== DASHBOARD STYLES ===== */
.dashboard {
    padding: 12px;
}

.dashboard-header {
    margin-bottom: 18px;
}

.dashboard-header h1 {
    color: var(--primary-color);
    margin-bottom: 6px;
    font-size: 18px;
}

.subtitle {
    color: var(--secondary-color);
    font-size: var(--font-sm);
}

.dashboard-widgets {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.widget-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.18s, box-shadow 0.18s;
}

.widget-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.09);
}

.widget-card.sales-card { border-top: 4px solid var(--success-color); }
.widget-card.transactions-card { border-top: 4px solid var(--info-color); }
.widget-card.inventory-card { border-top: 4px solid var(--warning-color); }
.widget-card.cheques-card { border-top: 4px solid var(--danger-color); }

.widget-icon { font-size: 22px; color: var(--primary-color); margin-bottom: 8px; }
.widget-content h3 { font-size: 13px; color: var(--secondary-color); margin-bottom: 6px; }
.widget-value { font-size: 20px; font-weight: 700; color: var(--dark-color); margin-bottom: 8px; }
.widget-details { display: flex; justify-content: space-between; font-size: 12px; color: var(--secondary-color); }

.widget-header { display:flex; align-items:center; gap:8px; margin-bottom:8px; padding-bottom:8px; border-bottom:1px solid var(--border-color); }
.widget-header h3 { margin:0; color: var(--dark-color); font-size: 13px; }

.widget-body { padding: 8px 0; }

.info-item { display:flex; justify-content:space-between; padding:6px 0; border-bottom:1px solid var(--border-color); font-size: 12px; }
.info-label { font-weight:600; color: var(--secondary-color); }
.info-value { color: var(--dark-color); }

.top-products-table, .low-stock-table, .cheques-table { width:100%; border-collapse: collapse; font-size: 12px; }
.top-products-table th, .low-stock-table th, .cheques-table th {
    text-align:left; padding:8px; background: var(--light-color); border-bottom:2px solid var(--border-color); color: var(--secondary-color); font-weight: 600;
}
.top-products-table td, .low-stock-table td, .cheques-table td { padding:8px; border-bottom:1px solid var(--border-color); }

.text-muted { color: var(--secondary-color); text-align:center; padding:12px; font-size: var(--font-sm); }
.text-danger { color: var(--danger-color); font-weight:700; }

.tip-content {
    background: #fffaf0;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid var(--warning-color);
    font-size: 12px;
}

.tip-actions { display:flex; justify-content:space-between; align-items:center; gap:8px; }

.btn-tip-prev, .btn-tip-next {
    background: var(--light-color); border:none; width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; cursor:pointer; color: var(--secondary-color);
}

/* ===== POS STYLES ===== */
.pos-container {
    height: calc(100vh - var(--header-height) - var(--footer-height) - 24px);
    display: flex;
    flex-direction: column;
}

.pos-header {
    background: white;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    display:flex; justify-content:space-between; align-items:center;
}

.pos-header-left h2 { color: var(--primary-color); margin-bottom:2px; font-size:16px; }
.pos-info { display:flex; gap:12px; font-size:12px; color:var(--secondary-color); }
.pos-header-right { display:flex; gap:8px; }

.btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-sm);
    transition: transform 0.12s, box-shadow 0.12s;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 3px 8px rgba(0,0,0,0.06); }

.btn-hold { background: var(--warning-color); color:#222; }
.btn-print { background: var(--info-color); color:#fff; }
.btn-payment { background: var(--success-color); color:#fff; }
.btn-clear { background: var(--danger-color); color:#fff; }
.btn-complete { background: var(--success-color); color:#fff; }
.btn-secondary { background: var(--secondary-color); color:#000; }
.btn-primary { background: var(--primary-color); color:#000; }
.btn-sm { padding: 6px 10px; font-size: var(--font-xs); }

/* POS LAYOUT */
.pos-main { flex:1; display:flex; gap:12px; min-height:0; }
.pos-left { flex:3; background:white; border-radius: var(--radius-md); padding:12px; box-shadow: 0 1px 8px rgba(0,0,0,0.05); display:flex; flex-direction:column; }
.pos-right { flex:2; background:white; border-radius: var(--radius-md); padding:12px; box-shadow: 0 1px 8px rgba(0,0,0,0.05); display:flex; flex-direction:column; min-width: 320px; }

/* SEARCH */
.product-search-container { margin-bottom: 12px; }
.search-box { position:relative; display:flex; align-items:center; }
.search-box i { position:absolute; left:10px; color:var(--secondary-color); font-size:14px; }
.search-box input {
    width:100%;
    padding: 8px 10px 8px 34px;
    border:1px solid var(--border-color);
    border-radius:6px;
    font-size:var(--font-sm);
    transition: border-color .12s;
}
.search-box input:focus { outline:none; border-color:var(--primary-color); }

.search-actions { position:absolute; right:8px; }
.search-results {
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:white;
    border:1px solid var(--border-color);
    border-radius:6px;
    max-height:240px;
    overflow-y:auto;
    display:none;
    z-index:1000;
    box-shadow: 0 6px 12px rgba(0,0,0,0.06);
}

.search-item { padding:8px 10px; cursor:pointer; border-bottom:1px solid var(--border-color); font-size:var(--font-sm); }
.search-item:hover { background:var(--light-color); }

/* CATEGORIES */
.category-tabs-container { margin-bottom: 10px; }
.category-tabs { display:flex; flex-wrap:wrap; gap:8px; }
.category-tab {
    padding:6px 12px; background:var(--light-color); border:none; border-radius:20px; cursor:pointer; font-size:var(--font-sm);
}
.category-tab.active { background:var(--primary-color); color:#fff; }

/* PRODUCT GRID */
.product-grid-container { flex:1; display:flex; flex-direction:column; min-height:0; }
.product-grid-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.product-grid {
    flex:1;
    overflow-y:auto;
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap:10px;
    padding:8px;
    border:1px solid var(--border-color);
    border-radius:6px;
}

.product-card {
    background:white; border:1px solid var(--border-color); border-radius:6px; padding:10px; cursor:pointer; text-align:center; transition: transform .12s, box-shadow .12s;
}
.product-card:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.06); border-color:var(--primary-color); }
.product-card h4 { font-size: var(--font-sm); margin-bottom:6px; color:var(--dark-color); }
.product-price { font-weight:700; color:var(--success-color); margin-bottom:4px; }
.product-stock { font-size:11px; color:var(--secondary-color); }

/* PAGINATION */
.product-grid-footer { margin-top:8px; }
.pagination { display:flex; justify-content:center; gap:6px; align-items:center; }

/* SECTIONS */
.customer-section, .cart-section, .summary-section { margin-bottom:12px; }
.section-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; padding-bottom:8px; border-bottom:1px solid var(--border-color); }
.section-header h3 { display:flex; align-items:center; gap:8px; font-size:14px; color:var(--dark-color); }
.cart-count { background:var(--primary-color); color:#fff; padding:2px 6px; border-radius:10px; font-size:11px; }

/* FORMS */
.form-control { width:100%; padding:8px; border:1px solid var(--border-color); border-radius:6px; font-size:var(--font-sm); }
.form-control:focus { outline:none; border-color:var(--primary-color); }

.customer-info { margin-top:8px; padding:8px; background:var(--light-color); border-radius:6px; font-size:12px; }

/* CART */
.cart-items { flex:1; overflow-y:auto; border:1px solid var(--border-color); border-radius:6px; margin-bottom:10px; }
.cart-table { width:100%; border-collapse:collapse; font-size:13px; }
.cart-table th {
    background:var(--light-color); padding:8px; text-align:left; font-weight:700; color:var(--secondary-color); border-bottom:2px solid var(--border-color);
}
.cart-table td { padding:8px; border-bottom:1px solid var(--border-color); vertical-align: middle; }
.cart-table tbody tr:hover { background:#f8f9ff; }
.cart-table input[type="number"] { width:56px; padding:6px; border:1px solid var(--border-color); border-radius:4px; }

/* SUMMARY */
.summary-items { background:var(--light-color); padding:10px; border-radius:6px; margin-bottom:10px; font-size:13px; }
.summary-row { display:flex; justify-content:space-between; margin-bottom:8px; padding-bottom:8px; border-bottom:1px dashed var(--border-color); }
.summary-row:last-child { border-bottom:none; margin-bottom:0; padding-bottom:0; }
.summary-row.grand-total { font-size:16px; font-weight:700; color:var(--primary-color); padding-top:6px; border-top:2px solid var(--border-color); }

/* DISCOUNT & SERVICE */
.discount-control, .service-control { display:flex; gap:8px; align-items:center; }
.discount-control input, .service-control input { width:80px; padding:6px; border:1px solid var(--border-color); border-radius:4px; }

/* PAYMENT */
.payment-method-section { margin-bottom: 8px; }
.payment-methods { display:grid; grid-template-columns: repeat(4, 1fr); gap:8px; margin-top:8px; }
.payment-option { display:flex; flex-direction:column; align-items:center; padding:8px; border:1px solid var(--border-color); border-radius:6px; cursor:pointer; }
.payment-option:hover { border-color:var(--primary-color); }
.payment-option input { display:none; }
.payment-option i { font-size:16px; margin-bottom:6px; color:var(--secondary-color); }
.payment-option input:checked ~ i, .payment-option input:checked + i { color:var(--primary-color); }

/* CHEQUE */
.cheque-details { margin-top:8px; padding:10px; background:#f8f9ff; border-radius:6px; border-left:4px solid var(--warning-color); }

/* FORMS & LAYOUT */
.form-row { display:flex; gap:10px; }
.form-group { flex:1; }
.form-group label { display:block; margin-bottom:6px; font-weight:600; color:var(--secondary-color); font-size:var(--font-sm); }
.amount-paid-section { display:flex; gap:10px; margin-bottom:10px; }

/* ACTIONS */
.pos-actions { display:flex; gap:8px; }
.pos-actions .btn { flex:1; justify-content:center; }

/* ===== MODAL STYLES ===== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.modal.active { display:flex; }
.modal-content {
    background:white;
    border-radius:8px;
    width:90%;
    max-width:460px;
    max-height:90vh;
    overflow-y:auto;
}
.modal-header { padding:12px; border-bottom:1px solid var(--border-color); display:flex; justify-content:space-between; align-items:center; }
.modal-header h3 { margin:0; color:var(--primary-color); font-size:15px; }
.modal-close { background:none; border:none; font-size:16px; color:var(--secondary-color); cursor:pointer; padding:6px; }
.modal-body { padding:12px; font-size:13px; }
.modal-footer { padding:12px; border-top:1px solid var(--border-color); display:flex; justify-content:flex-end; gap:8px; }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .widget-row { grid-template-columns: repeat(2, 1fr); }
    .pos-main { flex-direction: column; }
    .pos-right { min-width: auto; }
}

@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%);font-size: 10px !important;  }
    .sidebar.active { transform: translateX(0); }
    .container { margin-left: 0; }
    .footer { margin-left: 0; }
    .menu-toggle { display: block; }
    .sidebar-close { display: block; }
    .container {padding: 8px 0 8px 8px;}   /* no right padding */
}

@media (max-width: 768px) {
    .sidebar { font-size: 10px !important;  }
    .header-center { display: none; }
    .widget-row { grid-template-columns: 1fr; }
    .pos-header { flex-direction: column; gap: 10px; }
    .pos-info { flex-wrap: wrap; }
    .form-row { flex-direction: column; gap: 8px; }
    .payment-methods { grid-template-columns: repeat(2, 1fr); }
    .footer-content { flex-direction: column; gap: 12px; text-align: center; }
    .footer-right { align-items: center; }
    .container {padding: 8px 0 8px 8px;}   /* no right padding */
    
}


@media (max-width: 576px) {
    .header-right { flex-direction: column; align-items: flex-end; gap: 8px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .payment-methods { grid-template-columns: 1fr; }
    .pos-actions { flex-direction: column; }
    .container {padding: 8px 0 8px 8px;}
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align:center; }
.text-right { text-align:right; }
.text-left { text-align:left; }
.mt-1 { margin-top:6px; }
.mt-2 { margin-top:10px; }
.mt-3 { margin-top:14px; }
.mt-4 { margin-top:18px; }
.mb-1 { margin-bottom:6px; }
.mb-2 { margin-bottom:10px; }
.mb-3 { margin-bottom:14px; }
.mb-4 { margin-bottom:18px; }
.p-1 { padding:6px; }
.p-2 { padding:10px; }
.p-3 { padding:14px; }
.p-4 { padding:18px; }
.d-none { display:none !important; }
.d-flex { display:flex !important; }
.d-block { display:block !important; }
.d-inline { display:inline !important; }
.d-inline-block { display:inline-block !important; }
.w-100 { width:100% !important; }
.h-100 { height:100% !important; }
.vh-100 { height:100vh !important; }
.overflow-auto { overflow:auto; }
.overflow-hidden { overflow:hidden; }
.position-relative { position:relative; }
.position-absolute { position:absolute; }
.position-fixed { position:fixed; }
.position-sticky { position:sticky; }
.cursor-pointer { cursor:pointer; }
.user-select-none { user-select:none; }
.rounded { border-radius:6px; }
.rounded-circle { border-radius:50%; }
.shadow { box-shadow: 0 2px 6px rgba(0,0,0,0.06); }
.shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.shadow-lg { box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.border { border:1px solid var(--border-color); }
.border-top { border-top:1px solid var(--border-color); }
.border-bottom { border-bottom:1px solid var(--border-color); }
.border-start { border-left:1px solid var(--border-color); }
.border-end { border-right:1px solid var(--border-color); }
.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-success { background-color: var(--success-color); }
.bg-danger { background-color: var(--danger-color); }
.bg-warning { background-color: var(--warning-color); }
.bg-info { background-color: var(--info-color); }
.bg-light { background-color: var(--light-color); }
.bg-dark { background-color: var(--dark-color); }
.bg-white { background-color: white; }
.bg-transparent { background-color: transparent; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-warning { color: var(--warning-color); }
.text-info { color: var(--info-color); }
.text-light { color: var(--light-color); }
.text-dark { color: var(--dark-color); }
.text-white { color: white; }
.text-muted { color: var(--secondary-color); }
.fs-1 { font-size: 2rem; }
.fs-2 { font-size: 1.6rem; }
.fs-3 { font-size: 1.3rem; }
.fs-4 { font-size: 1.1rem; }
.fs-5 { font-size: 1rem; }
.fs-6 { font-size: 0.9rem; }
.fw-light { font-weight:300; }
.fw-normal { font-weight:400; }
.fw-bold { font-weight:600; }
.fw-bolder { font-weight:700; }

/* ===== ALERT STYLES ===== */
.alert { padding:10px; border-radius:6px; margin-bottom:12px; font-size:13px; }
.alert-success { background:#d4edda; color:#155724; border:1px solid #c3e6cb; }
.alert-danger { background:#f8d7da; color:#721c24; border:1px solid #f5c6cb; }
.alert-warning { background:#fff3cd; color:#856404; border:1px solid #ffeaa7; }
.alert-info { background:#d1ecf1; color:#0c5460; border:1px solid #bee5eb; }

/* End of compacted style.css */
