﻿:root {
    --premium-blue: #2f8cff;
    --premium-blue-solid: #1282ff;
    --premium-blue-dark: #0f5fd7;
    --premium-blue-soft: rgba(47, 140, 255, 0.14);
    --premium-blue-glow: rgba(47, 140, 255, 0.42);
    --premium-cyan: #6ee7ff;
    --premium-cyan-soft: rgba(110, 231, 255, 0.16);
    --bg-deep: #020617;
    --bg-dark: #050914;
    --bg-navy: #07111f;
    --bg-panel: rgba(9, 17, 34, 0.88);
    --bg-panel-solid: #0b1220;
    --bg-panel-soft: rgba(15, 23, 42, 0.72);
    --bg-input: rgba(5, 12, 25, 0.92);
    --bg-hover: rgba(47, 140, 255, 0.08);
    --border-soft: rgba(96, 165, 250, 0.16);
    --border-medium: rgba(96, 165, 250, 0.28);
    --border-bright: rgba(47, 140, 255, 0.56);
    --text-light: #f8fbff;
    --text-main: #dbeafe;
    --text-muted: #8ea3bd;
    --text-dim: #64748b;
    --success: #22c55e;
    --success-glow: rgba(34, 197, 94, 0.34);
    --danger: #ff5d6c;
    --danger-glow: rgba(255, 93, 108, 0.34);
    --warning: #f59e0b;
    --warning-glow: rgba(245, 158, 11, 0.34);
    --info: #38bdf8;
    --info-glow: rgba(56, 189, 248, 0.34);
    --radius-xs: 8px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.32);
    --shadow-md: 0 20px 60px rgba(0, 0, 0, 0.48);
    --shadow-lg: 0 28px 90px rgba(0, 0, 0, 0.62);
    --shadow-blue: 0 0 32px rgba(47, 140, 255, 0.18);
    --shadow-blue-strong: 0 0 46px rgba(47, 140, 255, 0.28);
    --sidebar-width: 260px;
    --transition-fast: 0.18s ease;
    --transition-med: 0.28s ease;
    --transition-slow: 0.42s ease;
}

/* =========================================================
   GLOBAL RESET / APP BACKGROUND
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg-deep);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: var(--text-main);
    font-family: "Poppins", Inter, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at 14% 8%, rgba(47, 140, 255, 0.18), transparent 32%), radial-gradient(circle at 88% 76%, rgba(110, 231, 255, 0.11), transparent 34%), radial-gradient(circle at 58% 18%, rgba(15, 95, 215, 0.08), transparent 28%), linear-gradient(135deg, #020617 0%, #050914 44%, #020617 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

    body::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -2;
        pointer-events: none;
        background: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
        background-size: 42px 42px;
        mask-image: radial-gradient(circle at center, black 0%, transparent 78%);
    }

    body::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        background: linear-gradient(120deg, transparent 0%, rgba(47, 140, 255, 0.035) 46%, transparent 72%);
        animation: pageSheen 9s ease-in-out infinite;
    }

::selection {
    color: #ffffff;
    background: rgba(47, 140, 255, 0.45);
}

/* =========================================================
   TYPOGRAPHY
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6,
.page-title {
    color: var(--text-light);
    font-family: inherit;
    font-weight: 800;
    letter-spacing: -0.025em;
    text-shadow: 0 0 18px rgba(47, 140, 255, 0.26), 0 0 40px rgba(47, 140, 255, 0.08);
}

h1,
.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 8px;
    color: #dbeafe;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(96, 165, 250, 0.14);
    text-shadow: 0 0 12px rgba(47, 140, 255, 0.2);
    transition: color var(--transition-med), text-shadow var(--transition-med), border-color var(--transition-med);
}

    h6:hover {
        color: var(--premium-cyan);
        border-color: rgba(110, 231, 255, 0.32);
        text-shadow: 0 0 10px rgba(110, 231, 255, 0.58), 0 0 24px rgba(47, 140, 255, 0.26);
    }

p {
    color: var(--text-muted);
    line-height: 1.65;
}

a {
    color: #93cfff;
    text-decoration: none;
    transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

    a:hover {
        color: #ffffff;
        text-shadow: 0 0 12px rgba(47, 140, 255, 0.48);
    }

.text-primary {
    color: var(--premium-blue) !important;
}

/* =========================================================
   LAYOUT CONTAINERS
   Shared premium Remedii page shell
========================================================= */

.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    position: relative;
    isolation: isolate;
    width: calc(100% - 32px);
    max-width: 1800px;
    margin: 24px auto;
    padding: clamp(24px, 2.6vw, 40px);
    overflow: hidden;
    color: var(--text-main);
    border: 1px solid rgba(96, 165, 250, 0.14);
    border-radius: clamp(20px, 2vw, var(--radius-lg));
    background: radial-gradient( circle at 8% 0%, rgba(47, 140, 255, 0.14), transparent 31% ), radial-gradient( circle at 96% 8%, rgba(110, 231, 255, 0.06), transparent 27% ), linear-gradient( 145deg, rgba(13, 23, 43, 0.94), rgba(3, 7, 18, 0.96) );
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5), 0 0 58px rgba(47, 140, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.025);
    backdrop-filter: none;
    backdrop-filter: none;
    animation: fadeIn 0.42s ease-out both;
    transition: border-color var(--transition-med), box-shadow var(--transition-med);
}

    /*
   Fine technical grid inside the panel.
   This remains behind all page content.
*/

    .container::before,
    .container-sm::before,
    .container-md::before,
    .container-lg::before,
    .container-xl::before,
    .container-xxl::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        background: linear-gradient( rgba(255, 255, 255, 0.015) 1px, transparent 1px ), linear-gradient( 90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px );
        background-size: 34px 34px;
        mask-image: linear-gradient( to bottom, rgba(0, 0, 0, 0.82), transparent 68% );
        -webkit-mask-image: linear-gradient( to bottom, rgba(0, 0, 0, 0.82), transparent 68% );
    }

    /*
   Subtle illuminated top edge.
*/

    .container::after,
    .container-sm::after,
    .container-md::after,
    .container-lg::after,
    .container-xl::after,
    .container-xxl::after {
        content: "";
        position: absolute;
        top: 0;
        left: 14%;
        width: 72%;
        height: 1px;
        pointer-events: none;
        background: linear-gradient( 90deg, transparent, rgba(110, 231, 255, 0.84), transparent );
        box-shadow: 0 0 22px rgba(47, 140, 255, 0.72);
    }

    .container:hover,
    .container-sm:hover,
    .container-md:hover,
    .container-lg:hover,
    .container-xl:hover,
    .container-xxl:hover {
        border-color: rgba(110, 231, 255, 0.2);
        box-shadow: 0 30px 96px rgba(0, 0, 0, 0.54), 0 0 64px rgba(47, 140, 255, 0.105), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    }

/*
   Standard Bootstrap form-group spacing.
   No hover movement, so forms feel stable.
*/

.mb-3 {
    position: relative;
    margin-bottom: 1.25rem !important;
}


/* =========================================================
   HEADINGS INSIDE CONTAINERS
========================================================= */

