/* FLOWTRACK Design System - Inspired by Google Workspace & Material 3 */

:root {
    --primary: #1a73e8;
    --primary-hover: #1557b0;
    --primary-light: #e8f0fe;
    --primary-container: #d2e3fc;
    --on-primary: #ffffff;

    --surface: #ffffff;
    --surface-variant: #f1f3f4;
    --background: #f8f9fa;
    --outline: #dadce0;
    --outline-variant: #e8eaed;

    --text-main: #202124;
    --text-muted: #5f6368;
    --text-disabled: #80868b;

    --success: #137333;
    --success-bg: #e6f4ea;
    --warning: #b06000;
    --warning-bg: #fef7e0;
    --danger: #c5221f;
    --danger-bg: #fce8e6;
    --info: #1a73e8;
    --info-bg: #e8f0fe;
    --neutral-bg: #f1f3f4;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    --shadow-md: 0 1px 3px 0 rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
    --shadow-lg: 0 2px 6px 2px rgba(60, 64, 67, 0.15), 0 8px 24px 4px rgba(60, 64, 67, 0.15);

    --font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Sidebar Desktop */
.sidebar {
    width: 260px;
    background-color: var(--surface);
    border-right: 1px solid var(--outline-variant);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 100;
}

.brand-section {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--outline-variant);
}

.brand-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    box-shadow: 0 2px 4px rgba(26, 115, 232, 0.4);
}

.brand-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

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

.nav-menu {
    padding: 12px 10px;
    list-style: none;
    flex: 1;
    overflow-y: auto;
}

.nav-heading {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    padding: 16px 14px 6px;
    display: flex;
    align-items: center;
    user-select: none;
}

.nav-heading:first-child {
    padding-top: 4px;
}

.nav-divider {
    height: 1px;
    background-color: var(--outline-variant);
    margin: 10px 10px;
}

.nav-item {
    margin-bottom: 3px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    border-radius: var(--radius-full);
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
    background-color: var(--surface-variant);
}

.nav-link.active {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.nav-link .material-symbols-rounded {
    font-size: 22px;
}

.nav-badge {
    margin-left: auto;
    background-color: var(--primary);
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* User Switcher Widget (For quick role simulation) */
.user-persona-box {
    margin: 12px;
    padding: 12px;
    background: var(--surface-variant);
    border-radius: var(--radius-md);
    font-size: 12px;
}

.persona-label {
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.persona-select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--outline);
    border-radius: var(--radius-sm);
    background: white;
    font-family: inherit;
    font-size: 12px;
    color: var(--text-main);
    cursor: pointer;
}

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

.top-navbar {
    background-color: var(--surface);
    height: 64px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--outline-variant);
    position: sticky;
    top: 0;
    z-index: 90;
}

.page-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.content-body {
    padding: 24px 28px;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

/* KPI Cards Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-card {
    background: var(--surface);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kpi-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.kpi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.kpi-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.kpi-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
}

.kpi-footer {
    font-size: 12px;
    color: var(--text-muted);
}

/* Card Styles */
.card {
    background: var(--surface);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    margin-bottom: 24px;
    overflow: hidden;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--outline-variant);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 20px;
}

/* MY ATTENTION SECTION (Key Highlight from Spec) */
.attention-section {
    margin-bottom: 24px;
}

