/* ============================================================
   GROSIR PRO - Custom CSS
   Modern Blue Theme for Wholesale Management System
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary:       #1565c0;
    --primary-dark:  #0d47a1;
    --primary-darker:#1a237e;
    --primary-light: #42a5f5;
    --primary-bg:    #e3f2fd;
    --primary-bg-alt:#bbdefb;

    --sidebar-width: 260px;
    --sidebar-bg-start: #1a237e;
    --sidebar-bg-end:   #0d47a1;

    --navbar-height: 64px;

    --text-dark:   #263238;
    --text-muted:  #78909c;
    --text-light:  #b0bec5;

    --bg-body:     #f0f4f8;
    --bg-card:     #ffffff;

    --border-color: #e0e6ed;
    --shadow-sm:    0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:    0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg:    0 8px 30px rgba(0,0,0,0.12);

    --radius-sm:   6px;
    --radius-md:   10px;
    --radius-lg:   16px;

    --transition:  all 0.25s ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-body);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #b0bec5;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #90a4ae;
}

/* ============================================================
   APP LAYOUT WRAPPER
   ============================================================ */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--sidebar-bg-start) 0%, var(--sidebar-bg-end) 100%);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    overflow: hidden;
}

/* ---- Sidebar Header ---- */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 12px;
    flex-shrink: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
}

.sidebar-logo i {
    font-size: 28px;
    color: var(--primary-light);
    filter: drop-shadow(0 2px 6px rgba(66,165,245,0.4));
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff, #bbdefb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-close-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--transition);
}
.sidebar-close-btn:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.1);
}

/* ---- Sidebar User ---- */
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    margin: 0 12px 8px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.sidebar-user .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-user .user-avatar i {
    font-size: 20px;
    color: var(--primary-light);
}

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

.user-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
}

/* ---- Sidebar Navigation ---- */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin: 2px 12px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.1);
}

.nav-link.active,
.nav-link.current {
    color: #ffffff;
    background: rgba(66,165,245,0.2);
    font-weight: 600;
}

.nav-link.active::before,
.nav-link.current::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--primary-light);
    border-radius: 0 3px 3px 0;
}

.nav-link i:first-child {
    width: 22px;
    text-align: center;
    font-size: 15px;
    flex-shrink: 0;
}

.nav-link span {
    flex: 1;
    white-space: nowrap;
}

/* ---- Submenu Toggle Arrow ---- */
.submenu-arrow {
    font-size: 11px;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.nav-link[aria-expanded="true"] .submenu-arrow {
    transform: rotate(90deg);
}

/* ---- Submenu ---- */
.submenu {
    list-style: none;
    padding: 4px 0 4px 0;
    margin: 0;
}

.submenu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px 9px 50px;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 13px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.submenu li a i {
    width: 18px;
    text-align: center;
    font-size: 12px;
}

.submenu li a:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.07);
}

.submenu li a.active {
    color: var(--primary-light);
    background: rgba(66,165,245,0.12);
    font-weight: 600;
}

.submenu-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 6px 50px 6px 50px;
}

/* ---- Sidebar Footer ---- */
.sidebar-footer {
    padding: 14px 20px;
    text-align: center;
    color: rgba(255,255,255,0.25);
    font-size: 11px;
    flex-shrink: 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ---- Sidebar Overlay (mobile) ---- */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1035;
    backdrop-filter: blur(2px);
}
.sidebar-overlay.show {
    display: block;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* ============================================================
   TOP NAVBAR
   ============================================================ */
.top-navbar {
    position: sticky;
    top: 0;
    height: var(--navbar-height);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    z-index: 1020;
    flex-shrink: 0;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hamburger-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: none;
}
.hamburger-btn:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-body);
    border-radius: 50px;
    padding: 8px 16px;
    gap: 10px;
    min-width: 300px;
    border: 1px solid transparent;
    transition: var(--transition);
}
.search-box:focus-within {
    border-color: var(--primary-light);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
}
.search-box i {
    color: var(--text-muted);
    font-size: 14px;
}
.search-box input {
    border: none;
    background: none;
    outline: none;
    font-size: 14px;
    color: var(--text-dark);
    width: 100%;
}
.search-box input::placeholder {
    color: var(--text-light);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---- Navbar Icons ---- */
.nav-icon-btn {
    position: relative;
    background: none;
    border: none;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}
.nav-icon-btn:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: #ef5350;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

/* ---- Notification Dropdown ---- */
.notification-dropdown {
    width: 360px;
    padding: 0;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.notification-dropdown .dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: #fafbfc;
}
.notification-dropdown .dropdown-header h6 {
    margin: 0;
    font-weight: 700;
    color: var(--text-dark);
}
.mark-all-read {
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}
.notification-item:hover {
    background: var(--primary-bg);
    color: var(--text-dark);
}
.notification-item.unread {
    background: #f5f9ff;
}

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    color: #ffffff;
}

