﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/* ------------------------------------------- */
/*   REWAIVER SaaS DASHBOARD - MODERN THEME    */
/* ------------------------------------------- */

/* =============================== */
/* Global                          */
/* =============================== */

body {
    background: #f5f7fb;
    color: #1f2937;
    font-family: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
}

/* =============================== */
/* Loading                         */
/* =============================== */

.loading-container {
    text-align: center;
    padding: 4rem;
    font-size: 1.25rem;
    color: #6b7280;
}

/* =============================== */
/* Dashboard Layout                */
/* =============================== */

.dashboard-container {
    padding: 2rem;
}

/* =============================== */
/* Summary Cards                   */
/* =============================== */

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.summary-card {
    background: #ffffff;
    padding: 1.75rem 1.6rem;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.summary-title {
    font-size: 0.85rem;
    color: #6b7280;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.summary-value {
    margin-top: 0.5rem;
    font-size: 2.2rem;
    font-weight: 800;
    color: #111827;
}

/* =============================== */
/*        ACTIVITY FEED            */
/* =============================== */

.activity-section {
    margin-top: 2rem;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 1rem auto;
    text-align: center;
}

    .activity-header h3 {
        margin: 0;
        font-size: 1.25rem;
        font-weight: 800;
        color: #111827;
    }

.activity-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
}

    .activity-link:hover {
        text-decoration: underline;
    }

.activity-feed {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    padding: 0.5rem 0;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 1rem 1.4rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}


    .activity-item:last-child {
        border-bottom: none;
    }

    .activity-item:hover {
        background: #f9fafb;
    }

    .activity-item.is-new {
        background: #eef2ff;
    }

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #4f46e5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
    opacity: 0.9;
}


.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 0.95rem;
    color: #111827;
    line-height: 1.4;
}

.activity-meta {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 2px;
}

.activity-empty {
    padding: 2rem;
    text-align: center;
    font-size: 0.95rem;
    color: #6b7280;
}

/* ---------- ACTIVITY ROW LAYOUT ---------- */

.activity-top {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 18px;
}


/* Main sentence */
.activity-text {
    font-size: 0.95rem;
    color: #111827;
    line-height: 1.5;
}


/* Phone number */
.activity-phone {
    display: inline-block;
    margin: 0 6px;
    font-size: 0.8rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #9ca3af;
}


/* Time emphasis */
.activity-time {
    text-align: right;
    font-weight: 800;
    font-size: 1.15rem;
    color: #111827;
    white-space: nowrap;
}

.activity-date {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin-top: 2px;
}
/* ---------- ACTIVITY GRID LAYOUT ---------- */

.activity-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
}

/* LEFT COLUMN */
.activity-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Name */
.activity-name {
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
}

/* Phone number */
.activity-phone {
    font-size: 0.85rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #6b7280;
}

/* Waiver */
.activity-waiver {
    font-size: 0.85rem;
    color: #374151;
}

/* RIGHT COLUMN */
.activity-datetime {
    text-align: right;
    white-space: nowrap;
}

/* Time */
.activity-time {
    font-size: 1.15rem;
    font-weight: 800;
    color: #111827;
}

/* Date */
.activity-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin-top: 2px;
}
/* =============================== */
/*   ACTIVITY SLIDE-IN ANIMATION   */
/* =============================== */

.activity-item {
    position: relative;
    overflow: hidden;
}

    /* Initial state for new items */
    .activity-item.is-new {
        animation: slideInFade 0.45s cubic-bezier(0.16, 1, 0.3, 1);
        background: #eef2ff;
    }

/* Keyframes */
@keyframes slideInFade {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.activity-search {
    width: 100%;
    max-width: 100%;
    padding: 0.81rem 0.75rem;
    margin: 0 auto 1.55rem auto; /* 👈 CENTER IT */
    display: flex;
    justify-content: center; /* 👈 center horizontally */
    align-items: center;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.9rem;
    font-family: inherit;
    background: #ffffff;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: all 0.18s ease;
}


/* Tablets & small laptops */
@media (min-width: 768px) {
    .activity-search {
        max-width: 520px;
    }
}

/* Standard desktops */
@media (min-width: 1024px) {
    .activity-search {
        max-width: 720px;
    }
}

/* Large / ultrawide monitors */
@media (min-width: 1440px) {
    .activity-search {
        max-width: 960px;
    }
}



.minors-expand {
    margin-left: 2.5rem;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-left: 3px solid #3b82f6;
    border-radius: 4px;
}

.minor-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.9rem;
}

