﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/* =============================
   Global Styles
============================= */

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #1f2937;
}

/* Remove blue outline jumpiness */
*:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* =============================
   Login Layout
============================= */

.login-wrapper {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 45px 40px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    animation: fadeIn 0.4s ease-in-out;
}

.forgot-link {
    font-size: 13px;
    color: #60a5fa;
    text-decoration: none;
}

    .forgot-link:hover {
        color: white;
    }

/* =============================
   Header
============================= */

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

    .login-header h2 {
        margin: 0;
        font-weight: 600;
        font-size: 28px;
        color: #1b6ec2;
    }

    .login-header p {
        margin-top: 6px;
        font-size: 14px;
        color: #6b7280;
    }

/* =============================
   Form
============================= */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-control {
    padding: 14px 16px;
    font-size: 15px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    transition: all 0.2s ease;
}

    .form-control:focus {
        border-color: #1b6ec2;
        box-shadow: 0 0 0 3px rgba(27, 110, 194, 0.15);
    }

/* =============================
   Button
============================= */

.btn-login {
    margin-top: 5px;
    padding: 14px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: white;
    background: linear-gradient(135deg, #1b6ec2, #258cfb);
    transition: all 0.25s ease;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(37, 140, 251, 0.35);
    }


button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

    button:disabled::after {
        content: " ⏳";
    }




/* =============================
   Reset Password Improvements
============================= */

.reset-card {
    background: rgba(255, 255, 255, 0.98);
}

    .reset-card h2 {
        color: #1b6ec2;
    }

    .reset-card p {
        color: #6b7280;
        font-size: 14px;
        margin-top: 6px;
    }

.input-group-custom {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .input-group-custom label {
        font-size: 12px;
        font-weight: 600;
        color: #374151;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

.validation-summary {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    color: #b91c1c;
}

    .validation-summary ul {
        margin: 0;
        padding-left: 18px;
    }

    .validation-summary li {
        margin-bottom: 4px;
    }







/* =============================
   Onboarding Layout
============================= */

.onboarding-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

/* =============================
   Onboarding Card
============================= */

.onboarding-card {
    width: 100%;
    max-width: 650px;
    padding: 45px 50px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: fadeIn 0.4s ease-in-out;
    position: relative;
}

/* =============================
   Onboarding Header
============================= */

.onboarding-header {
    text-align: center;
    margin-bottom: 35px;
}

    .onboarding-header h2 {
        margin: 0;
        font-weight: 600;
        font-size: 28px;
        color: #1b6ec2;
    }

    .onboarding-header p {
        margin-top: 8px;
        font-size: 14px;
        color: #6b7280;
    }

/* =============================
   Onboarding Form
============================= */

.onboarding-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.onboarding-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.onboarding-label {
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

.onboarding-help {
    font-size: 12px;
    color: #6b7280;
}


/* =============================
   Onboarding Template Download
============================= */

.btn-template-download {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    background: rgba(27, 110, 194, 0.1);
    color: #1b6ec2;
    border: 1px solid rgba(27, 110, 194, 0.25);
    transition: all 0.2s ease;
}

    .btn-template-download:hover {
        background: rgba(27, 110, 194, 0.2);
        transform: translateY(-1px);
    }

/* =============================
   File Upload
============================= */

.onboarding-file-input {
    padding: 10px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    transition: all 0.2s ease;
}

    .onboarding-file-input:hover {
        border-color: #1b6ec2;
        background: #eef6ff;
    }

/* =============================
   Onboarding Button
============================= */

.btn-onboarding {
    margin-top: 10px;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: white;
    background: linear-gradient(135deg, #1b6ec2, #258cfb);
    transition: all 0.25s ease;
}

    .btn-onboarding:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(37, 140, 251, 0.35);
    }

    .btn-onboarding:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }


.step-section {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.step-badge {
    background: linear-gradient(135deg, #1b6ec2, #258cfb);
    color: white;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 20px;
    min-width: 60px;
    text-align: center;
}

.step-content {
    flex: 1;
}

.template-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
}



/* =============================
   Import Loading Overlay
============================= */

.import-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    border-radius: 18px;
}

.import-loader-card {
    text-align: center;
    padding: 30px 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #258cfb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 18px auto;
}

.import-text {
    font-weight: 600;
    font-size: 16px;
    color: #1b6ec2;
    margin-bottom: 6px;
}

.import-subtext {
    font-size: 13px;
    color: #6b7280;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}



/* =============================
   Onboarding Error Card
============================= */

.onboarding-error-card {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-left: 6px solid #dc2626;
    padding: 18px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    animation: fadeIn 0.2s ease-in-out;
}

.error-header {
    font-weight: 700;
    font-size: 15px;
    color: #b91c1c;
    margin-bottom: 6px;
}

.error-summary {
    font-size: 13px;
    color: #7f1d1d;
    margin-bottom: 10px;
}

.error-list {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: #7f1d1d;
    max-height: 160px;
    overflow-y: auto;
}

    .error-list li {
        margin-bottom: 4px;
    }

.error-more {
    margin-top: 8px;
    font-size: 12px;
    color: #991b1b;
    font-style: italic;
}

/* =============================
   Loading State
============================= */

.onboarding-loading {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}





/* =============================
   Dashboard
============================= */

.dashboard-container {
    padding: 40px;
}

/* KPI Row */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* KPI Cards */
.kpi-card {
    background: linear-gradient(145deg, #1b2430, #141c27);
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

    .kpi-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    }

    .kpi-card h4 {
        font-size: 13px;
        font-weight: 500;
        opacity: 0.7;
        margin-bottom: 10px;
        letter-spacing: 0.4px;
    }

    .kpi-card p {
        font-size: 30px;
        font-weight: 700;
        margin: 0;
        color: #ffffff;
    }

    /* Highlight card (Monthly Burn) */
    .kpi-card.highlight {
        border: 1px solid rgba(37, 140, 251, 0.4);
    }

        .kpi-card.highlight::after {
            content: "";
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at top right, rgba(37,140,251,0.15), transparent 60%);
            pointer-events: none;
        }

    /* Danger card */
    .kpi-card.danger {
        border: 1px solid rgba(255, 77, 79, 0.4);
    }

        .kpi-card.danger::after {
            content: "";
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at top right, rgba(255,77,79,0.15), transparent 60%);
            pointer-events: none;
        }

/* Section Title */
.table-section h4 {
    margin-bottom: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Custom Data Table */
.table-section table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(145deg, #1b2430, #141c27);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.table-section thead {
    background: #1f2937;
}

.table-section th {
    text-align: left;
    padding: 16px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.table-section td {
    padding: 16px 20px;
    font-size: 14px;
    color: #e5e7eb;
}

.table-section tbody tr {
    border-top: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s ease;
}

    .table-section tbody tr:hover {
        background: rgba(255,255,255,0.04);
    }

/* Make high days visually obvious */
.table-section td:nth-child(3) {
    font-weight: 600;
}

    .table-section td:nth-child(3):after {
        content: " days";
        font-weight: 400;
        opacity: 0.6;
        font-size: 12px;
        margin-left: 4px;
    }

/* Age Color Indicators */
.table-section td.age-green {
    color: #22c55e;
    font-weight: 700;
}

.table-section td.age-yellow {
    color: #facc15;
    font-weight: 700;
}

.table-section td.age-red {
    color: #ef4444;
    font-weight: 700;
}

/* =============================
   Age Breakdown Section
============================= */

.bucket-row {
    cursor: pointer;
    transition: background 0.2s ease;
}

    .bucket-row:hover {
        background: rgba(37,140,251,0.08);
    }

.age-breakdown {
    margin-top: 50px;
}

    .age-breakdown h4 {
        margin-bottom: 18px;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

    .age-breakdown table {
        width: 100%;
        border-collapse: collapse;
        border-radius: 16px;
        overflow: hidden;
        background: linear-gradient(145deg, #1b2430, #141c27);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    }

    .age-breakdown thead {
        background: #1f2937;
    }

    .age-breakdown th {
        text-align: left;
        padding: 16px 20px;
        font-size: 13px;
        font-weight: 600;
        color: #9ca3af;
        text-transform: uppercase;
        letter-spacing: 0.6px;
    }

    .age-breakdown td {
        padding: 16px 20px;
        font-size: 14px;
        color: #e5e7eb;
    }

    .age-breakdown tbody tr {
        border-top: 1px solid rgba(255,255,255,0.05);
        transition: background 0.2s ease;
    }

        .age-breakdown tbody tr:hover {
            background: rgba(255,255,255,0.04);
        }

/* =============================
   Worst Unit Section
============================= */

.worst-unit {
    margin-top: 50px;
}

    .worst-unit h4 {
        margin-bottom: 18px;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

.worst-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(145deg, #2a1515, #1b1111);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 16px;
    padding: 22px 26px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    transition: all 0.25s ease;
}

    .worst-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
    }

.danger-text {
    color: #ef4444;
    font-weight: 700;
    font-size: 15px;
}

/* =============================
   KPI Small Text Styling
============================= */

.kpi-card small {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    opacity: 0.6;
    letter-spacing: 0.3px;
}

/* =============================
   Section Spacing Improvements
============================= */

.dashboard-container h4 {
    color: #e5e7eb;
}

/* Smooth section separation */
.age-breakdown,
.worst-unit,
.table-section {
    animation: fadeIn 0.4s ease-in-out;
}

/* =============================
   Error Message
============================= */

.login-error {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    color: #dc2626;
}

/* =============================
   Animations
============================= */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}






/* =============================
   Bucket Header
============================= */

.bucket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

    .bucket-header h3 {
        font-size: 22px;
        font-weight: 600;
        color: #ffffff;
        margin: 0;
    }

.bucket-subtext {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 6px;
}

/* =============================
   Empty State
============================= */

.empty-state {
    background: linear-gradient(145deg, #1b2430, #141c27);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    color: #9ca3af;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}



/* =============================
  Blowout Page Layout
============================= */
.export-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}




/* =============================
   Discount Calculator Advanced
============================= */

.dark-select {
    width: 100%;
    background: #0f172a;
    border: 1px solid #334155;
    color: #e5e7eb;
    padding: 14px;
    border-radius: 10px;
    appearance: none;
    font-size: 14px;
}

.select-wrapper {
    position: relative;
}

    .select-wrapper::after {
        content: "▾";
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
        pointer-events: none;
    }

.calculator-result-card {
    margin-top: 30px;
    background: linear-gradient(145deg, #2a1515, #1b1111);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease-in-out;
}

.result-top {
    font-size: 22px;
    font-weight: 700;
    color: #f87171;
    margin-bottom: 20px;
}

    .result-top span {
        color: white;
    }

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.result-metric {
    background: rgba(255,255,255,0.04);
    padding: 18px;
    border-radius: 12px;
}

.metric-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 6px;
}

.metric-value {
    font-size: 18px;
    font-weight: 600;
    color: #e5e7eb;
}

.warning-box {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 14px 16px;
    border-radius: 10px;
    color: #f87171;
    font-weight: 600;
    margin-bottom: 15px;
}




/* =============================
   Discount Calculator Premium Layout
============================= */

.calculator-hero {
    margin-bottom: 30px;
}

    .calculator-hero h2 {
        font-weight: 700;
        font-size: 28px;
        margin-bottom: 6px;
    }

    .calculator-hero p {
        color: #94a3b8;
        font-size: 14px;
    }

.calculator-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 900px) {
    .calculator-layout {
        grid-template-columns: 1fr;
    }
}

/* Input Panel */
.calculator-input-panel {
    background: linear-gradient(145deg, #1b2430, #141c27);
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.panel-header {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-bottom: 20px;
}

/* Premium Select */
.premium-select {
    background: #0f172a;
    border: 1px solid #334155;
    font-weight: 500;
}

    .premium-select:hover {
        border-color: #258cfb;
    }

/* Summary Grid */
.unit-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.summary-card {
    background: rgba(255,255,255,0.04);
    padding: 16px;
    border-radius: 12px;
}

.summary-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 6px;
}

.summary-value {
    font-size: 18px;
    font-weight: 600;
}

.summary-card.danger {
    border: 1px solid rgba(239,68,68,0.4);
    color: #f87171;
}

/* Large Input */
.large-input {
    font-size: 18px;
    font-weight: 600;
}

/* Primary Action Button */
.btn-primary-action {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    font-weight: 700;
    border: none;
    color: white;
    background: linear-gradient(135deg, #1b6ec2, #258cfb);
    transition: all 0.25s ease;
}

    .btn-primary-action:hover {
        transform: translateY(-2px);
        box-shadow: 0 15px 35px rgba(37,140,251,0.4);
    }

/* Output Panel */
.calculator-output-panel {
    background: linear-gradient(145deg, #2a1515, #1b1111);
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.6);
}

/* Break Even Hero */
.break-even-hero {
    font-size: 16px;
    color: #f87171;
    margin-bottom: 15px;
}

.break-even-value {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-top: 5px;
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.comparison-card {
    background: rgba(255,255,255,0.05);
    padding: 18px;
    border-radius: 12px;
}

.metric-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 5px;
}

.metric-value {
    font-size: 18px;
    font-weight: 700;
}

/* Warning */
.critical-warning {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.5);
    padding: 14px;
    border-radius: 10px;
    color: #f87171;
    font-weight: 600;
    margin-top: 15px;
}

/* APR Note */
.apr-note {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 15px;
}



/* =============================
   UnitGuard Table Styling
============================= */

.ug-table-card {
    background: #1e293b;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    overflow-x: auto;
}

.ug-table {
    width: 100%;
    border-collapse: collapse;
    color: #e2e8f0;
    font-size: 14px;
}

    .ug-table thead {
        border-bottom: 1px solid #334155;
    }

    .ug-table th {
        text-align: left;
        padding: 14px 12px;
        font-weight: 600;
        color: #94a3b8;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .ug-table td {
        padding: 16px 12px;
        border-bottom: 1px solid #273449;
    }

    .ug-table tbody tr:hover {
        background-color: rgba(37, 140, 251, 0.08);
        transition: background 0.2s ease;
    }

.rank {
    font-weight: 600;
    color: #60a5fa;
}

.unit-name {
    font-weight: 500;
    color: #f8fafc;
}

.burn-cell {
    font-weight: 600;
    color: #f87171;
}

/* Empty state */
.empty-state {
    padding: 30px;
    background: #1e293b;
    border-radius: 12px;
    text-align: center;
    color: #94a3b8;
}





/* =============================
   Inventory Page
============================= */

/* Last Updated Text */
.upload-last-updated {
    margin-top: 12px;
    font-size: 12px;
    color: #64748b;
}

/* Template Link */
.upload-template-link {
    margin-top: 12px;
    font-size: 13px;
    color: #94a3b8;
}

    .upload-template-link a {
        margin-left: 6px;
        font-weight: 600;
        color: #60a5fa;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .upload-template-link a:hover {
            color: #ffffff;
        }



.inventory-toolbar {
    margin-bottom: 18px;
    display: flex;
    justify-content: flex-end;
}

.inventory-search {
    width: 280px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #e5e7eb;
    font-size: 14px;
    transition: all 0.2s ease;
}

    .inventory-search:focus {
        border-color: #258cfb;
        box-shadow: 0 0 0 3px rgba(37,140,251,0.15);
    }

.ug-table th {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

    .ug-table th:hover {
        color: #ffffff;
    }


/* =============================
   Inventory Upload Section
============================= */

.inventory-upload-card {
    position: relative;
    background: linear-gradient(145deg, #1b2430, #141c27);
    border-radius: 18px;
    padding: 30px;
    margin-bottom: 35px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.45);
    border: 1px solid rgba(239, 68, 68, 0.15);
    animation: fadeIn 0.3s ease-in-out;
}

.upload-header h4 {
    margin: 0;
    font-weight: 600;
    font-size: 18px;
    color: #ffffff;
}

.upload-description {
    margin-top: 8px;
    font-size: 13px;
    color: #94a3b8;
}

.upload-body {
    margin-top: 25px;
}

.inventory-file-input {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px dashed #334155;
    background: #0f172a;
    color: #e5e7eb;
    transition: all 0.2s ease;
}

    .inventory-file-input:hover {
        border-color: #258cfb;
        background: #111c2b;
    }

.upload-actions {
    margin-top: 22px;
    display: flex;
    gap: 14px;
}

.btn-upload-replace {
    padding: 14px 20px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    transition: all 0.25s ease;
}

    .btn-upload-replace:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(239,68,68,0.35);
    }

.btn-upload-cancel {
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid #334155;
    background: transparent;
    color: #94a3b8;
    font-weight: 600;
    transition: all 0.25s ease;
}

    .btn-upload-cancel:hover {
        background: rgba(255,255,255,0.05);
        color: #ffffff;
    }

/* Overlay */

.inventory-upload-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 18px;
    z-index: 5;
}

.inventory-upload-loader {
    text-align: center;
}

.upload-title {
    font-weight: 600;
    font-size: 16px;
    color: #ef4444;
    margin-bottom: 6px;
}

.upload-subtext {
    font-size: 13px;
    color: #94a3b8;
}




/* =============================
   Premium Settings Page
============================= */

.settings-hero {
    margin-bottom: 30px;
}

    .settings-hero h2 {
        font-weight: 700;
        font-size: 28px;
        margin-bottom: 6px;
    }

    .settings-hero p {
        color: #94a3b8;
        font-size: 14px;
    }

.settings-panel {
    background: linear-gradient(145deg, #1b2430, #141c27);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.6);
    border: 1px solid rgba(37,140,251,0.2);
    max-width: 750px;
}

.settings-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.settings-badge {
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(37,140,251,0.15);
    color: #60a5fa;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.settings-description {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 25px;
}

.settings-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

@media (max-width: 900px) {
    .settings-input-row {
        grid-template-columns: 1fr;
    }
}

.settings-input-group label {
    font-size: 12px;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 6px;
    display: block;
}

.apr-input-wrapper {
    position: relative;
}

.apr-input {
    font-size: 18px;
    font-weight: 600;
    padding-right: 40px;
}

.apr-symbol {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-weight: 600;
}

.settings-preview-card {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 14px;
}

.preview-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 6px;
}

.preview-value {
    font-size: 18px;
    font-weight: 700;
    color: #f87171;
}





/* =============================
   Support Page
============================= */

.support-hero {
    margin-bottom: 35px;
}

    .support-hero h2 {
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 6px;
    }

    .support-hero p {
        color: #94a3b8;
        font-size: 14px;
    }

.support-wrapper {
    display: flex;
    justify-content: center;
}

.support-card {
    width: 100%;
    max-width: 800px;
    background: linear-gradient(145deg, #1b2430, #141c27);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    border: 1px solid rgba(37,140,251,0.2);
    animation: fadeIn 0.3s ease-in-out;
}

.support-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

    .support-header h4 {
        margin: 0;
        font-weight: 600;
    }

.support-badge {
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(37,140,251,0.15);
    color: #60a5fa;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.support-subtext {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 30px;
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

@media (max-width: 900px) {
    .support-grid {
        grid-template-columns: 1fr;
    }
}

.support-field label {
    font-size: 12px;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 6px;
    display: block;
}

.support-textarea {
    resize: vertical;
    min-height: 140px;
}

.support-validation {
    margin-top: 15px;
    color: #f87171;
    font-size: 13px;
}




/* =============================
   Sidebar Navigation
============================= */
.collapse {
    display: none;
}

.nav-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-decoration: none;
}

    .navbar-brand:hover {
        color: #258cfb;
    }

/* Toggle Button */

.navbar-toggler {
    background: rgba(255,255,255,0.08);
    border: none;
    color: white;
    font-size: 18px;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .navbar-toggler:hover {
        background: rgba(37,140,251,0.3);
    }

/* Sidebar Menu */

.nav-scrollable {
    padding-top: 15px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 12px;
}

/* Nav Links */

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

    .nav-link .oi {
        font-size: 14px;
        width: 18px;
        opacity: 0.8;
    }

    /* Hover */

    .nav-link:hover {
        background: rgba(255,255,255,0.06);
        color: #ffffff;
        transform: translateX(4px);
    }

    /* Active */

    .nav-link.active {
        background: linear-gradient(135deg, #1b6ec2, #258cfb);
        color: white;
        box-shadow: 0 8px 20px rgba(37,140,251,0.35);
    }

        .nav-link.active .oi {
            opacity: 1;
        }

/* Desktop Behavior */

@media (min-width: 641px) {
    .navbar-toggler {
        display: none;
    }

    .collapse {
        display: block;
    }

    .nav-scrollable {
        height: calc(100vh - 60px);
        overflow-y: auto;
    }
}



/* =============================
   Blazor Error UI
============================= */

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #b91c1c;
    color: white;
    padding: 16px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    font-size: 14px;
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
}

    #blazor-error-ui .dismiss {
        background: transparent;
        border: none;
        color: white;
        font-size: 14px;
        margin-left: 15px;
        cursor: pointer;
    }

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}



/* =============================
   Main Layout
============================= */

.page {
    position: relative;
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #0f2027, #203a43);
    color: white;
    padding-top: 20px;
}

/* Make sidebar full height */
@media (min-width: 641px) {
    .sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
    }
}

/* Main content area */
main {
    flex: 1;
    padding: 30px;
    background: #111827; /* Dark background */
    min-height: 100vh;
    color: #e5e7eb;
}

/* Top Row (if you use it later) */
.top-row {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: linear-gradient(180deg, #0f2027, #182a36);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Responsive collapse */
@media (max-width: 640px) {
    .page {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    main {
        padding: 20px;
    }
}



/* =============================
   🔥 Burning Glow Effect
============================= */

.burn-glow {
    position: relative;
    border: 1px solid rgba(255, 120, 0, 0.4);
    overflow: hidden;
}

    .burn-glow::before {
        content: "";
        position: absolute;
        inset: -2px;
        border-radius: 18px;
        background: radial-gradient(circle at 30% 20%, rgba(255, 140, 0, 0.35), rgba(255, 60, 0, 0.15), transparent 60%);
        animation: burnPulse 3s ease-in-out infinite;
        pointer-events: none;
    }

    .burn-glow::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 120deg, transparent 40%, rgba(255,120,0,0.08) 50%, transparent 60% );
        animation: burnSweep 4s linear infinite;
        pointer-events: none;
    }

@keyframes burnPulse {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.03);
    }

    100% {
        opacity: 0.6;
        transform: scale(1);
    }
}

@keyframes burnSweep {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}


/* =============================
   404 Page
============================= */

.notfound-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
}

.notfound-card {
    background: linear-gradient(145deg, #1b2430, #141c27);
    padding: 60px 70px;
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    border: 1px solid rgba(37,140,251,0.2);
    animation: fadeIn 0.4s ease-in-out;
}

.notfound-code {
    font-size: 90px;
    font-weight: 800;
    background: linear-gradient(135deg, #1b6ec2, #258cfb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.notfound-card h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.notfound-message {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 30px;
}

.notfound-actions {
    display: flex;
    justify-content: center;
}


.cf-turnstile {
    margin-bottom: 15px;
}