/* ============================================================
   Daftar Harga Customer — "Ocean Breeze" Design System
   Bright, modern, light theme with cool accents.
   ============================================================ */

/* ============================================================
   1. Theme Variables
   ============================================================ */
:root {
    --bg-deep: #f0f9ff;
    --bg-surface: #ffffff;
    --bg-elevated: #ffffff;
    --bg-hover: #f8fafc;
    --bg-input: #f8fafc;
    --border-subtle: #e0f2fe;
    --border-default: #bae6fd;
    --border-strong: #7dd3fc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;
    --terracotta: #0ea5e9;
    --terracotta-light: #38bdf8;
    --terracotta-dark: #0284c7;
    --mustard: #8b5cf6;
    --mustard-light: #a78bfa;
    --olive: #14b8a6;
    --olive-light: #5eead4;
    --rust: #0284c7;
    --sage: #06b6d4;
    --brick: #ef4444;
    --success: var(--olive);
    --danger: var(--brick);
    --warning: #f59e0b;
    --info: var(--sage);
    --font-display: 'DM Serif Display', Georgia, serif;
    --form-border: #94a3b8;
    --form-border-hover: #64748b;
    --form-border-focus: #475569;
    --form-text: #1e293b;
    --form-label: #334155;
    --form-placeholder: #94a3b8;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --topbar-height: 56px;
    --nav-height: 42px;
    --radius-sm: 2px;
    --radius: 4px;
    --radius-lg: 6px;
    --border-thick: 2.5px;
    --transition: 200ms ease;
}

/* ============================================================
   2. Reset & Base
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--terracotta);
    color: var(--text-inverse);
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-deep);
    background-image:
        radial-gradient(ellipse at 30% 20%, rgba(14, 165, 233, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(20, 184, 166, 0.02) 0%, transparent 60%);
    background-attachment: fixed;
    line-height: 1.6;
    min-height: 100vh;
}

/* Subtle dot pattern overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='1' fill='%230ea5e9' fill-opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

a {
    color: var(--terracotta);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--terracotta-dark);
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

/* ============================================================
   3. Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-small { font-size: 0.8rem; }
.text-mono { font-family: var(--font-mono); }
.text-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: var(--text-muted);
}
.font-display { font-family: var(--font-display); }

/* ============================================================
   4. Scrollbar
   ============================================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-surface);
}
::-webkit-scrollbar-thumb {
    background: var(--border-default);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--border-strong);
}

/* ============================================================
   5. Layout
   ============================================================ */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: calc(var(--topbar-height) + var(--nav-height));
}

.main-content.no-nav {
    padding-top: var(--topbar-height);
}

.content-wrapper {
    flex: 1;
    padding: 28px 32px;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}

.content-wrapper.full {
    max-width: 100%;
}

/* ============================================================
   6. Top Bar
   ============================================================ */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    background: var(--bg-surface);
    border-bottom: var(--border-thick) solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    z-index: 1000;
}