.minors-header {
    font-weight: 600;
    margin-bottom: 4px;
}

.expand-indicator {
    margin-left: 6px;
    font-size: 0.85rem;
    opacity: 0.7;
}



/* =============================== */
/*         CREATE WAIVER UI        */
/* =============================== */
.waiver-container {
    max-width: 900px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.field-palette {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.palette-item {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: .2s;
}

    .palette-item:hover {
        background: #e0e7ff;
    }

.field-item {
    background: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #d9ddf7;
    margin-bottom: 12px;
}

.field-header {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.field-edit {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e4e6f9;
}

.field-handle {
    font-size: 18px;
    opacity: 0.5;
    cursor: grab;
}



/* Dragging highlight */
.draggable-field.dragging {
    opacity: 0.4;
}

/* Delete button (in header row) */
.delete-btn {
    margin-left: auto;
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #b91c1c;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
}

    .delete-btn:hover {
        background: #fecaca;
    }

/* Settings toggle row */
.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Switch UI */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 22px;
}

    .switch input {
        display: none;
    }

.slider {
    position: absolute;
    cursor: pointer;
    background-color: #ccc;
    border-radius: 34px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 2px;
        bottom: 2px;
        background-color: white;
        border-radius: 50%;
        transition: .4s;
    }

input:checked + .slider {
    background-color: #4f46e5;
}

    input:checked + .slider:before {
        transform: translateX(24px);
    }

.quill-container {
    height: 420px; /* MUCH bigger writing space */
    background: #ffffff;
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    margin-bottom: 18px;
    padding: 0; /* Keep Quill toolbar flush */
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.ql-editor {
    min-height: 360px !important; /* Ensures no collapsing */
    padding: 18px !important;
    font-size: 1rem;
    line-height: 1.55;
}

.ql-toolbar.ql-snow {
    border-radius: 10px 10px 0 0;
}

.ql-container.ql-snow {
    border-radius: 0 0 10px 10px;
}





/* ------------------------------------------- */
/*            WAIVER PAGE HEADER               */
/* ------------------------------------------- */

.waiver-page-header {
    text-align: center;
    margin: 1.5rem 0 2rem 0;
    padding: 2rem 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #eef2ff, #f5f7ff);
    border: 1px solid #d9ddf7;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

    .waiver-page-header h2 {
        font-size: 2rem;
        font-weight: 800;
        margin: 0.2rem 0 0.4rem 0;
        color: #1f2937;
        letter-spacing: -0.5px;
    }

    .waiver-page-header .subtext {
        color: #6b7280;
        font-size: 1rem;
        margin-top: 0.3rem;
    }

.header-icon {
    font-size: 2.4rem;
    margin-bottom: 0.6rem;
    opacity: 0.9;
}





/* =============================== */
/*        WAIVERS PAGE             */
/* =============================== */

.page-container {
    padding: 2rem;
}

/* Header */
.waivers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.8rem;
}

    .waivers-header h2 {
        font-size: 1.75rem;
        font-weight: 800;
        margin: 0;
        letter-spacing: -0.4px;
        color: #111827;
    }

    .waivers-header .subtitle {
        font-size: 0.95rem;
        color: #6b7280;
        margin-top: 0.2rem;
    }

/* Card wrapper */
.table-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    padding: 1.2rem 1.4rem;
    overflow: visible; /* 🔑 KEY FIX */
}


/* Table */
.rw-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* 🔑 CRITICAL */
}


    /* Lock Actions column width */
    .rw-table th.actions-col,
    .rw-table td.actions-col {
        width: 160px;
        min-width: 160px;
        text-align: right;
    }


    .rw-table thead th {
        text-align: left;
        font-size: 0.75rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #6b7280;
        padding: 0.9rem 0.75rem;
        border-bottom: 1px solid #e5e7eb;
    }

    .rw-table tbody td {
        padding: 1rem 0.75rem;
        border-bottom: 1px solid #f0f2f5;
        vertical-align: middle;
        font-size: 0.95rem;
    }

    .rw-table tbody tr:hover {
        background: #f9fafb;
    }

    /* Title emphasis */
    .rw-table tbody td strong {
        font-weight: 700;
        color: #111827;
    }

/* Preview column */
.preview-col {
    color: #6b7280;
    font-size: 0.9rem;
    max-width: 420px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Action buttons */
.table-btn {
    border: none;
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
}

    .table-btn.edit {
        background: #eef2ff;
        color: #3730a3;
        margin-right: 0.4rem;
    }

        .table-btn.edit:hover {
            background: #e0e7ff;
        }

    .table-btn.delete {
        background: #fee2e2;
        color: #991b1b;
    }

        .table-btn.delete:hover {
            background: #fecaca;
        }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3.5rem 1rem;
    color: #6b7280;
}

    .empty-state p {
        font-size: 1.05rem;
        margin-bottom: 1.2rem;
    }

/* Primary button polish */
.primary-btn {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.65rem 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
    box-shadow: 0 4px 14px rgba(79,70,229,0.35);
}

    .primary-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(79,70,229,0.45);
    }