.attention-banner {
    background: linear-gradient(135deg, #1a73e8, #1557b0);
    color: white;
    padding: 16px 20px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.attention-list {
    background: white;
    border: 1px solid var(--outline-variant);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.attention-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--outline-variant);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: background 0.15s ease;
}

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

.attention-item:hover {
    background-color: #f8fbff;
}

.attention-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-badge .material-symbols-rounded {
    font-size: 14px;
}

.badge-completed { background: var(--success-bg); color: var(--success); }
.badge-inprogress { background: var(--info-bg); color: var(--info); }
.badge-waiting { background: var(--warning-bg); color: var(--warning); }
.badge-revision { background: #feefe3; color: #d9381e; }
.badge-overdue { background: var(--danger-bg); color: var(--danger); font-weight: 700; }
.badge-notstarted { background: var(--neutral-bg); color: var(--text-muted); }
.badge-cancelled { background: #3c4043; color: white; }

/* Priority Badges */
.priority-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.priority-urgent { background: var(--danger-bg); color: var(--danger); border: 1px solid #f28b82; }
.priority-high { background: #feefe3; color: #e37400; }
.priority-medium { background: var(--info-bg); color: var(--info); }
.priority-low { background: var(--neutral-bg); color: var(--text-muted); }

/* Current Holder Pill */
.current-holder-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef3fc;
    border: 1px solid #cce0ff;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    color: #174ea6;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Dashboard Split Grid (Dominant Recent Process vs Compact Recurring Reminders) */
.dashboard-split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 1080px) {
    .dashboard-split-grid {
        grid-template-columns: 1fr !important;
    }
}

.waiting-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f1f3f4;
    color: var(--text-muted);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.data-table th {
    background-color: var(--surface-variant);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--outline);
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--outline-variant);
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background-color: #f8fbff;
}

/* Buttons & Inputs */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    min-height: 40px;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-delete-tpl {
    background: transparent;
    border: none;
    padding: 4px;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.btn-delete-tpl:hover {
    background: #fce8e6 !important;
    color: var(--danger) !important;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 1px 3px rgba(26, 115, 232, 0.4);
}

.btn-secondary {
    background-color: var(--surface);
    color: var(--text-main);
    border-color: var(--outline);
}

.btn-secondary:hover {
    background-color: var(--surface-variant);
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-warning {
    background-color: #ea8600;
    color: white;
}

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

/* Form Controls */
.form-group {
    margin-bottom: 18px;
}

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

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--outline);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    color: var(--text-main);
    background-color: white;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Stepper Component for Request Detail */
.workflow-stepper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    padding-left: 28px;
}

.workflow-stepper::before {
    content: '';
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 11px;
    width: 2px;
    background: var(--outline);
    z-index: 1;
}

.step-item {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 14px 18px;
    background: white;
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    z-index: 2;
}

.step-node {
    position: absolute;
    left: -29px;
    top: 18px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--outline);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}

.step-item.step-completed .step-node {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.step-item.step-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
    background: #f8fbff;
}

.step-item.step-active .step-node {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.5); }
    70% { box-shadow: 0 0 0 6px rgba(26, 115, 232, 0); }
    100% { box-shadow: 0 0 0 0 rgba(26, 115, 232, 0); }
}

.step-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.step-title {
    font-size: 15px;
    font-weight: 600;
}

.step-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Tabs */
.tabs-nav {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--outline-variant);
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-full);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.tab-btn:hover {
    background: var(--surface-variant);
    color: var(--text-main);
}

.tab-btn.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

/* Mobile Bottom Navigation (Visible ONLY on mobile <= 900px) */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: var(--surface);
    border-top: 1px solid var(--outline-variant);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding: 4px 8px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    gap: 3px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    flex: 1;
    min-height: 48px;
}

.mobile-nav-item .material-symbols-rounded {
    font-size: 22px;
}

.mobile-nav-item.active {
    color: var(--primary);
    font-weight: 700;
}

/* Sidebar Backdrop Overlay for Mobile */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    backdrop-filter: blur(2px);
    transition: opacity 0.2s ease;
}
.sidebar-backdrop.active {
    display: block;
}

.btn-sidebar-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--text-main);
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
}
.btn-sidebar-toggle:hover {
    background: var(--surface-variant);
}

.btn-sidebar-close {
    display: none;
}

/* Tablet & Mobile Layout (<= 900px) */
@media (max-width: 900px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -290px;
        bottom: 0;
        width: 280px;
        z-index: 10000;
        background: var(--surface);
        box-shadow: var(--shadow-lg);
        transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex !important;
        flex-direction: column;
    }
    .sidebar.open {
        left: 0;
    }
    .btn-sidebar-toggle {
        display: inline-flex !important;
    }
    .btn-sidebar-close {
        display: inline-flex !important;
    }
    .mobile-bottom-nav {
        display: flex;
    }
    .main-wrapper {
        padding-bottom: 74px; /* Space for bottom nav */
    }
    .content-body {
        padding: 16px 14px;
    }
    .top-navbar {
        padding: 0 14px;
        height: 60px;
    }
    .top-navbar .page-title {
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 160px;
    }
}