.top-bar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.top-bar-brand .brand-icon {
    width: 32px;
    height: 32px;
    background: var(--terracotta);
    color: var(--text-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border: 1.5px solid;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    border-radius: var(--radius-sm);
}
.user-badge.role-admin {
    border-color: var(--terracotta);
    color: var(--terracotta-light);
}
.user-badge.role-sales {
    border-color: var(--mustard);
    color: var(--mustard-light);
}
.user-badge.role-customer {
    border-color: var(--olive);
    color: var(--olive-light);
}

.user-name-display {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: transparent;
    color: var(--text-muted);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-logout:hover {
    color: var(--danger);
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.08);
}

/* ============================================================
   7. Navigation Strip
   ============================================================ */
.nav-strip {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    padding: 0 28px;
    z-index: 999;
    overflow-x: auto;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
}
.nav-strip::-webkit-scrollbar {
    display: none;
}

.nav-strip-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    border: 1.5px solid transparent;
    border-radius: var(--radius);
    white-space: nowrap;
    transition: all var(--transition);
    text-decoration: none;
    font-family: var(--font-body);
}
.nav-strip-link:hover {
    color: var(--text-secondary);
    border-color: var(--border-subtle);
    background: var(--bg-hover);
}
.nav-strip-link.active {
    color: var(--terracotta);
    border-color: var(--terracotta);
    background: rgba(14, 165, 233, 0.08);
}
.nav-strip-link i {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ============================================================
   8. Cards
   ============================================================ */
.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-left: var(--border-thick) solid var(--border-default);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 1.25rem;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 400;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.card-body {
    padding: 20px;
}

.card-body.p-0 {
    padding: 0;
}

.card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Card color variants */
.card-terracotta { border-left-color: var(--terracotta); }
.card-mustard { border-left-color: var(--mustard); }
.card-olive { border-left-color: var(--olive); }
.card-sage { border-left-color: var(--sage); }

/* ============================================================
   9. Stat Cards
   ============================================================ */
.stat-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-left: var(--border-thick) solid var(--border-default);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: border-color var(--transition);
}
.stat-card:hover {
    border-left-color: var(--terracotta-light);
}

.stat-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    border: 1.5px solid var(--border-default);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

.stat-card-terracotta .stat-icon { border-color: var(--terracotta); color: var(--terracotta); }
.stat-card-mustard .stat-icon { border-color: var(--mustard); color: var(--mustard); }
.stat-card-olive .stat-icon { border-color: var(--olive); color: var(--olive); }
.stat-card-sage .stat-icon { border-color: var(--sage); color: var(--sage); }

.stat-content {
    flex: 1;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.1;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: var(--text-muted);
    margin: 2px 0 0 0;
}

/* ============================================================
   10. Tables
   ============================================================ */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.table thead tr {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
}

.table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: #1e40af;
    white-space: nowrap;
    border-bottom: 2px solid var(--border-default);
}

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

/* Zebra striping for table rows */
.table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

.table tbody tr:nth-child(odd) td {
    background: var(--bg-surface);
}

.table tbody tr:hover td {
    background: #dbeafe !important;
}

.table tbody tr td {
    transition: background 0.15s ease;
}

/* Highlight hover row with left accent border */
.table tbody tr {
    position: relative;
}
.table tbody tr:hover::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--terracotta);
    pointer-events: none;
}

.table .price-cell {
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.92rem;
}

.table .price-cell-ppn {
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--olive);
    font-size: 0.92rem;
}

.table .action-cell {
    white-space: nowrap;
    width: 1%;
}

/* SKU badge style */
.sku-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-surface);
    padding: 2px 8px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
}

/* Unit badge */
.unit-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    border: 1.5px solid var(--border-subtle);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}
.unit-badge-unit-lt { border-color: var(--terracotta); color: var(--terracotta); }
.unit-badge-unit-kg { border-color: var(--olive); color: var(--olive); }
.unit-badge-unit-pcs { border-color: var(--mustard); color: var(--mustard); }

