/* ============================================================
 * QuarryFlow Pro — Neumorphic UI Design (All Modules Consistent)
 * Layout: fixed left sidebar + sticky topbar + scrolling content.
 * Color Scheme: 60% Neumorphic White/Soft Gray (#ebf0f6), 30% Dark Slate (#0f172a), 10% Blue Accent (#0066ff / #3b82f6).
 * ============================================================ */

:root {
    --sidebar: 260px;
    --top-h: 60px;
    --primary: #0f172a; /* Deep Slate (30%) */
    --accent: #004c66; /* Dark Blue */
    --accent-light: #006699; /* Light Blue */
    --side-active: linear-gradient(135deg, #004c66 0%, #006699 100%); /* 10% Blue Gradient */
    --bg: #ebf0f6; /* Neumorphic base (60% Soft Gray/Off-White) */
    --card: #ebf0f6;
    --dark-ticket: #15181e;
    
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    
    /* Authentic Neumorphic Dual Shadows */
    --nm-out: 8px 8px 18px #cbd5e1, -8px -8px 18px #ffffff;
    --nm-in: inset 4px 4px 8px #cbd5e1, inset -4px -4px 8px #ffffff;
    --nm-btn-out: 4px 4px 8px #cbd5e1, -4px -4px 8px #ffffff;
    --nm-btn-in: inset 2px 2px 5px #cbd5e1, inset -2px -2px 5px #ffffff;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 50px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--primary);
    font-size: 13px;
    line-height: 1.45;
    overflow-x: hidden;
}

/* App Wrapper */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100vw;
    position: relative;
    background-color: var(--bg);
}

/* ── Desktop Sidebar ── */
.sidebar {
    width: var(--sidebar);
    height: 100vh;
    position: sticky;
    top: 0;
    align-self: flex-start;
    background: rgba(235, 240, 246, 0.70) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.04);
    color: var(--primary);
    display: flex;
    flex-direction: column;
    padding: 1.25rem 0.9rem;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 1rem;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: var(--side-active);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(0, 76, 102, 0.3);
}

.brand-name {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: var(--primary);
}

.brand-subtitle {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.sidebar-collapse-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--bg);
    box-shadow: var(--nm-btn-out);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-collapse-btn:hover {
    box-shadow: var(--nm-btn-in);
    color: var(--accent);
}

/* Role Switcher */
.role-switcher-container {
    background: var(--bg);
    box-shadow: var(--nm-in);
    border-radius: 12px;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.role-switcher-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
}

.role-btn {
    background: var(--bg);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    border: none;
    box-shadow: var(--nm-btn-out);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.role-btn.active {
    background: var(--side-active);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(0, 76, 102, 0.3);
}

.role-btn:hover:not(.active) {
    box-shadow: var(--nm-btn-in);
    color: var(--primary);
}

/* Section Header Titles */
.sidebar-section-title {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin: 1rem 0 0.4rem 0.5rem;
    text-transform: uppercase;
}

.sidebar-menu-wrapper {
    flex: 1;
    overflow-y: auto;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.menu-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin: 2px 4px;
}

.menu-item a:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--primary);
}

.menu-item.active a {
    background: var(--side-active);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 76, 102, 0.25);
}

.menu-item i, .menu-item svg {
    width: 17px;
    height: 17px;
    stroke-width: 2.2;
}

.btn-new-slip {
    margin-top: 0.4rem;
    margin-bottom: 1rem;
    background: var(--side-active);
    color: white;
    border: none;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 76, 102, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-new-slip:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 76, 102, 0.4);
    color: white;
}

.sidebar-footer {
    padding-top: 0.8rem;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    margin-top: auto;
}