.container > h1,
.container > h2,
.container > h3,
.container-sm > h1,
.container-sm > h2,
.container-sm > h3,
.container-md > h1,
.container-md > h2,
.container-md > h3,
.container-lg > h1,
.container-lg > h2,
.container-lg > h3,
.container-xl > h1,
.container-xl > h2,
.container-xl > h3,
.container-xxl > h1,
.container-xxl > h2,
.container-xxl > h3 {
    position: relative;
    margin: 0 0 clamp(22px, 2.4vw, 32px);
    padding-bottom: 18px;
    color: var(--text-light);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.045em;
    text-transform: none;
    border-bottom: 1px solid rgba(96, 165, 250, 0.13);
    text-shadow: 0 0 20px rgba(47, 140, 255, 0.28), 0 0 46px rgba(47, 140, 255, 0.09);
}

    /*
   Accent line under page headings.
*/

    .container > h1::after,
    .container > h2::after,
    .container > h3::after,
    .container-sm > h1::after,
    .container-sm > h2::after,
    .container-sm > h3::after,
    .container-md > h1::after,
    .container-md > h2::after,
    .container-md > h3::after,
    .container-lg > h1::after,
    .container-lg > h2::after,
    .container-lg > h3::after,
    .container-xl > h1::after,
    .container-xl > h2::after,
    .container-xl > h3::after,
    .container-xxl > h1::after,
    .container-xxl > h2::after,
    .container-xxl > h3::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -1px;
        width: 110px;
        height: 2px;
        border-radius: 999px;
        background: linear-gradient( 90deg, var(--premium-cyan), var(--premium-blue), transparent );
        box-shadow: 0 0 16px rgba(47, 140, 255, 0.58);
        transition: width var(--transition-slow), filter var(--transition-med);
    }

    .container > h1:hover::after,
    .container > h2:hover::after,
    .container > h3:hover::after,
    .container-sm > h1:hover::after,
    .container-sm > h2:hover::after,
    .container-sm > h3:hover::after,
    .container-md > h1:hover::after,
    .container-md > h2:hover::after,
    .container-md > h3:hover::after,
    .container-lg > h1:hover::after,
    .container-lg > h2:hover::after,
    .container-lg > h3:hover::after,
    .container-xl > h1:hover::after,
    .container-xl > h2:hover::after,
    .container-xl > h3:hover::after,
    .container-xxl > h1:hover::after,
    .container-xxl > h2:hover::after,
    .container-xxl > h3:hover::after {
        width: min(260px, 55%);
        filter: brightness(1.12);
    }

/*
   Section headings inside forms and cards.
*/

.container h4,
.container h5,
.container-sm h4,
.container-sm h5,
.container-md h4,
.container-md h5,
.container-lg h4,
.container-lg h5,
.container-xl h4,
.container-xl h5,
.container-xxl h4,
.container-xxl h5 {
    color: var(--text-light);
    font-weight: 850;
    letter-spacing: -0.025em;
}


/* =========================================================
   LABELS
========================================================= */

label,
.form-label,
.container label,
.container-sm label,
.container-md label,
.container-lg label,
.container-xl label,
.container-xxl label,
.modal-content label {
    display: inline-block;
    margin-bottom: 8px;
    color: #cfe0f3;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

/*
   Optional helper text beneath fields.
*/

.form-text {
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}


/* =========================================================
   FORMS / INPUTS / SELECTS / TEXTAREAS
========================================================= */

.form-control,
.form-select,
input.form-control,
select.form-control,
textarea.form-control,
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="month"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="password"],
.container input[type="text"],
.container input[type="datetime-local"],
.container input.form-control,
.container select.form-control,
.container select,
.modal-content input[type="text"],
.modal-content select,
.modal-content textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.94rem;
    font-weight: 500;
    line-height: 1.4;
    border: 1px solid rgba(96, 165, 250, 0.17);
    border-radius: 12px;
    outline: none;
    background: linear-gradient( 180deg, rgba(12, 23, 43, 0.94), rgba(3, 8, 18, 0.97) );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 22px rgba(0, 0, 0, 0.18);
    transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

    /*
   Browser autofill can otherwise turn fields white.
*/

    .form-control:-webkit-autofill,
    .form-control:-webkit-autofill:hover,
    .form-control:-webkit-autofill:focus,
    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus {
        -webkit-text-fill-color: var(--text-light);
        caret-color: var(--text-light);
        box-shadow: 0 0 0 1000px #07101f inset, 0 0 0 1px rgba(47, 140, 255, 0.2);
        transition: background-color 9999s ease-in-out 0s;
    }

    /*
   Placeholder treatment.
*/

    .form-control::placeholder,
    textarea.form-control::placeholder,
    input::placeholder,
    textarea::placeholder {
        color: rgba(142, 163, 189, 0.58);
        font-weight: 450;
        opacity: 1;
    }

    /*
   Hover gives a quiet border response.
*/

    .form-control:hover,
    .form-select:hover,
    input.form-control:hover,
    select.form-control:hover,
    textarea.form-control:hover,
    input[type="date"]:hover,
    input[type="datetime-local"]:hover,
    input[type="time"]:hover,
    input[type="month"]:hover,
    input[type="number"]:hover,
    input[type="email"]:hover,
    input[type="tel"]:hover,
    input[type="password"]:hover,
    .container input[type="text"]:hover,
    .container input[type="datetime-local"]:hover,
    .container select:hover,
    .modal-content input[type="text"]:hover,
    .modal-content select:hover,
    .modal-content textarea:hover {
        border-color: rgba(47, 140, 255, 0.38);
        background: linear-gradient( 180deg, rgba(15, 29, 54, 0.97), rgba(5, 12, 25, 0.98) );
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 10px 26px rgba(0, 0, 0, 0.2);
    }

    /*
   Focus state is prominent but not excessively neon.
*/

    .form-control:focus,
    .form-select:focus,
    input.form-control:focus,
    select.form-control:focus,
    textarea.form-control:focus,
    input[type="date"]:focus,
    input[type="datetime-local"]:focus,
    input[type="time"]:focus,
    input[type="month"]:focus,
    input[type="number"]:focus,
    input[type="email"]:focus,
    input[type="tel"]:focus,
    input[type="password"]:focus,
    .container input:focus,
    .container select:focus,
    .modal-content input:focus,
    .modal-content select:focus,
    .modal-content textarea:focus {
        color: #ffffff !important;
        border-color: rgba(47, 140, 255, 0.82);
        background: linear-gradient( 180deg, rgba(14, 28, 52, 0.99), rgba(5, 13, 28, 0.99) );
        box-shadow: 0 0 0 1px rgba(47, 140, 255, 0.28), 0 0 0 4px rgba(47, 140, 255, 0.085), 0 12px 32px rgba(0, 0, 0, 0.24), 0 0 28px rgba(47, 140, 255, 0.16);
        transform: translateY(-1px);
    }

    /*
   Disabled and read-only fields.
*/

    .form-control:disabled,
    .form-select:disabled,
    .form-control[readonly],
    input:disabled,
    select:disabled,
    textarea:disabled {
        color: rgba(219, 234, 254, 0.48);
        cursor: not-allowed;
        border-color: rgba(96, 165, 250, 0.08);
        background: linear-gradient( 180deg, rgba(12, 19, 33, 0.58), rgba(3, 7, 18, 0.68) );
        box-shadow: none;
        opacity: 0.72;
    }

/*
   Select dropdowns.
*/