/* ============================================================
   11. Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-body);
    border: 1.5px solid var(--border-default);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.5;
    background: transparent;
    color: var(--text-secondary);
}
.btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-strong);
}
.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--terracotta);
    color: var(--text-inverse);
    border-color: var(--terracotta);
    font-weight: 700;
}
.btn-primary:hover {
    background: var(--terracotta-dark);
    border-color: var(--terracotta-dark);
    color: var(--text-inverse);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-default);
}
.btn-secondary:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-success {
    background: var(--olive);
    color: var(--text-inverse);
    border-color: var(--olive);
}
.btn-success:hover {
    background: #0d9488;
    border-color: #0d9488;
    color: var(--text-inverse);
}

.btn-danger {
    background: var(--brick);
    color: var(--text-inverse);
    border-color: var(--brick);
}
.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.btn-warning {
    background: var(--warning);
    color: var(--text-inverse);
    border-color: var(--warning);
}
.btn-warning:hover {
    background: #d97706;
    border-color: #d97706;
}

.btn-sm {
    padding: 4px 12px;
    font-size: 0.7rem;
}

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

/* ============================================================
   12. Forms
   ============================================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--form-label);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    border: 1.5px solid var(--form-border);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--form-text);
    transition: border-color var(--transition), box-shadow var(--transition);
    -webkit-appearance: none;
}
.form-control:focus {
    outline: none;
    border-color: var(--terracotta);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.15);
}
.form-control:hover {
    border-color: var(--form-border-hover);
}
.form-control::placeholder {
    color: var(--form-placeholder);
    opacity: 0.7;
}
.form-control.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2364748b' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.form-text {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.field-error {
    font-size: 0.72rem;
    color: var(--danger);
    margin-top: 4px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-secondary);
}
.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--terracotta);
    cursor: pointer;
}

.form-grid .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-actions {
    display: flex;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    margin-top: 16px;
}

/* Filter Form */
.filter-form { width: 100%; }
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}
.filter-group {
    flex: 1;
    min-width: 150px;
}
.filter-group label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--form-label);
    margin-bottom: 4px;
}

.toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.per-page-form {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.per-page-form select {
    padding: 4px 8px;
    background: var(--bg-input);
    border: 1.5px solid var(--form-border);
    border-radius: var(--radius-sm);
    color: var(--form-text);
    font-size: 0.8rem;
    font-family: var(--font-body);
}

/* ============================================================
   13. Badges
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1.5px solid;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.badge-success {
    border-color: var(--olive);
    color: var(--olive);
    background: rgba(20, 184, 166, 0.08);
}
.badge-danger {
    border-color: var(--brick);
    color: var(--brick);
    background: rgba(239, 68, 68, 0.08);
}
.badge-warning {
    border-color: var(--warning);
    color: var(--warning);
    background: rgba(245, 158, 11, 0.08);
}
.badge-info {
    border-color: var(--sage);
    color: var(--sage);
    background: rgba(6, 182, 212, 0.08);
}
.badge-admin {
    border-color: var(--terracotta);
    color: var(--terracotta);
    background: rgba(14, 165, 233, 0.08);
}
.badge-sales {
    border-color: var(--mustard);
    color: var(--mustard);
    background: rgba(139, 92, 246, 0.08);
}
.badge-customer {
    border-color: var(--olive);
    color: var(--olive);
    background: rgba(20, 184, 166, 0.08);
}
.badge-create {
    border-color: var(--olive);
    color: var(--olive);
}
.badge-update {
    border-color: var(--mustard);
    color: var(--mustard);
}
.badge-delete {
    border-color: var(--brick);
    color: var(--brick);
}

/* ============================================================
   14. Alerts
   ============================================================ */
.alert {
    padding: 12px 18px;
    border-left: var(--border-thick) solid var(--border-default);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    position: relative;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.alert-success {
    border-left-color: var(--olive);
    color: var(--olive);
}
.alert-danger {
    border-left-color: var(--brick);
    color: var(--brick);
}
.alert-warning {
    border-left-color: var(--warning);
    color: var(--warning);
}
.alert-info {
    border-left-color: var(--sage);
    color: var(--sage);
}

.alert-dismissible {
    padding-right: 40px;
}

.alert-close {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity var(--transition);
}
.alert-close:hover {
    opacity: 1;
}

/* ============================================================
   15. Activity List
   ============================================================ */
.activity-list {
    padding: 0;
}

.activity-item {
    display: flex;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition);
}
.activity-item:last-child {
    border-bottom: none;
}
.activity-item:hover {
    background: var(--bg-hover);
}

.activity-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1.5px solid var(--border-default);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
}
.activity-icon.create { border-color: var(--olive); color: var(--olive); }
.activity-icon.update { border-color: var(--mustard); color: var(--mustard); }
.activity-icon.delete { border-color: var(--brick); color: var(--brick); }

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-text {
    font-size: 0.85rem;
    margin: 0 0 2px;
    color: var(--text-secondary);
    line-height: 1.4;
}
.activity-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.activity-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 0;
    font-family: var(--font-mono);
}