.post-sign-card {
    background: linear-gradient(135deg, #f8faff, #eef2ff);
    border: 1px solid #c7d2fe;
    border-radius: 14px;
    padding: 1.4rem 1.5rem;
    margin-top: 1.8rem;
    box-shadow: 0 6px 18px rgba(79,70,229,0.12);
}

.post-sign-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 0.8rem;
}

.post-sign-icon {
    font-size: 1.9rem;
    line-height: 1;
}

.post-sign-header h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #1e3a8a;
}

.post-sign-subtext {
    margin: 0.15rem 0 0 0;
    font-size: 0.85rem;
    color: #475569;
}

/* Textarea */
.post-sign-textarea {
    width: 100%;
    min-height: 120px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #c7d2fe;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    background: #ffffff;
    transition: all 0.18s ease;
}

    .post-sign-textarea::placeholder {
        color: #9ca3af;
    }

    .post-sign-textarea:focus {
        outline: none;
        border-color: #4f46e5;
        box-shadow: 0 0 0 4px rgba(79,70,229,0.18);
    }

/* Hint text */
.post-sign-hint {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: #475569;
}


/* =============================== */
/*        MINORS SECTION           */
/* =============================== */

.minors-section {
    margin-top: 1.6rem;
    padding: 1.4rem;
    border-radius: 14px;
    background: #f8faff;
    border: 1px solid #dbe3ff;
}

    .minors-section h4 {
        margin-bottom: 1rem;
        font-size: 1.05rem;
        font-weight: 800;
        color: #1e3a8a;
    }

/* Individual minor card */
.minor-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: start;
    background: #ffffff;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    margin-bottom: 0.9rem;
}

.minor-remove-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #b91c1c;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 0.7rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}

    .minor-remove-btn .oi {
        font-size: 0.85rem;
    }

    .minor-remove-btn:hover {
        background: #fee2e2;
        border-color: #fda4af;
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(185,28,28,0.18);
    }

.minor-add-btn {
    margin-top: 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    border: 1px dashed #c7d2fe;
    color: #3730a3;
    padding: 0.65rem 1.1rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .minor-add-btn .oi {
        font-size: 0.9rem;
    }

    .minor-add-btn:hover {
        background: linear-gradient(135deg, #e0e7ff, #dbeafe);
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(79,70,229,0.22);
    }


@media (max-width: 640px) {
    .minor-card {
        grid-template-columns: 1fr;
    }

    .minor-remove-btn {
        justify-self: flex-end;
        margin-top: 0.3rem;
    }
}



/* =============================== */
/*   MOBILE SIGNATURE CARDS        */
/* =============================== */

.signature-cards {
    display: none;
}

.signature-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.2rem 1.25rem;
    box-shadow: 0 8px 26px rgba(0,0,0,0.08);
    margin-bottom: 1rem;
    cursor: pointer;
}

.sig-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.sig-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #111827;
}

.sig-date {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 600;
}

.sig-meta {
    font-size: 0.9rem;
    color: #374151;
    display: grid;
    gap: 4px;
    margin-bottom: 0.6rem;
}