.form-select,
select.form-control,
.container select,
.modal-content select {
    padding-right: 42px;
    color-scheme: dark;
    cursor: pointer;
    background-color: #07111f;
}

    .form-select option,
    select.form-control option,
    .container select option,
    .modal-content select option {
        color: #f8fbff;
        background: #07111f;
    }

/*
   Text areas.
*/

textarea.form-control,
.modal-content textarea {
    min-height: 145px;
    padding-top: 13px;
    resize: vertical;
    line-height: 1.6;
}

/*
   Date and time inputs.
*/

input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="month"] {
    color-scheme: dark;
    appearance: none;
    -webkit-appearance: none;
}

    input[type="date"]::-webkit-calendar-picker-indicator,
    input[type="datetime-local"]::-webkit-calendar-picker-indicator,
    input[type="time"]::-webkit-calendar-picker-indicator,
    input[type="month"]::-webkit-calendar-picker-indicator {
        cursor: pointer;
        opacity: 0.7;
        filter: invert(1) brightness(1.18) saturate(2) hue-rotate(168deg);
        transition: opacity var(--transition-fast), transform var(--transition-fast), filter var(--transition-fast);
    }

        input[type="date"]::-webkit-calendar-picker-indicator:hover,
        input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
        input[type="time"]::-webkit-calendar-picker-indicator:hover,
        input[type="month"]::-webkit-calendar-picker-indicator:hover {
            opacity: 1;
            filter: invert(1) brightness(1.32) saturate(2.4) hue-rotate(168deg);
            transform: scale(1.08);
        }

/*
   File input styling.
*/

input[type="file"].form-control {
    min-height: 54px;
    padding: 8px 10px;
    cursor: pointer;
}

    input[type="file"].form-control::file-selector-button {
        min-height: 36px;
        margin-right: 12px;
        padding: 8px 13px;
        color: #ffffff;
        font-family: inherit;
        font-size: 0.8rem;
        font-weight: 750;
        cursor: pointer;
        border: 1px solid rgba(110, 231, 255, 0.24);
        border-radius: 9px;
        background: linear-gradient( 135deg, rgba(15, 95, 215, 0.92), rgba(18, 130, 255, 0.9) );
        box-shadow: 0 8px 20px rgba(18, 130, 255, 0.16);
        transition: filter var(--transition-fast), border-color var(--transition-fast);
    }

        input[type="file"].form-control::file-selector-button:hover {
            filter: brightness(1.1);
            border-color: rgba(110, 231, 255, 0.5);
        }


/* =========================================================
   VALIDATION STATES
========================================================= */

.validation-message,
.validation-errors,
.invalid-feedback {
    display: block;
    margin-top: 7px;
    color: #ffadb6;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.4;
}

.form-control.invalid,
.form-select.invalid,
input.invalid,
textarea.invalid {
    border-color: rgba(255, 93, 108, 0.72);
    box-shadow: 0 0 0 1px rgba(255, 93, 108, 0.22), 0 0 18px rgba(255, 93, 108, 0.12);
}

.form-control.valid.modified,
.form-select.valid.modified,
input.valid.modified,
textarea.valid.modified {
    border-color: rgba(34, 197, 94, 0.48);
}


/* =========================================================
   INPUT GROUPS
========================================================= */

.input-group {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
}

    .input-group .form-control,
    .input-group .form-select {
        position: relative;
        flex: 1 1 auto;
        min-width: 0;
    }

.input-group-text {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    color: #86a3b8;
    border: 1px solid rgba(96, 165, 250, 0.17);
    background: linear-gradient( 180deg, rgba(15, 27, 49, 0.94), rgba(5, 11, 22, 0.97) );
}


/* =========================================================
   RESPONSIVE CONTAINER / FORM FOUNDATION
========================================================= */

@media (max-width: 992px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        width: calc(100% - 24px);
        margin: 18px auto;
        padding: 24px;
        border-radius: 22px;
    }
}

@media (max-width: 768px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        width: calc(100% - 18px);
        margin: 12px auto;
        padding: 19px;
        border-radius: 18px;
    }

        .container > h1,
        .container > h2,
        .container > h3,
        .container-sm > h1,
        .container-sm > h2,
        .container-sm > h3,
        .container-md > h1,
        .container-md > h2,
        .container-md > h3,
        .container-lg > h1,
        .container-lg > h2,
        .container-lg > h3,
        .container-xl > h1,
        .container-xl > h2,
        .container-xl > h3,
        .container-xxl > h1,
        .container-xxl > h2,
        .container-xxl > h3 {
            margin-bottom: 22px;
            font-size: clamp(1.65rem, 8vw, 2.2rem);
        }

    .form-control,
    .form-select,
    input.form-control,
    select.form-control,
    textarea.form-control {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        width: calc(100% - 12px);
        margin: 6px auto;
        padding: 15px;
        border-radius: 15px;
    }
}

/* =========================================================
   BUTTONS
========================================================= */

.btn,
button,
.container .btn,
.container button,
.container .btn-outline-primary,
.btn-outline-primary,
.pack-button,
.sakura-upload-btn,
.sidebar-toggler,
.sidebar-open-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 18px;
    overflow: hidden;
    color: #ffffff;
    font-weight: 750;
    letter-spacing: 0.01em;
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(15, 95, 215, 0.86), rgba(18, 130, 255, 0.88)), linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent);
    box-shadow: 0 14px 34px rgba(18, 130, 255, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.055) inset;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), filter var(--transition-fast), background var(--transition-fast);
}

    .btn::before,
    button::before,
    .container .btn::before,
    .container button::before,
    .container .btn-outline-primary::before,
    .btn-outline-primary::before,
    .pack-button::before,
    .sakura-upload-btn::before,
    .sidebar-toggler::before,
    .sidebar-open-button::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient( 110deg, transparent 0%, rgba(255, 255, 255, 0.16) 42%, transparent 68% );
        transform: translateX(-120%);
        transition: transform 0.55s ease;
    }

    .btn:hover,
    button:hover,
    .container .btn:hover,
    .container button:hover,
    .container .btn-outline-primary:hover,
    .btn-outline-primary:hover,
    .pack-button:hover,
    .sakura-upload-btn:hover,
    .sidebar-toggler:hover,
    .sidebar-open-button:hover {
        color: #ffffff;
        border-color: rgba(110, 231, 255, 0.68);
        transform: translateY(-2px);
        filter: brightness(1.08) saturate(1.08);
        box-shadow: 0 18px 44px rgba(18, 130, 255, 0.3), 0 0 26px rgba(47, 140, 255, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.09) inset;
    }

        .btn:hover::before,
        button:hover::before,
        .container .btn:hover::before,
        .container button:hover::before,
        .container .btn-outline-primary:hover::before,
        .btn-outline-primary:hover::before,
        .pack-button:hover::before,
        .sakura-upload-btn:hover::before,
        .sidebar-toggler:hover::before,
        .sidebar-open-button:hover::before {
            transform: translateX(120%);
        }

    .btn:active,
    button:active,
    .container .btn:active,
    .container button:active,
    .pack-button:active,
    .sakura-upload-btn:active {
        transform: translateY(0);
    }