/* ============================================================
   16. Empty State
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
    opacity: 0.4;
}
.empty-state p {
    font-size: 0.9rem;
}

/* ============================================================
   17. Modal
   ============================================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5000;
}
.modal.open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    line-height: 1;
    transition: color var(--transition);
}
.modal-close:hover {
    color: var(--text-primary);
}

/* ============================================================
   18. Pagination
   ============================================================ */
.pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.page-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-right: 12px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-family: var(--font-mono);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition);
    background: transparent;
    cursor: pointer;
}
.page-link:hover {
    border-color: var(--border-strong);
    color: var(--text-secondary);
    background: var(--bg-hover);
}
.page-link.active {
    background: var(--terracotta);
    color: var(--text-inverse);
    border-color: var(--terracotta);
}
.page-link:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.page-dots {
    padding: 5px 4px;
    color: var(--text-muted);
}

/* ============================================================
   19. Grid System
   ============================================================ */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}
.row > [class*="col-"] {
    padding: 0 12px;
    margin-bottom: 24px;
}

.col-md-3 { flex: 0 0 25%; max-width: 25%; }
.col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-md-8 { flex: 0 0 66.667%; max-width: 66.667%; }
.col-md-12 { flex: 0 0 100%; max-width: 100%; }

/* ============================================================
   20. Footer
   ============================================================ */
.app-footer {
    padding: 16px 28px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface);
}

/* ============================================================
   21. Tabs
   ============================================================ */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-subtle);
    gap: 0;
}
.tab-item {
    margin-bottom: -1px;
}
.tab-item a {
    display: block;
    padding: 10px 20px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    border-bottom: var(--border-thick) solid transparent;
    transition: all var(--transition);
    text-decoration: none;
}
.tab-item.active a,
.tab-item a:hover {
    color: var(--terracotta);
    border-bottom-color: var(--terracotta);
}

/* ============================================================
   22. Detail Grid
   ============================================================ */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.detail-item {
    display: flex;
    flex-direction: column;
}
.detail-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.detail-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}
.detail-notes {
    border-top: 1px solid var(--border-subtle);
    padding-top: 12px;
    margin-top: 12px;
}

/* ============================================================
   23. Customer Portal Header
   ============================================================ */
.customer-portal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.portal-company-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ============================================================
   24. Notification Toast
   ============================================================ */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    font-size: 0.85rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: var(--border-thick) solid;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    max-width: 400px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.notification-success { border-left-color: var(--olive); color: var(--olive); }
.notification-danger { border-left-color: var(--brick); color: var(--brick); }
.notification-warning { border-left-color: var(--warning); color: var(--warning); }
.notification-info { border-left-color: var(--sage); color: var(--sage); }

/* ============================================================
   25. Autocomplete (Searchable Select)
   ============================================================ */