.sig-minors-badge {
    display: inline-block;
    background: #fff7ed;
    color: #9a3412;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.6rem;
}

.actions-btn.full {
    width: 100%;
    margin-top: 0.5rem;
}


/* =============================== */
/*   RESPONSIVE SWITCH             */
/* =============================== */

@media (max-width: 768px) {

    /* Hide desktop table */
    .rw-table {
        display: none;
    }

    /* Show mobile cards */
    .signature-cards {
        display: block;
    }

    /* Reduce padding */
    .page-container {
        padding: 1.2rem;
    }

    .table-card {
        padding: 0;
        background: transparent;
        box-shadow: none;
    }
}




/* =============================== */
/*        ACTIONS BUTTON           */
/* =============================== */

.actions-col {
    text-align: right;
}

.actions-btn {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .15s ease;
}

    .actions-btn:hover {
        background: #e5e7eb;
        color: #111827;
    }

    .actions-btn .caret {
        font-size: 0.65rem;
        opacity: 0.7;
    }

/* Ensure dropdown aligns with button */
/* Ensure dropdown aligns with button */
.action-menu {
    top: calc(100% + 6px);
}




/* =============================== */
/*        ACTION DROPDOWN          */
/* =============================== */


.action-dropdown {
    position: relative;
    display: inline-block;
}

.action-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    padding: 0.4rem 0;
    z-index: 2000;
    border: 1px solid #e5e7eb;
}


    .action-menu button {
        width: 100%;
        text-align: left;
        padding: 0.6rem 0.9rem;
        font-size: 0.9rem;
        background: none;
        border: none;
        cursor: pointer;
        color: #374151;
        font-weight: 500;
    }

        .action-menu button:hover {
            background: #f3f4f6;
        }

    .action-menu .danger {
        color: #b91c1c;
        font-weight: 600;
    }

        .action-menu .danger:hover {
            background: #fee2e2;
        }

.menu-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.3rem 0;
}



/* ================================ */
/*     QR CODE STUFF    */
/* ================================ */
.waiver-qr-card {
    max-width: 420px;
    margin: 3rem auto;
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    text-align: center;
}



.qr-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 1.8rem;
}

    /* Primary stays dominant */
    .qr-actions .primary-btn {
        padding: 0.75rem 1.6rem;
        font-size: 0.95rem;
        min-width: 160px;
    }

/* Secondary matches size + polish */
.secondary-btn {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1.6rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: all 0.18s ease;
}

    .secondary-btn:hover {
        background: #f9fafb;
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    }


.qr-image {
    width: 260px;
    height: 260px;
    margin: 1.5rem auto;
}



.qr-url {
    margin-top: 1.2rem;
    font-size: 0.85rem;
    color: #6b7280;
}




/* =============================== */
/*   PUBLIC WAIVER PAGE            */
/* =============================== */


/* Space out waiver fields */
.waiver-form {
    display: flex;
    flex-direction: column;
    gap: 1.6rem; /* main spacing between fields */
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem; /* spacing between label and control */
}


.waiver-public-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #eef2ff, #f5f7fb);
    padding: 1.5rem;
}

.waiver-card {
    background: #ffffff;
    max-width: 640px;
    width: 100%;
    padding: 2.2rem;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
    text-align: center;
}

    .waiver-card h2 {
        font-size: 1.8rem;
        font-weight: 800;
        margin-bottom: .6rem;
        color: #111827;
    }

.subtitle {
    color: #6b7280;
    margin-bottom: 1.6rem;
}

.waiver-input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    font-size: 1rem;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    margin-bottom: 1.2rem;
}

.primary-btn.full {
    width: 100%;
    margin-top: 2.5rem;
    padding: 0.8rem;
    font-size: 1rem;
}

.waiver-content {
    text-align: left;
    max-height: 320px;
    overflow-y: auto;
    padding: 1.2rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin: 1.4rem 0;
    font-size: 0.95rem;
    background: #fafafa;
}

/* Spinner */
.spinner-block {
    text-align: center;
}

.spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #4f46e5;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Confirmation */
.confirmation .checkmark {
    font-size: 3.2rem;
    color: #22c55e;
    margin-bottom: .6rem;
}

.confirmation p {
    color: #374151;
}