.notif-content p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}
.notif-content small {
    color: var(--text-muted);
    font-size: 11px;
}

.dropdown-footer {
    text-align: center;
    padding: 12px;
    border-top: 1px solid var(--border-color);
}
.dropdown-footer a {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* ---- User Dropdown ---- */
.user-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 50px;
    transition: var(--transition);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
}
.user-dropdown-btn:hover {
    background: var(--primary-bg);
}

.user-avatar-sm {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.user-avatar-sm i {
    color: #ffffff;
    font-size: 14px;
}

/* ============================================================
   CONTENT AREA
   ============================================================ */
.content-wrapper {
    flex: 1;
    padding: 24px;
}

.content-breadcrumb {
    margin-bottom: 20px;
}
.content-breadcrumb .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
}
.content-breadcrumb .breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}
.content-breadcrumb .breadcrumb-item.active {
    color: var(--text-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.main-footer {
    padding: 14px 24px;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: var(--bg-card);
}
.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-dark);
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
}

.card-body {
    padding: 20px;
}

/* ---- Dashboard Stat Cards ---- */
.stat-card {
    border: none;
    border-radius: var(--radius-md);
    padding: 24px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
}

.stat-card .stat-icon {
    font-size: 40px;
    opacity: 0.3;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 13px;
    opacity: 0.85;
    font-weight: 500;
}

.stat-card .stat-change {
    font-size: 12px;
    margin-top: 8px;
    opacity: 0.9;
}