.autocomplete-wrapper {
    position: relative;
    width: 100%;
}
.autocomplete-wrapper .form-control {
    padding-right: 36px;
    cursor: text;
}
.autocomplete-wrapper .autocomplete-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 0.85rem;
    display: none;
    z-index: 2;
    line-height: 1;
}
.autocomplete-wrapper .autocomplete-clear.visible {
    display: block;
}
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    background: var(--bg-elevated);
    border: 1px solid var(--form-border);
    border-radius: var(--radius-sm);
    z-index: 1000;
    display: none;
    margin-top: 2px;
}
.autocomplete-dropdown.open {
    display: block;
}
.autocomplete-dropdown .ac-item {
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.15s;
}
.autocomplete-dropdown .ac-item:last-child {
    border-bottom: none;
}
.autocomplete-dropdown .ac-item:hover,
.autocomplete-dropdown .ac-item.highlighted {
    background: #e2e8f0;
}
.autocomplete-dropdown .ac-item .ac-code {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--form-text);
    background: var(--bg-surface);
    padding: 2px 6px;
    border: 1px solid var(--form-border);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.autocomplete-dropdown .ac-item .ac-label {
    font-size: 0.85rem;
    color: var(--form-text);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.autocomplete-dropdown .ac-item .ac-highlight {
    font-weight: 600;
    color: var(--terracotta);
}
.autocomplete-dropdown .ac-empty {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
}
.autocomplete-dropdown .ac-loading {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
}
.autocomplete-dropdown .ac-loading i {
    animation: spin 0.8s linear infinite;
    margin-right: 6px;
}

/* ============================================================
   26. Info Box
   ============================================================ */
.info-box {
    padding: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* ============================================================
   27. Utility Classes
   ============================================================ */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.p-0 { padding: 0 !important; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }

/* ============================================================
   28. Login Page
   ============================================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 50%, #f0fdfa 100%);
    position: relative;
    overflow: hidden;
}

/* Large decorative background text */
.login-page::before {
    content: 'HARGA';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-8deg);
    font-family: var(--font-display);
    font-size: clamp(20rem, 60vw, 50rem);
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(14, 165, 233, 0.06);
    pointer-events: none;
    z-index: 0;
    letter-spacing: 0.1em;
    line-height: 1;
}

.login-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-top: var(--border-thick) solid var(--terracotta);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: 0 4px 24px rgba(14, 165, 233, 0.08);
}

.login-header {
    margin-bottom: 32px;
}

.login-logo {
    width: 48px;
    height: 48px;
    background: var(--terracotta);
    color: var(--text-inverse);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.login-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin-bottom: 4px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .form-control {
    padding: 12px 14px;
}

.btn-login-submit {
    width: 100%;
    padding: 12px;
    background: var(--terracotta);
    color: var(--text-inverse);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-login-submit:hover {
    background: var(--terracotta-dark);
}

.login-footer {
    margin-top: 28px;
    text-align: center;
}
.login-info {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.login-credits {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ============================================================
   29. Landing Page Specific
   ============================================================ */
.landing-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 70% 20%, rgba(14, 165, 233, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 30% 80%, rgba(139, 92, 246, 0.07) 0%, transparent 50%),
        linear-gradient(160deg, #dbeafe 0%, #f0f9ff 40%, #f0fdfa 100%);
}

.landing-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    /* Bottom accent border */
    border-bottom: 2px solid rgba(14, 165, 233, 0.12);
}

.landing-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 32px;
}

/* Decorative wave separator between hero and product section */
.landing-hero::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 64px;
    background:
        radial-gradient(ellipse 120% 60px at 50% 100%, rgba(255,255,255,0) 0%, var(--bg-deep) 100%),
        linear-gradient(135deg, #dbeafe 0%, #f0f9ff 50%, #f0fdfa 100%);
    z-index: 2;
    pointer-events: none;
}



.landing-hero-text {
    max-width: 700px;
}

.landing-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1.5px solid var(--olive);
    border-radius: var(--radius-sm);
    color: var(--olive);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 24px;
}
.landing-hero-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--olive);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.landing-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}
.landing-hero-title em {
    font-style: italic;
    color: var(--terracotta);
}

.landing-hero-desc {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.6;
    max-width: 520px;
    margin-bottom: 32px;
}

.landing-search {
    position: relative;
    max-width: 540px;
}

.landing-search-input {
    width: 100%;
    padding: 14px 48px 14px 18px;
    background: var(--bg-input);
    border: 1.5px solid var(--form-border);
    border-radius: var(--radius-sm);
    color: var(--form-text);
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: border-color var(--transition);
}
.landing-search-input:focus {
    outline: none;
    border-color: var(--terracotta);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.12);
}
.landing-search-input:hover {
    border-color: var(--form-border-hover);
}
.landing-search-input::placeholder {
    color: var(--form-placeholder);
    opacity: 0.6;
}