.confirmation .date {
    color: #6b7280;
    font-size: 0.9rem;
}


/* Paragraph textarea */
.waiver-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
}

    .waiver-textarea:focus {
        outline: none;
        border-color: #4f46e5;
        box-shadow: 0 0 0 3px rgba(79,70,229,0.15);
    }

/* Checkbox styling */
.checkbox-center {
    display: flex;
    justify-content: center;
}

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    user-select: none;
    font-size: 1rem;
    line-height: 1.4;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fafafa;
    transition: all 0.18s ease;
}

    /* Hide native checkbox */
    .checkbox-row input {
        display: none;
    }

/* Bigger checkbox box */
.checkbox-custom {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    border: 2px solid #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    transition: all 0.18s ease;
    flex-shrink: 0;
}

/* Hover */
.checkbox-row:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

/* Checked state */
.checkbox-row input:checked + .checkbox-custom {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    border-color: #4f46e5;
    box-shadow: 0 4px 10px rgba(79,70,229,0.35);
}

    .checkbox-row input:checked + .checkbox-custom::after {
        content: "✓";
        color: white;
        font-size: 16px;
        font-weight: 800;
        line-height: 1;
    }

/* Label text */
.checkbox-label {
    color: #374151;
    font-weight: 500;
}

.checkbox-label {
    color: #374151;
}

.required-star {
    color: #e53935;
    margin-left: 4px;
}

.waiver-warning {
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.4;
}


/* ================================ */
/*     PREMIUM TOP NAVBAR STYLE     */
/* ================================ */

/* Hide hamburger on desktop */
@media (min-width: 641px) {
    .navbar-toggler {
        display: none !important;
    }
}


.top-row {
    position: sticky;
    top: 0;
    z-index: 2000;
    height: 3.8rem;
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(228, 231, 240, 0.9);
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}


/* Branding */
.navbar-brand {
    font-weight: 800;
    font-size: 1.35rem;
    color: #111827 !important;
    letter-spacing: -0.6px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity .2s ease;
}

    .navbar-brand:hover {
        opacity: 0.85;
    }

/* Optional Logo Badge Before the Name */
.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 3px 8px rgba(59,130,246,0.4);
}

/* Mobile hamburger button */
.navbar-toggler {
    background: #eef0f5;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: .35rem .55rem;
    transition: all .2s ease;
}

    .navbar-toggler:hover {
        background: #e5e7eb;
        border-color: #cbd5e1;
    }

/* Hamburger icon color */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(55,65,81,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}



/* =============================== */
/*      PREMIUM SAAS SIDEBAR       */
/* =============================== */

.nav-scrollable {
    width: 260px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
    border-right: 1px solid #e4e6ef;
    padding: 1.2rem;
    position: sticky;
    top: 3.5rem;
    height: calc(100vh - 3.5rem);
    overflow-y: auto;
    box-shadow: 4px 0 16px rgba(0,0,0,0.06);
    backdrop-filter: blur(10px);
    transition: all .3s ease;
}

/* Mobile slide-in */
@media (max-width: 640px) {
    .nav-scrollable {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        transform: translateX(-100%);
        z-index: 2000;
        width: 80%;
        max-width: 260px;
        padding-top: 1rem;
        box-shadow: 4px 0 22px rgba(0,0,0,0.25);
        background: rgba(255,255,255,0.92);
        backdrop-filter: blur(20px);
    }

        .nav-scrollable.show {
            transform: translateX(0);
        }
}

/* Sidebar Branding */
.navbar-brand {
    font-weight: 800;
    font-size: 1.35rem;
    color: #111827 !important;
    letter-spacing: -0.5px;
    text-transform: none;
}

/* Section Label */
.nav-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #9ca3af;
    margin: 1.25rem 0 .5rem 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Nav Items */