.btn-outline-primary {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(3, 7, 18, 0.92));
    color: #dbeafe;
}

    .btn-outline-primary:hover {
        background: linear-gradient(135deg, rgba(15, 95, 215, 0.86), rgba(18, 130, 255, 0.9));
    }

.btn-close,
button.btn-close {
    position: absolute;
    top: 1rem;
    right: 1.15rem;
    z-index: 10;
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    color: var(--text-light);
    font-size: 0;
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 999px;
    background: radial-gradient(circle at center, rgba(47, 140, 255, 0.16), rgba(3, 7, 18, 0.86));
    opacity: 0.95;
    filter: none;
    box-shadow: 0 0 18px rgba(47, 140, 255, 0.16);
}

    .btn-close::before,
    button.btn-close::before {
        content: "×";
        position: static;
        display: block;
        width: auto;
        height: auto;
        color: var(--premium-cyan);
        font-size: 2rem;
        line-height: 1;
        background: none;
        transform: none;
        text-shadow: 0 0 10px rgba(110, 231, 255, 0.7), 0 0 20px rgba(47, 140, 255, 0.32);
    }

    .btn-close:hover,
    button.btn-close:hover {
        transform: scale(1.08);
        border-color: rgba(110, 231, 255, 0.56);
        box-shadow: 0 0 20px rgba(47, 140, 255, 0.34), 0 0 38px rgba(110, 231, 255, 0.16);
    }

/* =========================================================
   TABLES
========================================================= */

.table-responsive {
    margin-top: 22px;
    padding: 10px;
    overflow-x: auto;
    border: 1px solid rgba(96, 165, 250, 0.14);
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.72), rgba(3, 7, 18, 0.82));
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.36), 0 0 28px rgba(47, 140, 255, 0.06);
}

.table,
.container table.table {
    width: 100%;
    margin-top: 18px;
    margin-bottom: 0;
    color: var(--text-main);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, 0.14);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.76), rgba(3, 7, 18, 0.86));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

    .table th,
    .table td,
    .container table.table th,
    .container table.table td {
        padding: 14px 16px;
        color: #dbeafe;
        white-space: nowrap;
        vertical-align: middle;
        border: 0;
        border-bottom: 1px solid rgba(96, 165, 250, 0.1);
        transition: background-color var(--transition-fast), color var(--transition-fast), text-shadow var(--transition-fast), box-shadow var(--transition-fast);
    }

    .table th,
    .container table.table th {
        position: sticky;
        top: 0;
        z-index: 2;
        color: #b9d8ff;
        font-size: 0.78rem;
        font-weight: 850;
        text-transform: uppercase;
        letter-spacing: 0.09em;
        background: linear-gradient(180deg, rgba(15, 32, 61, 0.98), rgba(8, 15, 30, 0.98));
        border-bottom: 1px solid rgba(110, 231, 255, 0.18);
        box-shadow: inset 0 -1px 0 rgba(110, 231, 255, 0.12), 0 10px 20px rgba(0, 0, 0, 0.14);
    }

        .table th:hover,
        .container table.table th:hover {
            color: #ffffff;
            text-shadow: 0 0 10px rgba(110, 231, 255, 0.6), 0 0 22px rgba(47, 140, 255, 0.26);
            box-shadow: inset 0 -2px 0 rgba(110, 231, 255, 0.72), 0 0 16px rgba(47, 140, 255, 0.14);
        }

    .table tbody tr,
    .container table.table tr {
        position: relative;
        transition: background-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
    }

        .table tbody tr:nth-child(even),
        .container table.table tbody tr:nth-child(even) {
            background-color: rgba(255, 255, 255, 0.018);
        }

        .table-hover tbody tr:hover,
        .table tbody tr:hover,
        .container table.table tr:hover {
            background: linear-gradient(90deg, rgba(47, 140, 255, 0.1), rgba(110, 231, 255, 0.035));
            box-shadow: inset 3px 0 0 rgba(110, 231, 255, 0.78), 0 0 22px rgba(47, 140, 255, 0.09);
        }

    .table td:hover,
    .container table.table td:hover {
        color: #ffffff;
        background-color: rgba(47, 140, 255, 0.06);
        text-shadow: 0 0 8px rgba(47, 140, 255, 0.42), 0 0 18px rgba(47, 140, 255, 0.18);
    }

/* =========================================================
   STATUS ICONS
========================================================= */

.fa-check-circle.text-success,
.text-success {
    color: var(--success) !important;
    text-shadow: 0 0 12px var(--success-glow);
}

.fa-times-circle.text-danger,
.text-danger {
    color: var(--danger) !important;
    text-shadow: 0 0 12px var(--danger-glow);
}

.fa-check-circle,
.fa-times-circle {
    transition: transform var(--transition-fast), filter var(--transition-fast);
}

    .fa-check-circle:hover,
    .fa-times-circle:hover {
        transform: scale(1.12);
        filter: brightness(1.2);
    }

/* =========================================================
   PAGINATION
========================================================= */

.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 28px;
}

/* =========================================================
   SIDEBAR
   Visual replacement only — existing behaviour preserved
========================================================= */

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    height: 100vh;
    padding: 0;
    color: var(--text-light);
    overflow: hidden;
    border-right: 1px solid rgba(110, 231, 255, 0.14);
    background: radial-gradient( circle at 12% 0%, rgba(47, 140, 255, 0.17), transparent 30% ), radial-gradient( circle at 100% 42%, rgba(110, 231, 255, 0.045), transparent 38% ), linear-gradient( 180deg, #0a1220 0%, #050a13 52%, #03070e 100% );
    box-shadow: inset -1px 0 0 rgba(110, 231, 255, 0.06), 18px 0 50px rgba(0, 0, 0, 0.44), 0 0 40px rgba(47, 140, 255, 0.08);
    transform: translateX(0);
    transition: transform var(--transition-med), box-shadow var(--transition-slow);
}

    /* Subtle illuminated right edge */

    .sidebar::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 1px;
        pointer-events: none;
        background: linear-gradient( 180deg, rgba(110, 231, 255, 0.46), rgba(47, 140, 255, 0.12) 28%, transparent 78% );
    }

/* =========================================================
   BRAND
========================================================= */

.sidebar-header {
    position: relative;
    min-height: 84px;
    margin: 0;
    padding: 26px 20px 18px 74px;
    color: #f8fbff;
    font-size: 1.55rem;
    font-weight: 850;
    line-height: 1;
    letter-spacing: -0.045em;
    text-transform: lowercase;
    white-space: nowrap;
    border: 0;
    text-shadow: 0 0 18px rgba(110, 231, 255, 0.22), 0 0 34px rgba(47, 140, 255, 0.16);
}

    /* Logo tile generated visually without changing markup */

    .sidebar-header::before {
        content: "r";
        position: absolute;
        top: 20px;
        left: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        color: #04101a;
        font-size: 1.45rem;
        font-weight: 900;
        line-height: 1;
        border: 1px solid rgba(224, 248, 255, 0.68);
        border-radius: 12px;
        background: linear-gradient( 145deg, #e2f8ff 0%, #87ddff 56%, #2f9fe7 100% );
        box-shadow: 0 0 0 4px rgba(110, 231, 255, 0.045), 0 9px 26px rgba(47, 140, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.78);
    }

.sidebar-header-client {
    position: relative;
    max-width: calc(100% - 40px);
    margin: -10px 20px 12px;
    padding: 0 0 18px 54px;
    overflow: hidden;
    color: #71879a;
    font-size: 0.67rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.12em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
    border: 0;
    text-shadow: none;
}

    .sidebar-header-client::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 1px;
        background: linear-gradient( 90deg, transparent, rgba(110, 231, 255, 0.16) 14%, rgba(96, 165, 250, 0.16) 86%, transparent );
    }