/* Main Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: var(--bg);
}

/* ── Sticky Frosted Glass Top Header ── */
.top-header {
    height: var(--top-h);
    padding: 0 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(235, 240, 246, 0.65) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.search-box-neu {
    display: flex;
    align-items: center;
    background: var(--bg);
    box-shadow: var(--nm-in);
    padding: 0.45rem 1rem;
    border-radius: 12px;
    width: 280px;
    gap: 0.5rem;
}

.search-box-neu input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.8rem;
    width: 100%;
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-check-credit {
    background: var(--bg);
    box-shadow: var(--nm-btn-out);
    color: var(--accent-light);
    padding: 0.45rem 0.95rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-check-credit:hover {
    box-shadow: var(--nm-btn-in);
}

.icon-btn-neu {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--bg);
    box-shadow: var(--nm-btn-out);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.icon-btn-neu:hover {
    box-shadow: var(--nm-btn-in);
    color: var(--accent);
}

.user-profile-pill {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.75rem 0.3rem 0.35rem;
    background: var(--bg);
    box-shadow: var(--nm-btn-out);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-profile-pill:hover {
    box-shadow: var(--nm-btn-in);
}

.avatar-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #004c66;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
}

/* Content Body */
.content-body {
    padding: 1.75rem;
    flex: 1;
    overflow-y: auto;
    background-color: var(--bg);
}

/* Neumorphic Cards */
.neu-card, .panel, .stat-card {
    background: var(--card);
    border-radius: 22px;
    box-shadow: var(--nm-out);
    padding: 1.45rem 1.6rem;
    margin-bottom: 1.35rem;
    border: none;
}

.neu-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.neu-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

/* ── Settings Hub (Lender Layout Reference) ── */
.settings-hub-card {
    background: var(--card);
    border-radius: 20px;
    box-shadow: var(--nm-out);
    margin-bottom: 1.25rem;
    overflow: hidden;
    border: none;
}

.settings-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.4rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.settings-item-row:last-child {
    border-bottom: none;
}

.settings-item-row:hover {
    background: rgba(0, 76, 102, 0.04);
    color: inherit;
}

.settings-icon-pill {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--bg);
    box-shadow: var(--nm-btn-out);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Neumorphic Modals (#ebf0f6 Base & Proportional Spacing) ── */
.modal-neu-content {
    background-color: #ebf0f6 !important;
    border-radius: 24px !important;
    box-shadow: 12px 12px 30px #cbd5e1, -12px -12px 30px #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    overflow: hidden;
}

.modal-neu-header {
    background-color: #ebf0f6;
    padding: 1.35rem 1.6rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.modal-neu-header h5 {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.modal-neu-content .modal-body {
    background-color: #ebf0f6;
    padding: 1.6rem;
}

.modal-neu-content .modal-footer {
    background-color: #ebf0f6;
    padding: 1rem 1.6rem 1.4rem;
    border-top: none;
    gap: 0.75rem;
}

.modal-neu-header .btn-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ebf0f6;
    box-shadow: var(--nm-btn-out);
    opacity: 0.85;
    padding: 0.5rem;
    transition: all 0.2s ease;
}

.modal-neu-header .btn-close:hover {
    box-shadow: var(--nm-btn-in);
    opacity: 1;
}

.modal-backdrop.show {
    opacity: 0.25;
}

/* ── Physical Delivery Receipt (DR) Stub Layout (Matching Photo) ── */
.dr-paper-stub {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 1.75rem 1.5rem;
    color: #1e293b;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    border: 1px solid #cbd5e1;
    position: relative;
    overflow: hidden;
}

.dr-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #0f172a;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.dr-header-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.8rem;
}

.dr-line-field {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    border-bottom: 1px solid #000000;
    padding-bottom: 2px;
}

.dr-field-label {
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.dr-field-value {
    font-weight: 700;
    color: #004c66;
    flex: 1;
    font-size: 0.85rem;
}

.dr-no-red {
    color: #dc2626;
    font-weight: 900;
    font-size: 1.1rem;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.dr-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    border: 1.5px solid #000000;
}

.dr-table th {
    border: 1.5px solid #000000;
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 900;
    text-align: center;
    background: #f8fafc;
    color: #0f172a;
    text-transform: uppercase;
}

.dr-table td {
    border: 1.5px solid #000000;
    padding: 0.55rem 0.6rem;
    font-size: 0.8rem;
    vertical-align: middle;
    color: #0f172a;
}

.dr-signatures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.dr-signature-block {
    display: flex;
    flex-direction: column;
}

.dr-signature-line {
    border-bottom: 1.5px solid #000000;
    min-height: 40px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2px;
}

.dr-signature-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    text-align: center;
    margin-top: 0.25rem;
}

/* Decorative Geometric Blue & Gold Triangular Pattern Footer */
.dr-footer-pattern {
    height: 24px;
    background: linear-gradient(135deg, #004c66 25%, transparent 25%) -12px 0,
                linear-gradient(225deg, #004c66 25%, transparent 25%) -12px 0,
                linear-gradient(315deg, #d97706 25%, transparent 25%),
                linear-gradient(45deg, #d97706 25%, transparent 25%);
    background-size: 24px 24px;
    background-color: #006699;
    margin: 1.25rem -1.5rem -1.75rem -1.5rem;
}

/* ── Withdrawal Slip Ticket Stub Styling ── */
.ticket-stub {
    background: #ebf0f6;
    border-radius: 22px;
    box-shadow: var(--nm-out);
    padding: 1.5rem;
    color: #0f172a;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
}

.ticket-brand {
    font-size: 0.85rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.5px;
}

.ticket-no {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 800;
    font-size: 0.8rem;
    color: #004c66;
}

.ticket-row {
    margin-bottom: 0.65rem;
}

.ticket-label {
    font-size: 0.68rem;
    font-weight: 800;
    color: #475569 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticket-value {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a !important;
}

.ticket-value.text-primary, #ticket_volume_display {
    color: #0066ff !important; /* Retained Cubic Meter volume to Blue */
}

.ticket-highlight {
    background: #ffffff;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    margin: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: inset 2px 2px 5px #cbd5e1, inset -2px -2px 5px #ffffff;
}

.btn-draft-outline {
    background: #ffffff;
    border: 1.5px solid #0066ff;
    color: #0066ff !important;
    font-weight: 800;
    font-size: 0.78rem;
    border-radius: 50px;
    padding: 0.55rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-draft-outline:hover {
    background: #0066ff;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

/* Embedded Paper Table Container */
.table-paper-container {
    background: transparent !important;
    border-radius: 14px;
    overflow: hidden;
    border: none;
}

.table-paper {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table-paper th {
    background: transparent !important;
    font-size: 0.72rem;
    font-weight: 800;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.9rem 1.25rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.table-paper td {
    background: transparent !important;
    padding: 0.85rem 1.25rem;
    font-size: 0.82rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: #0f172a;
}

.table-paper tr:last-child td {
    border-bottom: none;
}

/* Code Pills (MAT-RS, MAT-C38, etc) */
.code-pill {
    background: #1e293b;
    color: #ffffff;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 6px;
    padding: 0.22rem 0.6rem;
    display: inline-block;
    letter-spacing: 0.5px;
}

/* Category Pill (Sand, Gravel, Subbase, Fill) */
.category-pill {
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.73rem;
    font-weight: 600;
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    display: inline-block;
}

/* Rate Text (₱900.00 / CU.M) */
.rate-price-text {
    color: #0066ff;
    font-size: 0.92rem;
    font-weight: 800;
}

.rate-unit-text {
    color: #000000;
    font-weight: 800;
    font-size: 0.82rem;
}

/* Action Outline Pill Button */
.btn-pill-outline {
    background: #ebf0f6;
    box-shadow: var(--nm-btn-out);
    border: 1.5px solid #3b82f6;
    color: #0066ff;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.35rem 1.1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.btn-pill-outline:hover {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Solid Blue Pill Badge */
.badge-pill-blue {
    background: #0066ff;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.3rem 0.85rem;
}

/* Metric Cards Grid */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.1rem;
    margin-bottom: 1.1rem;
}

.metric-card {
    background: var(--card);
    box-shadow: var(--nm-out);
    border-radius: 20px;
    padding: 1.25rem;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
}

.metric-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: var(--nm-btn-in);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.metric-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.4px;
}

/* Inset Neumorphic Forms */
.form-group-neu {
    margin-bottom: 1rem;
}

.form-group-neu label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control-neu {
    width: 100%;
    padding: 0.6rem 0.95rem;
    background: var(--bg);
    box-shadow: var(--nm-in);
    border: none;
    border-radius: 10px;
    outline: none;
    font-size: 0.82rem;
    color: var(--primary);
    transition: all 0.2s ease;
}

.form-control-neu:focus {
    box-shadow: inset 1px 1px 3px #cbd5e1, inset -1px -1px 3px #ffffff, 0 0 0 2px var(--accent-light);
}

select.form-control-neu {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23004c66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 0.85rem;
    padding-right: 2.1rem;
}

/* Material Selection Cards */
.material-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}

.material-card {
    background: var(--card);
    box-shadow: var(--nm-out);
    border-radius: 16px;
    padding: 0.95rem;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.material-card:hover {
    box-shadow: var(--nm-in);
}

.material-card.active {
    box-shadow: var(--nm-in);
    border-color: var(--accent);
}

.material-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg);
    box-shadow: var(--nm-btn-out);
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.material-card.active .material-card-icon {
    background: var(--side-active);
    color: #fff;
    box-shadow: 0 3px 8px rgba(0,76,102,0.3);
}

/* Neumorphic Buttons */
.btn-neu {
    background: var(--card);
    color: var(--primary);
    box-shadow: var(--nm-btn-out);
    border: none;
    padding: 0.55rem 1.1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.15s ease;
    text-decoration: none;
}

.btn-neu:hover {
    box-shadow: var(--nm-btn-in);
    color: var(--accent);
}

.btn-neu-primary {
    background: var(--side-active);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 76, 102, 0.25);
    padding: 0.55rem 1.1rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn-neu-primary:hover {
    background: linear-gradient(135deg, #00364d 0%, #004c66 100%);
    box-shadow: 0 2px 5px rgba(0, 76, 102, 0.2);
    color: white;
}

/* Mobile Sidebar Backdrop Overlay (Completely Transparent - Zero Color Change) */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 999;
    opacity: 0;
    transition: none;
}

.sidebar-backdrop.show {
    display: block;
    opacity: 1;
}

/* ── Mobile & Tablet Viewports (< 992px) ── */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -270px;
        height: 100vh;
        width: 255px;
        background: rgba(235, 240, 246, 0.10) !important; /* 10% Opacity Frosted Effect on Mobile */
        backdrop-filter: blur(20px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
        border-right: 1px solid rgba(255, 255, 255, 0.5) !important;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15) !important;
        z-index: 1000;
    }

    .sidebar.show {
        left: 0;
    }

    .main-content {
        width: 100%;
        min-width: 100%;
    }

    .top-header {
        padding: 0 1rem;
        height: 60px;
    }

    .content-body {
        padding: 1rem;
    }
}