.nav-item {
    margin-bottom: .5rem;
}

    .nav-item .nav-link {
        display: flex;
        align-items: center;
        padding: 0.8rem 1rem;
        border-radius: 12px;
        font-size: 0.95rem;
        font-weight: 600;
        color: #374151;
        gap: 10px;
        transition: all .2s ease;
        cursor: pointer;
    }

        /* Hover effect */
        .nav-item .nav-link:hover {
            background: #eef2ff;
            color: #3730a3;
            transform: translateX(4px);
            box-shadow: 0 3px 8px rgba(0,0,0,0.06);
        }

        /* Active item — premium pill highlight */
        .nav-item .nav-link.active {
            background: linear-gradient(90deg, #e0e7ff, #d6e4ff);
            color: #1e3a8a;
            font-weight: 700;
            box-shadow: 0 3px 10px rgba(0,0,0,0.08);
            transform: translateX(5px);
        }

/* Icons */
.oi {
    font-size: 1.15rem;
    opacity: .75;
}

/* Divider Line */
.sidebar-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 1rem 0;
}






.validation-message {
    color: red;
}

/* =============================== */
/*      FATAL ERROR OVERLAY        */
/* =============================== */

#blazor-error-ui {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
}

    /* 🔑 When Blazor shows it, force flex centering */
    #blazor-error-ui[style*="display: block"] {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }



    /* Center card */
    #blazor-error-ui .error-card {
        background: #ffffff;
        border-radius: 18px;
        max-width: 520px;
        width: 90%;
        padding: 2.2rem 2.4rem;
        box-shadow: 0 25px 60px rgba(0,0,0,0.45);
        text-align: center;
    }

    /* Icon */
    #blazor-error-ui .error-icon {
        font-size: 3.5rem;
        margin-bottom: 1rem;
    }

    /* Title */
    #blazor-error-ui h2 {
        margin: 0 0 0.6rem 0;
        font-size: 1.75rem;
        font-weight: 800;
        color: #b91c1c;
    }

    /* Message */
    #blazor-error-ui p {
        font-size: 1rem;
        color: #374151;
        margin-bottom: 1.6rem;
        line-height: 1.5;
    }

    /* Actions */
    #blazor-error-ui .error-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    /* Support button */
    #blazor-error-ui .support-btn {
        background: linear-gradient(135deg, #dc2626, #b91c1c);
        color: white;
        border: none;
        border-radius: 12px;
        padding: 0.85rem 1.2rem;
        font-size: 1rem;
        font-weight: 700;
        cursor: pointer;
        text-decoration: none;
        box-shadow: 0 6px 18px rgba(220,38,38,0.45);
    }

        #blazor-error-ui .support-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 10px 26px rgba(220,38,38,0.55);
        }

    /* Reload link */
    #blazor-error-ui .reload-btn {
        background: #f3f4f6;
        border: 1px solid #e5e7eb;
        color: #374151;
        border-radius: 10px;
        padding: 0.65rem 1rem;
        font-weight: 600;
        cursor: pointer;
    }

    /* Remove dismiss option entirely */
    #blazor-error-ui .dismiss {
        display: none;
    }

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75); /* dark overlay */
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
}

.modal-card {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 460px;
    padding: 2rem;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    animation: modalFadeIn 0.25s ease-out;
}

    .modal-card .form-input {
        width: 100%;
        padding: 0.75rem 0.9rem;
        margin-bottom: 1rem;
        font-size: 0.95rem;
        border-radius: 10px;
        border: 1px solid #d1d5db;
        font-family: inherit;
    }

        .modal-card .form-input:focus {
            outline: none;
            border-color: #4f46e5;
            box-shadow: 0 0 0 3px rgba(79,70,229,0.18);
        }


.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 1.4rem;
}


@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


.primary-btn.danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.warning-text {
    color: #b91c1c;
    font-size: 0.9rem;
}




/* ================================ */
/*     QR PAGE ENHANCEMENTS         */
/* ================================ */

.qr-header {
    margin-bottom: 1.2rem;
}

.qr-icon {
    font-size: 2.2rem;
    margin-bottom: 0.4rem;
}

.qr-link-card {
    margin-top: 1.2rem;
    padding: 1rem 1.2rem;
    background: #f8faff;
    border: 1px solid #dbe3ff;
    border-radius: 12px;
    text-align: left;
}

.qr-link-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}

.qr-link {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9rem;
    color: #4f46e5;
    word-break: break-all;
    text-decoration: none;
    font-weight: 600;
}

    .qr-link:hover {
        text-decoration: underline;
    }

.qr-link-hint {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #6b7280;
}



.minor-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.minor-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.minor-card .waiver-input {
    margin-bottom: 0;
}