/* Divider when no client name is rendered */

.sidebar-header:not(:has(+ .sidebar-header-client)) {
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(110, 231, 255, 0.1);
}

/* =========================================================
   SCROLLABLE NAVIGATION
========================================================= */

.sidebar .nav-scrollable {
    flex: 1;
    min-height: 0;
    padding: 8px 12px 20px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(47, 140, 255, 0.42) transparent;
}

    .sidebar .nav-scrollable::-webkit-scrollbar {
        width: 5px;
    }

    .sidebar .nav-scrollable::-webkit-scrollbar-track {
        background: transparent;
    }

    .sidebar .nav-scrollable::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: linear-gradient( 180deg, rgba(110, 231, 255, 0.46), rgba(47, 140, 255, 0.32) );
    }

.sidebar nav.flex-column {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar .nav-item {
    width: 100%;
    margin: 0;
}

/* Slight visual separation between top-level menu groups */

.sidebar nav.flex-column > .nav-item {
    margin-bottom: 3px;
}

/* =========================================================
   NAVIGATION LINKS
========================================================= */

.sidebar .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    margin: 1px 0;
    padding: 10px 12px;
    overflow: hidden;
    color: #93a7b5;
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1.25;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    border-left: 3px solid transparent;
    border-radius: 11px;
    background: rgba(15, 23, 42, 0.2);
    box-shadow: none;
    cursor: pointer;
    transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

    /* Remove the broad global nav-link sheen inside the sidebar */

    .sidebar .nav-link::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient( 90deg, rgba(47, 140, 255, 0.12), transparent 72% );
        opacity: 0;
        transition: opacity var(--transition-fast);
    }

    .sidebar .nav-link:hover {
        color: #f8fbff;
        border-color: rgba(96, 165, 250, 0.16);
        border-left-color: rgba(110, 231, 255, 0.72);
        background: rgba(47, 140, 255, 0.075);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(110, 231, 255, 0.025);
        transform: translateX(2px);
        text-shadow: none;
    }

        .sidebar .nav-link:hover::before {
            opacity: 1;
        }

    .sidebar .nav-link.active {
        color: #ffffff;
        border-color: rgba(110, 231, 255, 0.26);
        border-left-color: var(--premium-cyan);
        background: linear-gradient( 90deg, rgba(47, 140, 255, 0.19), rgba(15, 23, 42, 0.5) );
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 0 20px rgba(47, 140, 255, 0.11), inset 0 0 0 1px rgba(110, 231, 255, 0.04);
    }

        /* Small active-route indicator */

        .sidebar .nav-link.active::after {
            content: "";
            position: absolute;
            top: 50%;
            right: 10px;
            width: 4px;
            height: 4px;
            border-radius: 999px;
            background: var(--premium-cyan);
            box-shadow: 0 0 8px rgba(110, 231, 255, 0.9), 0 0 16px rgba(47, 140, 255, 0.46);
            transform: translateY(-50%);
        }

    /* =========================================================
   ICONS
========================================================= */

    .sidebar .nav-link > .bi {
        position: relative;
        z-index: 1;
        display: inline-flex;
        flex: 0 0 20px;
        align-items: center;
        justify-content: center;
        width: 20px;
        margin-right: 11px !important;
        color: #6f8ca0;
        font-size: 1rem;
        line-height: 1;
        transition: color var(--transition-fast), transform var(--transition-fast), text-shadow var(--transition-fast);
    }

    .sidebar .nav-link:hover > .bi,
    .sidebar .nav-link.active > .bi {
        color: var(--premium-cyan);
        text-shadow: 0 0 10px rgba(110, 231, 255, 0.46), 0 0 18px rgba(47, 140, 255, 0.25);
    }

    .sidebar .nav-link:hover > .bi {
        transform: scale(1.05);
    }

    /* Existing triangle spans inside dropdown buttons */

    .sidebar .nav-link > span[style*="float:right"] {
        position: relative;
        z-index: 1;
        float: none !important;
        margin-left: auto;
        color: #60798a;
        font-size: 0.52rem;
        line-height: 1;
        transition: color var(--transition-fast);
    }

    .sidebar .nav-link:hover > span[style*="float:right"] {
        color: var(--premium-cyan);
    }

/* =========================================================
   NESTED MENU ITEMS
   Does not alter display/collapse behaviour
========================================================= */

.sidebar .nav-item .nav-item {
    margin: 2px 0 2px 20px;
    width: calc(100% - 20px);
}

    .sidebar .nav-item .nav-item .nav-link {
        min-height: 38px;
        padding: 8px 10px;
        color: #8298a8;
        font-size: 0.78rem;
        font-weight: 600;
        border-left-width: 2px;
        border-radius: 9px;
        background: rgba(4, 11, 22, 0.2);
    }

        .sidebar .nav-item .nav-item .nav-link::after {
            display: none;
        }

        .sidebar .nav-item .nav-item .nav-link:hover {
            color: #eaf7ff;
            border-left-color: rgba(110, 231, 255, 0.52);
            background: rgba(47, 140, 255, 0.065);
        }

        .sidebar .nav-item .nav-item .nav-link.active {
            color: var(--accent-bright, #c8f1ff);
            border-color: rgba(110, 231, 255, 0.15);
            border-left-color: var(--premium-cyan);
            background: rgba(47, 140, 255, 0.1);
            box-shadow: inset 0 0 0 1px rgba(110, 231, 255, 0.025);
        }

        .sidebar .nav-item .nav-item .nav-link > .bi {
            flex-basis: 17px;
            width: 17px;
            margin-right: 9px !important;
            font-size: 0.86rem;
        }

/* =========================================================
   LOGOUT
========================================================= */

.sidebar .nav-item.mt-4 {
    margin-top: 20px !important;
    padding-top: 14px;
    border-top: 1px solid rgba(96, 165, 250, 0.09);
}

.sidebar .btn-danger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    min-height: 43px;
    margin: 0 !important;
    padding: 10px 12px;
    overflow: hidden;
    color: #d9a8ad;
    font-size: 0.84rem;
    font-weight: 700;
    text-align: left;
    border: 1px solid rgba(255, 93, 108, 0.14);
    border-radius: 11px;
    background: rgba(255, 93, 108, 0.055);
    box-shadow: none;
    transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

    .sidebar .btn-danger::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient( 110deg, transparent, rgba(255, 255, 255, 0.08), transparent );
        transform: translateX(-120%);
        transition: transform 0.5s ease;
    }

    .sidebar .btn-danger:hover {
        color: #ffe3e5;
        border-color: rgba(255, 93, 108, 0.28);
        background: rgba(255, 93, 108, 0.11);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16), 0 0 20px rgba(255, 93, 108, 0.08);
        transform: translateY(-1px);
    }

        .sidebar .btn-danger:hover::before {
            transform: translateX(120%);
        }

    .sidebar .btn-danger > .bi {
        display: inline-flex;
        flex: 0 0 20px;
        align-items: center;
        justify-content: center;
        width: 20px;
        margin-right: 11px !important;
        color: #c57981;
        font-size: 1rem;
    }