/* Compact Mobile Screens (<= 640px) */
@media (max-width: 640px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .kpi-card {
        padding: 12px 14px !important;
    }
    .kpi-value {
        font-size: 20px !important;
    }
    .kpi-footer {
        font-size: 11px !important;
    }
    .user-profile-text {
        display: none !important;
    }
    .btn-top-request .btn-text {
        display: none;
    }
    .btn-top-request {
        padding: 6px 8px !important;
        margin-left: 4px !important;
    }
    .top-navbar .page-title {
        max-width: 120px;
        font-size: 15px;
    }
    .card-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
    }
    .card-header .card-title {
        font-size: 15px;
    }
    /* Auto-collapse multi-column form grids to 1 column on mobile */
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns: 2fr 1fr"],
    [style*="grid-template-columns: 1fr 2fr"],
    .grid-2col {
        grid-template-columns: 1fr !important;
    }
    .modal-card {
        width: 95% !important;
        margin: 10px auto;
        max-height: 90vh !important;
    }
    .modal-header, .modal-footer {
        padding: 12px 16px !important;
    }
    .modal-body {
        padding: 16px !important;
    }
    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }
}

/* Very Small Mobile Screens (<= 380px) */
@media (max-width: 380px) {
    .kpi-grid {
        grid-template-columns: 1fr !important;
    }
    .mobile-bottom-nav {
        padding: 2px 4px;
    }
    .mobile-nav-item {
        font-size: 10px;
        padding: 4px 6px;
    }
    .mobile-nav-item .material-symbols-rounded {
        font-size: 20px;
    }
}

/* ==========================================================================
   FLOATING NOTIFICATIONS (TOASTS) - POJOK KANAN BAWAH
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
    width: calc(100% - 48px);
    pointer-events: none;
}

.toast-item {
    pointer-events: auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--outline-variant);
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    overflow: hidden;
    animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-item.toast-hiding {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    pointer-events: none;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.toast-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon .material-symbols-rounded {
    font-size: 20px;
}

.toast-success {
    border-left: 4px solid #137333;
}
.toast-success .toast-icon {
    background: #e6f4ea;
    color: #137333;
}
.toast-success .toast-title {
    color: #137333;
}

.toast-error, .toast-danger {
    border-left: 4px solid #d93025;
}
.toast-error .toast-icon, .toast-danger .toast-icon {
    background: #fce8e6;
    color: #d93025;
}
.toast-error .toast-title, .toast-danger .toast-title {
    color: #d93025;
}

.toast-info {
    border-left: 4px solid #1a73e8;
}
.toast-info .toast-icon {
    background: #e8f0fe;
    color: #1a73e8;
}
.toast-info .toast-title {
    color: #1a73e8;
}

.toast-warning {
    border-left: 4px solid #b06000;
}
.toast-warning .toast-icon {
    background: #fef7e0;
    color: #b06000;
}
.toast-warning .toast-title {
    color: #b06000;
}

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

.toast-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1.3;
}

.toast-message {
    font-size: 12.5px;
    color: var(--text-main);
    line-height: 1.45;
    word-break: break-word;
}

.toast-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.toast-close-btn:hover {
    background: var(--surface-variant);
    color: var(--text-main);
}

.toast-close-btn .material-symbols-rounded {
    font-size: 18px;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(0, 0, 0, 0.05);
}

.toast-progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left;
    animation: toastProgressAnim 4.5s linear forwards;
}

.toast-success .toast-progress-bar { background: #137333; }
.toast-error .toast-progress-bar, .toast-danger .toast-progress-bar { background: #d93025; }
.toast-info .toast-progress-bar { background: #1a73e8; }
.toast-warning .toast-progress-bar { background: #b06000; }

@keyframes toastProgressAnim {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@media (max-width: 900px) {
    .toast-container {
        bottom: 84px; /* Above mobile bottom bar */
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
    }
}