.stat-card.bg-gradient-primary {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
}
.stat-card.bg-gradient-success {
    background: linear-gradient(135deg, #43a047, #2e7d32);
}
.stat-card.bg-gradient-warning {
    background: linear-gradient(135deg, #fb8c00, #ef6c00);
}
.stat-card.bg-gradient-danger {
    background: linear-gradient(135deg, #e53935, #c62828);
}
.stat-card.bg-gradient-info {
    background: linear-gradient(135deg, #039be5, #0277bd);
}
.stat-card.bg-gradient-purple {
    background: linear-gradient(135deg, #7b1fa2, #4a148c);
}

/* ============================================================
   TABLES
   ============================================================ */
.table {
    margin-bottom: 0;
    font-size: 14px;
}

.table thead th {
    background: var(--primary-bg);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--primary-bg-alt);
    padding: 12px 16px;
    white-space: nowrap;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background: #f5f9ff;
}

.table td {
    padding: 12px 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #fafcff;
}
.table-striped tbody tr:nth-of-type(odd):hover {
    background-color: #f0f5ff;
}

/* DataTables overrides */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 14px;
    transition: var(--transition);
}
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
    outline: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: var(--radius-sm);
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--primary-bg) !important;
    color: var(--primary) !important;
    border: none !important;
}

.dataTables_wrapper .dataTables_info {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 18px;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(21,101,192,0.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-darker));
    box-shadow: 0 5px 16px rgba(21,101,192,0.4);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #43a047, #2e7d32);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(46,125,50,0.3);
}
.btn-success:hover {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #e53935, #c62828);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(198,40,40,0.3);
}
.btn-danger:hover {
    background: linear-gradient(135deg, #c62828, #b71c1c);
    transform: translateY(-1px);
}

.btn-warning {
    background: linear-gradient(135deg, #fb8c00, #ef6c00);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(239,108,0,0.3);
}
.btn-warning:hover {
    background: linear-gradient(135deg, #ef6c00, #e65100);
    transform: translateY(-1px);
}

.btn-info {
    background: linear-gradient(135deg, #039be5, #0277bd);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(2,119,189,0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: #ffffff;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 28px;
    font-size: 16px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

/* Login button */
.login-btn {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    border: none;
    border-radius: var(--radius-md);
    padding: 14px;
    font-size: 16px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(21,101,192,0.35);
    transition: var(--transition);
}
.login-btn:hover {
    background: linear-gradient(135deg, #0d47a1, #1a237e);
    box-shadow: 0 6px 24px rgba(13,71,161,0.45);
    transform: translateY(-2px);
}

/* ============================================================
   FORM INPUTS
   ============================================================ */
.form-control,
.form-select {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    transition: var(--transition);
    color: var(--text-dark);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(21,101,192,0.12);
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.input-group-text {
    border: 1px solid var(--border-color);
    background: #fafbfc;
    font-size: 14px;
    color: var(--text-muted);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(21,101,192,0.15);
    border-color: var(--primary-light);
}

/* Select2 overrides */
.select2-container--bootstrap-5 .select2-selection {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    min-height: 42px !important;
    padding: 4px 8px !important;
}
.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: var(--primary-light) !important;
    box-shadow: 0 0 0 3px rgba(21,101,192,0.12) !important;
}

/* ============================================================
   BADGES & STATUS
   ============================================================ */
.badge {
    font-weight: 600;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 50px;
    letter-spacing: 0.3px;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.badge-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.badge.bg-lunas     { background: #e8f5e9 !important; color: #2e7d32 !important; }
.badge.bg-belum     { background: #fff3e0 !important; color: #e65100 !important; }
.badge.bg-sebagian  { background: #e3f2fd !important; color: #1565c0 !important; }
.badge.bg-batal     { background: #ffebee !important; color: #c62828 !important; }
.badge.bg-pending   { background: #fff8e1 !important; color: #f9a825 !important; }
.badge.bg-aktif     { background: #e8f5e9 !important; color: #2e7d32 !important; }
.badge.bg-nonaktif  { background: #fafafa !important; color: #9e9e9e !important; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    padding: 14px 20px;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
}
.alert-danger {
    background: #ffebee;
    color: #c62828;
}
.alert-warning {
    background: #fff3e0;
    color: #e65100;
}
.alert-info {
    background: #e3f2fd;
    color: #1565c0;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 18px 24px;
}
.modal-header .modal-title {
    font-weight: 700;
    font-size: 16px;
}
.modal-body {
    padding: 24px;
}
.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 16px 24px;
}

/* ============================================================
   POS / KASIR STYLES
   ============================================================ */
.pos-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
    height: calc(100vh - var(--navbar-height) - 80px);
}

.pos-products {
    overflow-y: auto;
}

.pos-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.pos-product-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
}
.pos-product-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.pos-product-card .product-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pos-product-card .product-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 15px;
}
.pos-product-card .product-stock {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.pos-cart {
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pos-cart-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
}
.pos-cart-header h5 {
    margin: 0;
    font-weight: 700;
}

.pos-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.pos-cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}
.pos-cart-item:last-child {
    border-bottom: none;
}

.pos-cart-footer {
    padding: 16px 20px;
    border-top: 2px solid var(--border-color);
    background: #fafbfc;
}

.pos-total {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-dark);
    text-align: right;
}

.pos-pay-btn {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #43a047, #2e7d32);
    border: none;
    color: #ffffff;
    border-radius: var(--radius-sm);
    margin-top: 12px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(46,125,50,0.3);
}
.pos-pay-btn:hover {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    transform: translateY(-1px);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-primary { color: var(--primary) !important; }
.bg-primary-light { background: var(--primary-bg) !important; }

.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-bg);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 64px;
    color: var(--border-color);
    margin-bottom: 16px;
}
.empty-state h5 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet and below */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .hamburger-btn {
        display: flex;
    }

    .search-box {
        min-width: 200px;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .content-wrapper {
        padding: 16px;
    }

    .top-navbar {
        padding: 0 16px;
    }

    .notification-dropdown {
        width: 300px;
    }

    .search-box {
        display: none !important;
    }

    .pos-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .pos-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    .stat-card .stat-value {
        font-size: 22px;
    }

    .page-title {
        font-size: 18px;
    }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .sidebar,
    .top-navbar,
    .main-footer,
    .no-print {
        display: none !important;
    }
    .main-content {
        margin-left: 0;
    }
    .content-wrapper {
        padding: 0;
    }
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

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

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

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

.slide-up {
    animation: slideUp 0.5s ease forwards;
}

/* Loading spinner */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--primary-bg);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