/* =========================================================
   SIDEBAR TOGGLE BUTTONS
========================================================= */

.sidebar-toggler,
.sidebar-open-button {
    min-height: 42px;
    border: 1px solid rgba(110, 231, 255, 0.2);
    background: linear-gradient( 135deg, rgba(15, 23, 42, 0.96), rgba(18, 130, 255, 0.25) );
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26), 0 0 18px rgba(47, 140, 255, 0.1);
}

/* =========================================================
   COLLAPSE BEHAVIOUR
   Important: preserve this exact meaning
========================================================= */

.sidebar.collapsed {
    transform: translateX(-100%);
}

/* External toggle position remains tied to sidebar width */

.toggle-button-wrapper {
    position: fixed;
    top: 18px;
    z-index: 1100;
    transition: left var(--transition-med);
}

    .toggle-button-wrapper.sidebar-collapsed {
        left: 18px;
    }

    .toggle-button-wrapper:not(.sidebar-collapsed) {
        left: calc(var(--sidebar-width) + 20px);
    }
/* =========================================================
   SIDEBAR HTML ENHANCEMENTS
========================================================= */

.sidebar-brand {
    flex: 0 0 auto;
}

.sidebar .nav-section-label {
    margin: 17px 12px 7px;
    color: #526b7d;
    font-size: 0.61rem;
    font-weight: 850;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

    .sidebar .nav-section-label:first-child {
        margin-top: 6px;
    }

.sidebar .nav-link-label {
    position: relative;
    z-index: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar .nav-parent-link {
    color: #b7c9d5;
    font-weight: 720;
    background: linear-gradient( 90deg, rgba(15, 31, 52, 0.52), rgba(8, 16, 29, 0.28) );
    border-color: rgba(96, 165, 250, 0.08);
}

    .sidebar .nav-parent-link:hover {
        color: #ffffff;
        background: linear-gradient( 90deg, rgba(47, 140, 255, 0.13), rgba(8, 16, 29, 0.34) );
    }

.sidebar .nav-dropdown-indicator {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    margin-left: auto;
    color: #5f788a;
    font-size: 0.5rem;
    line-height: 1;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.sidebar .nav-parent-link:hover .nav-dropdown-indicator {
    color: var(--premium-cyan);
}

.sidebar .nav-parent-link[aria-expanded="true"] {
    color: #f6fbff;
    border-color: rgba(110, 231, 255, 0.17);
    background: linear-gradient( 90deg, rgba(47, 140, 255, 0.13), rgba(15, 23, 42, 0.42) );
}

    .sidebar .nav-parent-link[aria-expanded="true"]
    .nav-dropdown-indicator {
        color: var(--premium-cyan);
        text-shadow: 0 0 8px rgba(110, 231, 255, 0.55);
    }

/* =========================================================
   MODALS
========================================================= */

.modal-backdrop-custom,
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: radial-gradient(circle at center, rgba(47, 140, 255, 0.14), transparent 44%), rgba(1, 5, 13, 0.86);
    backdrop-filter: none;
    backdrop-filter: none;
    animation: fadeInOverlay 0.28s ease-in-out;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 650px;
    padding: 30px;
    color: var(--text-main);
    border: 1px solid rgba(96, 165, 250, 0.22) !important;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(3, 7, 18, 0.98)), radial-gradient(circle at top, rgba(47, 140, 255, 0.14), transparent 44%) !important;
    box-shadow: var(--shadow-lg), 0 0 46px rgba(47, 140, 255, 0.2) !important;
    animation: scaleIn 0.32s ease-out;
}

    .modal-content h3,
    .modal-title {
        margin-bottom: 20px;
        color: var(--text-light);
        font-weight: 850;
        letter-spacing: -0.02em;
        text-shadow: 0 0 16px rgba(47, 140, 255, 0.38), 0 0 32px rgba(47, 140, 255, 0.12);
    }

.modal-header,
.modal-footer {
    padding: 1rem 1.5rem;
    border-color: rgba(96, 165, 250, 0.14);
    background: rgba(15, 23, 42, 0.44);
}

.modal-header {
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.modal-footer {
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

.modal-body {
    padding: 1.5rem;
    background: rgba(3, 7, 18, 0.28);
}

.modal-content .form-group {
    width: 100%;
    margin-bottom: 18px;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

    .modal-buttons .btn {
        min-width: 120px;
    }

/* =========================================================
   TOASTS
========================================================= */

.blazored-toast-container {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    pointer-events: none !important;
}

.blazored-toast {
    min-width: 280px;
    max-width: 420px;
    padding: 15px 18px !important;
    color: var(--text-light) !important;
    font-family: "Poppins", Inter, "Segoe UI", sans-serif !important;
    font-size: 0.95rem;
    border: 1px solid rgba(96, 165, 250, 0.18) !important;
    border-left: 4px solid var(--premium-blue) !important;
    border-radius: var(--radius-md) !important;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(3, 7, 18, 0.96)) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), 0 0 24px rgba(47, 140, 255, 0.18) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    pointer-events: auto;
    animation: fadeInToast 0.3s ease-out;
}

.blazored-toast-success {
    border-left-color: var(--success) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), 0 0 22px var(--success-glow) !important;
}

.blazored-toast-error {
    border-left-color: var(--danger) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), 0 0 22px var(--danger-glow) !important;
}

.blazored-toast-warning {
    border-left-color: var(--warning) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), 0 0 22px var(--warning-glow) !important;
}

.blazored-toast-info {
    border-left-color: var(--info) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), 0 0 22px var(--info-glow) !important;
}

/* =========================================================
   PACK CARDS
========================================================= */

.pack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.pack-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border: 1px solid rgba(96, 165, 250, 0.16);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(3, 7, 18, 0.92)), radial-gradient(circle at top left, rgba(47, 140, 255, 0.11), transparent 46%);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34), 0 0 26px rgba(47, 140, 255, 0.07);
    transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
}

    .pack-card::after {
        content: "";
        position: absolute;
        top: 0;
        left: 16%;
        width: 68%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(110, 231, 255, 0.75), transparent);
        box-shadow: 0 0 18px rgba(47, 140, 255, 0.55);
    }

    .pack-card:hover {
        transform: translateY(-5px);
        border-color: rgba(110, 231, 255, 0.36);
        box-shadow: 0 24px 62px rgba(0, 0, 0, 0.42), 0 0 34px rgba(47, 140, 255, 0.18);
    }

    .pack-card h3 {
        margin-bottom: 12px;
        color: var(--text-light);
        font-size: 1.35rem;
    }

    .pack-card p {
        margin-bottom: 7px;
        color: var(--text-muted);
        font-size: 0.92rem;
    }

        .pack-card p span {
            color: var(--text-light);
            font-weight: 700;
        }

.pack-price {
    margin-top: 14px;
    color: var(--premium-cyan);
    font-size: 1.22rem;
    font-weight: 850;
    text-shadow: 0 0 12px rgba(110, 231, 255, 0.5), 0 0 28px rgba(47, 140, 255, 0.24);
}

.pack-button {
    width: 100%;
    margin-top: 16px;
}