.landing-search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 1rem;
}

.landing-search-shortcut {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.6rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    pointer-events: none;
}
@media (min-width: 1024px) {
    .landing-search-shortcut {
        display: inline-flex;
    }
}

/* Landing Navbar (transparent) */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease;
}
.landing-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 32px;
}

.landing-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-primary);
}

.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--text-secondary);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.landing-nav-btn:hover {
    border-color: var(--border-strong);
    color: var(--text-primary);
    background: var(--bg-hover);
}
.landing-nav-btn.primary {
    background: var(--terracotta);
    color: var(--text-inverse);
    border-color: var(--terracotta);
}
.landing-nav-btn.primary:hover {
    background: var(--terracotta-dark);
    border-color: var(--terracotta-dark);
}

/* Landing product section */
.landing-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Card wrapping the product table — seamless with section header */
.landing-section .card {
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    margin-top: -1px;
    box-shadow: 0 2px 12px rgba(14, 165, 233, 0.05);
}
.landing-section .card .table-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
}

.landing-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--bg-surface) 0%, #f8faff 100%);
    border: 1px solid var(--border-default);
    border-left: var(--border-thick) solid var(--terracotta);
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: 0 1px 4px rgba(14, 165, 233, 0.06);
}

.landing-section-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-section-count {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #475569;
    border: 1.5px solid var(--border-strong);
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    background: var(--bg-surface);
}

/* Landing CTA */
.landing-cta {
    margin: 48px 32px;
    padding: 48px;
    background: linear-gradient(135deg, #f0f9ff 0%, var(--bg-surface) 50%, #f0fdfa 100%);
    border: 1px solid var(--border-strong);
    border-left: var(--border-thick) solid var(--terracotta);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 2px 16px rgba(14, 165, 233, 0.06);
    position: relative;
}
.landing-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 50%, rgba(14, 165, 233, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 50%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
    border-radius: inherit;
}
.landing-cta h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 12px;
}
.landing-cta p {
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Landing Footer */
.landing-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    opacity: 0.4;
    animation: bounce-soft 2s ease-in-out infinite;
    cursor: pointer;
    transition: opacity var(--transition);
}
.scroll-indicator:hover {
    opacity: 1;
}
@keyframes bounce-soft {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 50;
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    border: 1.5px solid var(--border-default);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s ease;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    border-color: var(--terracotta);
    color: var(--terracotta);
}

/* Fade section */
.fade-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Search highlight */
.search-highlight {
    background: rgba(14, 165, 233, 0.15);
    padding: 0 2px;
    border-radius: var(--radius-sm);
}

/* ============================================================
   30. Responsive
   ============================================================ */
@media (max-width: 1200px) {
    .col-md-3 { flex: 0 0 50%; max-width: 50%; }
    .col-md-4 { flex: 0 0 50%; max-width: 50%; }
    .col-md-8 { flex: 0 0 100%; max-width: 100%; }
}