/* =========================================================
   ACCORDION
========================================================= */

.accordion {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: transparent;
}

.accordion-item {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, 0.14);
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.74), rgba(3, 7, 18, 0.86));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24), 0 0 18px rgba(47, 140, 255, 0.055);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

    .accordion-item:hover {
        border-color: rgba(47, 140, 255, 0.32);
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3), 0 0 24px rgba(47, 140, 255, 0.14);
    }

.accordion-button {
    width: 100%;
    padding: 1rem 1.15rem;
    color: var(--text-light);
    font-weight: 800;
    letter-spacing: 0.02em;
    border: none;
    border-bottom: 1px solid rgba(96, 165, 250, 0.12);
    background: linear-gradient(180deg, rgba(15, 32, 61, 0.76), rgba(8, 15, 30, 0.82));
    box-shadow: none;
    transition: background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

    .accordion-button:not(.collapsed) {
        color: #ffffff;
        background: linear-gradient(90deg, rgba(47, 140, 255, 0.2), rgba(15, 23, 42, 0.7));
        box-shadow: inset 0 -1px 0 rgba(110, 231, 255, 0.18), 0 0 22px rgba(47, 140, 255, 0.12);
    }

    .accordion-button:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(47, 140, 255, 0.34), 0 0 22px rgba(47, 140, 255, 0.18);
    }

.accordion-body {
    padding: 1rem 1.25rem;
    color: var(--text-main);
    font-size: 0.95rem;
    border-top: 1px solid rgba(96, 165, 250, 0.1);
    background: rgba(3, 7, 18, 0.42);
}

/* =========================================================
   NOTIFICATION BUBBLE
========================================================= */

.notification-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    margin-left: 6px;
    padding: 4px 7px;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 850;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--premium-blue), var(--premium-cyan));
    box-shadow: 0 0 12px rgba(47, 140, 255, 0.55), 0 0 24px rgba(110, 231, 255, 0.24);
}

/* =========================================================
   UPLOADER
========================================================= */

.sakura-uploader {
    position: relative;
    display: inline-block;
    isolation: isolate;
    overflow: hidden;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top left, rgba(47, 140, 255, 0.14), transparent 42%), linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(3, 7, 18, 0.94));
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.42), 0 0 32px rgba(47, 140, 255, 0.12);
}

    .sakura-uploader::before {
        content: "";
        position: absolute;
        inset: -60%;
        z-index: -1;
        background: conic-gradient( from 0deg, transparent, rgba(47, 140, 255, 0.18), rgba(110, 231, 255, 0.14), transparent );
        animation: uploaderRotate 7s linear infinite;
    }

.sakura-upload-btn {
    z-index: 2;
    padding: 14px 32px;
    font-size: 1.05rem;
    border: 1px solid rgba(110, 231, 255, 0.32);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #0f5fd7 0%, #1282ff 54%, #6ee7ff 142%);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.24);
}

    .sakura-upload-btn:hover {
        transform: translateY(-2px) scale(1.025);
    }

.sakura-petals::before,
.sakura-petals::after {
    content: "";
    position: absolute;
    top: -12%;
    left: 46%;
    width: 9px;
    height: 9px;
    opacity: 0.82;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(110, 231, 255, 0.9) 28%, transparent 72%);
    filter: blur(1px);
    animation: dataFall 6s linear infinite;
}

.sakura-petals::after {
    left: 72%;
    width: 7px;
    height: 7px;
    opacity: 0.62;
    animation-delay: 2.7s;
}

/* =========================================================
   REPORT PAGE HELPERS
========================================================= */

.container input[type="text"],
.container input[type="datetime-local"],
.container select {
    max-width: 420px;
    margin-bottom: 16px;
}