@media (max-width: 768px) {
    .top-bar {
        padding: 0 16px;
    }
    .top-bar-brand span {
        font-size: 0.9rem;
    }
    .user-name-display {
        display: none;
    }

    .nav-strip {
        padding: 0 12px;
        gap: 2px;
    }
    .nav-strip-link {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    .nav-strip-link span {
        display: none;
    }

    .content-wrapper {
        padding: 20px 16px;
    }

    .col-md-3,
    .col-md-4,
    .col-md-6,
    .col-md-8,
    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .form-grid .form-row {
        grid-template-columns: 1fr;
    }
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .filter-group {
        min-width: 100%;
    }
    .customer-portal-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-card {
        padding: 28px 24px;
    }
    .login-page::before {
        -webkit-text-stroke: 1px rgba(14, 165, 233, 0.04);
    }

    .stat-card {
        padding: 16px 18px;
    }
    .stat-value {
        font-size: 1.6rem;
    }

    .landing-hero {
        min-height: 60vh;
    }
    .landing-hero-content {
        padding: 20px 16px;
    }
    .landing-section {
        padding: 0 16px;
    }
    .landing-cta {
        margin: 32px 16px;
        padding: 32px 20px;
    }
    .landing-footer {
        padding: 16px;
    }
    .landing-nav {
        padding: 12px 16px;
    }
    .landing-hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }
    .table th, .table td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .top-bar-right .user-name-display {
        display: none;
    }
    .card-body {
        padding: 14px;
    }
    .content-wrapper {
        padding: 16px 12px;
    }
    .landing-hero-title {
        font-size: clamp(1.6rem, 12vw, 2.5rem);
    }
    .landing-hero-desc {
        font-size: 0.9rem;
    }
    .landing-search-shortcut {
        display: none !important;
    }
    .landing-section-count {
        font-size: 0.6rem;
        padding: 1px 8px;
    }
    .landing-section-title {
        font-size: 1.2rem;
    }
    .landing-cta {
        margin: 24px 12px;
        padding: 24px 16px;
    }
    .landing-cta h2 {
        font-size: 1.4rem;
    }
    .table-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
    }

    /* Touch target sizes */
    .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    .btn-sm {
        min-height: 36px;
        padding: 6px 10px;
    }
    .btn-login-submit {
        min-height: 48px;
    }
    .btn-logout {
        min-height: 44px;
        padding: 8px 14px;
    }
    .page-link {
        min-height: 40px;
        min-width: 40px;
        padding: 6px 10px;
    }
    .landing-nav-btn {
        min-height: 40px;
    }
    .nav-strip-link {
        min-height: 40px;
        padding: 8px 10px;
    }

    /* Cards & spacing */
    .card-header {
        padding: 12px 14px;
    }
    .card-title {
        font-size: 0.95rem;
    }
    .stat-card {
        padding: 14px 16px;
        gap: 12px;
    }
    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .stat-value {
        font-size: 1.4rem;
    }
    .stat-label {
        font-size: 0.6rem;
    }

    /* Tables */
    .table th,
    .table td {
        padding: 8px 8px;
        font-size: 0.75rem;
    }
    .table .price-cell,
    .table .price-cell-ppn {
        font-size: 0.8rem;
    }
    .product-table td:first-child {
        padding-left: 8px !important;
    }
    .product-table th:first-child {
        padding-left: 8px !important;
    }
    .product-table td:last-child {
        padding-right: 8px !important;
    }
    .product-table th:last-child {
        padding-right: 8px !important;
    }

    /* Filter form stacks vertically */
    .filter-row {
        flex-direction: column;
    }
    .filter-group {
        min-width: 100%;
    }

    /* Modal mobile */
    .modal-content {
        width: 95%;
        max-height: 85vh;
    }
    .modal-body {
        padding: 14px;
    }
    .modal-header {
        padding: 12px 14px;
    }
    .modal-footer {
        padding: 10px 14px;
    }

    /* Autocomplete dropdown fix on mobile */
    .autocomplete-dropdown {
        max-height: 40vh;
        z-index: 9999;
    }
    .autocomplete-dropdown .ac-item {
        padding: 12px 14px;
    }

    /* Activity list */
    .activity-item {
        padding: 12px 14px;
    }
    .activity-icon {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
    }
    .activity-text {
        font-size: 0.78rem;
    }

    /* Notification toast */
    .notification-toast {
        left: 12px;
        right: 12px;
        top: 12px;
        max-width: none;
        font-size: 0.8rem;
    }

    /* Tabs */
    .tab-item a {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    /* Detail grid */
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .detail-value {
        font-size: 0.82rem;
    }

    /* Login page */
    .login-card {
        padding: 24px 18px;
    }
    .login-title {
        font-size: 1.3rem;
    }

    /* Scroll indicator hide on very small */
    .scroll-indicator {
        display: none;
    }

    /* Landing nav */
    .landing-nav {
        padding: 10px 12px;
    }
    .landing-nav-brand span {
        font-size: 0.85rem;
    }

    /* Customer portal */
    .portal-company-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .portal-company-info h3 {
        font-size: 1.1rem;
    }

    /* Toolbar */
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .toolbar .btn {
        justify-content: center;
    }

    /* Per page form */
    .per-page-form {
        flex-wrap: wrap;
    }

    /* Price list create item rows */
    .item-row {
        flex-direction: column;
        gap: 8px;
    }
    .item-row .price-field {
        width: 100%;
    }
    .item-row .product-field {
        width: 100%;
    }
    .item-row .remove-btn {
        align-self: flex-end;
    }

    /* Info box */
    .info-box {
        padding: 10px;
        font-size: 0.75rem;
    }

    /* Empty state */
    .empty-state {
        padding: 32px 14px;
    }
    .empty-state i {
        font-size: 2rem;
    }

    /* App footer */
    .app-footer {
        padding: 12px 16px;
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
}

@media (max-width: 360px) {
    .content-wrapper {
        padding: 12px 8px;
    }
    .card-body {
        padding: 10px;
    }
    .card-header {
        padding: 10px 10px;
    }
    .table th,
    .table td {
        padding: 5px 4px;
        font-size: 0.68rem;
    }
    .table .price-cell,
    .table .price-cell-ppn {
        font-size: 0.72rem;
    }
    .landing-hero-title {
        font-size: clamp(1.3rem, 10vw, 1.8rem);
    }
    .landing-hero-content {
        padding: 16px 12px;
    }
    .landing-section {
        padding: 0 8px;
    }
    .login-card {
        padding: 18px 14px;
    }
    .login-title {
        font-size: 1.1rem;
    }
    .modal-content {
        width: 98%;
    }
    .modal-body {
        padding: 12px;
    }
    .stat-card {
        padding: 10px 12px;
    }
    .stat-icon {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
    .stat-value {
        font-size: 1.2rem;
    }
    .autocomplete-wrapper {
        position: relative;
    }
    .top-bar {
        padding: 0 10px;
    }
    .nav-strip {
        padding: 0 6px;
        gap: 1px;
    }
    .nav-strip-link {
        padding: 6px 6px;
        font-size: 0.65rem;
    }
    .page-link {
        min-height: 34px;
        min-width: 34px;
        padding: 4px 6px;
        font-size: 0.7rem;
    }
}

/* ============================================================
   31. Mobile Hamburger Nav for App Header
   ============================================================ */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-secondary);
    font-size: 1.2rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
    line-height: 1;
}
.hamburger-btn:hover {
    background: var(--bg-hover);
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-surface);
    z-index: 998;
    padding: 16px;
    overflow-y: auto;
    display: none;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid var(--border-subtle);
}
.mobile-nav-drawer.open {
    display: flex;
}
.mobile-nav-drawer .nav-strip-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    font-size: 0.95rem;
    white-space: normal;
    border: none;
    border-radius: var(--radius);
    width: 100%;
    text-align: left;
}
.mobile-nav-drawer .nav-strip-link i {
    font-size: 1.1rem;
    opacity: 1;
    width: 24px;
    text-align: center;
}
.mobile-nav-drawer .nav-strip-link span {
    display: inline !important;
}
.mobile-nav-drawer .nav-strip-link.active {
    background: rgba(14, 165, 233, 0.08);
}

/* Body no scroll when drawer open */
body.drawer-open {
    overflow: hidden;
}

@media (min-width: 769px) {
    .mobile-nav-drawer {
        display: none !important;
    }
}