.container p {
    margin: 6px 0 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================================
   FOCUS ACCESSIBILITY
========================================================= */

.btn:focus-visible,
button:focus-visible,
a:focus-visible,
.nav-link:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.btn-close:focus-visible,
.accordion-button:focus-visible {
    outline: 2px solid rgba(110, 231, 255, 0.88);
    outline-offset: 3px;
}

/* =========================================================
   ANIMATIONS
========================================================= */

@@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(8px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@@keyframes fadeInToast {
    from {
        opacity: 0;
        transform: translateX(24px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@@keyframes pageSheen {
    0%,
    100% {
        opacity: 0.25;
        transform: translateX(-12%);
    }

    50% {
        opacity: 0.65;
        transform: translateX(12%);
    }
}

@@keyframes uploaderRotate {
    to {
        transform: rotate(360deg);
    }
}

@@keyframes dataFall {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0) rotate(0deg);
    }

    12% {
        opacity: 0.85;
    }

    50% {
        transform: translateY(145px) translateX(18px) rotate(140deg);
    }

    100% {
        opacity: 0;
        transform: translateY(310px) translateX(-34px) rotate(360deg);
    }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@@media (max-width: 992px) {
    :root {
        --sidebar-width: 246px;
    }

    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        width: calc(100% - 24px);
        margin: 18px auto;
        padding: 22px;
    }

    .toggle-button-wrapper:not(.sidebar-collapsed) {
        left: calc(var(--sidebar-width) + 14px);
    }
}

@@media (max-width: 768px) {
    .container h1,
    .container h3 {
        font-size: 1.22rem;
    }

    .table-responsive {
        padding: 0;
        border-radius: var(--radius-sm);
    }

    .container input,
    .container select,
    .container input[type="text"],
    .container input[type="datetime-local"],
    .container select {
        max-width: 100%;
    }

    .container button {
        width: 100%;
        margin-bottom: 10px;
    }

    .modal-content {
        padding: 24px 18px;
        border-radius: var(--radius-md);
    }

    .modal-buttons {
        flex-direction: column;
    }

        .modal-buttons .btn {
            width: 100%;
        }

    .blazored-toast-container {
        left: 14px !important;
        right: 14px !important;
        top: 14px !important;
    }

    .blazored-toast {
        min-width: 0;
        width: 100%;
        max-width: none;
    }
}

@@media (max-width: 520px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        width: calc(100% - 18px);
        margin: 12px auto;
        padding: 18px;
        border-radius: var(--radius-md);
    }

    .pack-grid {
        grid-template-columns: 1fr;
    }

    .sakura-uploader {
        width: 100%;
        padding: 28px 18px;
    }

    .sidebar {
        width: min(86vw, 280px);
    }
}

@@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
/* ======================================================
   ROLE GATE / LOGIN ERROR FIX
   Makes authorization errors match the admin page theme
   ====================================================== */

.login-error,
.login-error-container,
.rolegate-error,
.access-denied,
.not-authorized,
.authorization-error {
    width: min(720px, calc(100% - 28px));
    margin: 80px auto;
    padding: 28px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #dbeafe;
    text-align: center;
    border-radius: 26px;
    border: 1px solid rgba(96, 165, 250, 0.18);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(3, 7, 18, 0.96)), radial-gradient(circle at top left, rgba(47, 140, 255, 0.14), transparent 46%);
    box-shadow: 0 28px 84px rgba(0, 0, 0, 0.58), 0 0 40px rgba(47, 140, 255, 0.14);
    backdrop-filter: none;
    backdrop-filter: none;
}

    .login-error::before,
    .login-error-container::before,
    .rolegate-error::before,
    .access-denied::before,
    .not-authorized::before,
    .authorization-error::before {
        content: "";
        position: absolute;
        top: 0;
        left: 16%;
        width: 68%;
        height: 1px;
        pointer-events: none;
        background: linear-gradient( 90deg, transparent, rgba(110, 231, 255, 0.78), transparent );
        box-shadow: 0 0 22px rgba(47, 140, 255, 0.68);
    }

    .login-error::after,
    .login-error-container::after,
    .rolegate-error::after,
    .access-denied::after,
    .not-authorized::after,
    .authorization-error::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        background: radial-gradient(420px 220px at 50% 0%, rgba(255, 93, 108, 0.12), transparent 64%), linear-gradient(115deg, transparent 0%, rgba(110, 231, 255, 0.035) 48%, transparent 74%);
    }

    .login-error h1,
    .login-error h2,
    .login-error h3,
    .login-error h4,
    .login-error-container h1,
    .login-error-container h2,
    .login-error-container h3,
    .login-error-container h4,
    .rolegate-error h1,
    .rolegate-error h2,
    .rolegate-error h3,
    .rolegate-error h4,
    .access-denied h1,
    .access-denied h2,
    .access-denied h3,
    .access-denied h4,
    .not-authorized h1,
    .not-authorized h2,
    .not-authorized h3,
    .not-authorized h4,
    .authorization-error h1,
    .authorization-error h2,
    .authorization-error h3,
    .authorization-error h4 {
        margin: 0 0 10px;
        color: #f8fbff;
        font-size: clamp(24px, 3vw, 38px);
        line-height: 1.05;
        font-weight: 950;
        letter-spacing: -0.045em;
        text-shadow: 0 0 18px rgba(47, 140, 255, 0.3), 0 0 36px rgba(47, 140, 255, 0.12);
    }

    .login-error p,
    .login-error-container p,
    .rolegate-error p,
    .access-denied p,
    .not-authorized p,
    .authorization-error p {
        max-width: 560px;
        margin: 8px auto 0;
        color: #8ea3bd;
        font-size: 14px;
        line-height: 1.6;
    }

    .login-error a,
    .login-error button,
    .login-error-container a,
    .login-error-container button,
    .rolegate-error a,
    .rolegate-error button,
    .access-denied a,
    .access-denied button,
    .not-authorized a,
    .not-authorized button,
    .authorization-error a,
    .authorization-error button {
        min-height: 42px;
        margin-top: 18px;
        padding: 10px 15px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: #ffffff !important;
        text-decoration: none !important;
        font-weight: 850;
        border-radius: 12px;
        border: 1px solid rgba(110, 231, 255, 0.42);
        background: linear-gradient(135deg, #0f5fd7 0%, #1282ff 54%, #6ee7ff 145%);
        box-shadow: 0 16px 38px rgba(18, 130, 255, 0.26), 0 0 24px rgba(47, 140, 255, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
        cursor: pointer;
        transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease;
    }

        .login-error a:hover,
        .login-error button:hover,
        .login-error-container a:hover,
        .login-error-container button:hover,
        .rolegate-error a:hover,
        .rolegate-error button:hover,
        .access-denied a:hover,
        .access-denied button:hover,
        .not-authorized a:hover,
        .not-authorized button:hover,
        .authorization-error a:hover,
        .authorization-error button:hover {
            transform: translateY(-2px);
            filter: brightness(1.06);
            box-shadow: 0 20px 48px rgba(18, 130, 255, 0.32), 0 0 30px rgba(47, 140, 255, 0.24);
        }

    /* If the error is just raw text inside a div, this gives it a title-like feel */
    .login-error:not(:has(h1, h2, h3, h4))::after,
    .login-error-container:not(:has(h1, h2, h3, h4))::after {
        content: "Access restricted";
        display: block;
        position: relative;
        z-index: 1;
        margin-bottom: 8px;
        color: #f8fbff;
        font-size: 28px;
        font-weight: 950;
        letter-spacing: -0.04em;
    }

.remedii-startup-loader {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: radial-gradient(circle at 18% 12%, rgba(47, 140, 255, 0.18), transparent 34%), radial-gradient(circle at 82% 78%, rgba(14, 165, 233, 0.12), transparent 34%), linear-gradient(135deg, #020617 0%, #050914 48%, #020617 100%);
    color: #dbeafe;
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

.remedii-startup-logo {
    width: 190px;
    max-width: 70vw;
    border-radius: 18px;
    filter: drop-shadow(0 0 16px rgba(47, 140, 255, 0.46)) drop-shadow(0 0 38px rgba(47, 140, 255, 0.18));
}

.remedii-startup-text {
    color: #8ea3bd;
    font-size: 14px;
    font-weight: 750;
    letter-spacing: 0.04em;
}

/* =========================================================
   FAST SIDEBAR / BURGER
   ========================================================= */

/* Animate only transform — never the large shadow */
.sidebar {
    transition: transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    will-change: transform;
    contain: layout paint;
}

    /* Keep the existing collapse behaviour */
    .sidebar.collapsed {
        transform: translate3d(-100%, 0, 0);
    }

/*
   Do not animate `left`.
   Keep left fixed and move the button using GPU-friendly transform.
*/
.toggle-button-wrapper {
    left: 18px !important;
    transition: transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    will-change: transform;
}

    .toggle-button-wrapper.sidebar-collapsed {
        transform: translate3d(0, 0, 0);
    }

    .toggle-button-wrapper:not(.sidebar-collapsed) {
        transform: translate3d(calc(var(--sidebar-width) + 2px), 0, 0);
    }

/* Remove expensive burger effects */
.sidebar-toggler,
.sidebar-open-button {
    filter: none !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26), 0 0 12px rgba(47, 140, 255, 0.08) !important;
    transition: transform 120ms ease, border-color 120ms ease !important;
    will-change: transform;
}

    /* Disable the animated shine sweeping over the burger */
    .sidebar-toggler::before,
    .sidebar-open-button::before {
        display: none !important;
    }

    /* Keep a light hover effect without filter/shadow repainting */
    .sidebar-toggler:hover,
    .sidebar-open-button:hover {
        filter: none !important;
        transform: scale(1.03) !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26), 0 0 12px rgba(47, 140, 255, 0.08) !important;
    }

    /* Immediate button press feedback */
    .sidebar-toggler:active,
    .sidebar-open-button:active {
        transform: scale(0.96) !important;
    }
body::after {
    animation: none !important;
    opacity: 0.35;
}
/* =========================================================
   REMEDII LOW-COST UI OVERRIDES
   ========================================================= */

html {
    scroll-behavior: auto !important;
}

body {
    background-attachment: scroll !important;
}

    body::after {
        animation: none !important;
        opacity: 0.35;
    }

.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    animation: none !important;
    transition: border-color 140ms ease !important;
}

    .container:hover,
    .container-sm:hover,
    .container-md:hover,
    .container-lg:hover,
    .container-xl:hover,
    .container-xxl:hover {
        box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5), 0 0 58px rgba(47, 140, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.025) !important;
    }

button {
    transition: transform 120ms ease, border-color 120ms ease !important;
}

    button::before {
        display: none !important;
    }

    button:hover {
        filter: none !important;
    }

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    body {
        background-attachment: scroll !important;
    }
}