﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    --cs-bg: #ffffff;
    --cs-border: #e6e6e6;
    --cs-shadow: rgba(0, 0, 0, 0.1);
    --cs-radius: 0.75rem;
    --cs-transition: 0.3s ease;
    --cs-font: 'Oswald', sans-serif;
    --ras-primary: #0d57b5;
    --ras-secondary: #ffffff;
    --ras-overlay: rgba(15,16,18,.55);
    --ras-card-bg: #fff;
    --ras-ink: #0f1720;
    --ras-muted: #6b7280;
    --ras-border: #e5e7eb;
    --ras-primary-600: #0a4a99;
    --ras-focus: rgba(13,87,181,0.25);
    --ras-radius: 12px;
    --ras-shadow: 0 12px 40px rgba(0,0,0,.22);
    --gap: 12px;
    --pad: 16px;
    --input-h: 36px; /* compact input height */
    --font-sm: 14px;
    --font-xs: 12px;
}

.tooltip-text-clean {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    text-align: center;
    margin: 0;
    font-size: 0.9rem;
    -webkit-font-smoothing: always;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

img {
    pointer-events: none !important;
}

html, body {
    overflow-x: hidden;
    font-family: 'Oswald', sans-serif;
}

.am5exporting-menu {
    position: absolute !important;
    margin: 0 !important;
    transform: none !important;
}

/* And make sure the actual <ul> uses that same positioning */
a.am5exporting-list {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    transform: none !important;
}


a.am5exporting-icon {
    /* remove amCharts’ default background box */
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    /* flow with text baseline */
    display: inline-block !important;
    vertical-align: middle !important;
    /* bump size / color to match your <i> styling (optional) */
    opacity: unset !important;
    font-size: 18px !important;
    color: #000 !important;
}

/* 2) Position the menu container under the icon */
a.am5exporting-menu {
    position: absolute !important;
    top: 100% !important; /* drop below the icon */
    left: 0 !important; /* flush with the icon’s left edge */
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    z-index: 999 !important;
    /* style the popup background */
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    border-radius: 4px !important;
    
}

.action-icon {
    font-size: 1.5rem;
    color: #007bff;
    cursor: pointer;
    transition: color .2s, transform .2s;
}

    .action-icon:hover {
        color: #0056b3;
        transform: scale(1.1);
    }

    .action-icon.disabled {
        color: #ccc;
        cursor: default;
        transform: none;
    }

/* 3) Tidy up the list & items */
a.am5exporting-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

a.am5exporting-list.am5exporting-align-left {
    margin-left: 25px !important;
}

.am5exporting-list.am5exporting-align-left {
    margin-left: 25px !important;
}

a.am5exporting-item a {
    display: block !important;
    padding: 0.5rem 1rem !important;
    color: #333 !important;
    text-decoration: none !important;
}

    a.am5exporting-item a:hover {
        background: #f0f0f0 !important;
    }

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.kpi-annotation {
    display: inline-block;
    font-size: 1.05rem; /* smaller text */
    font-weight: 500;
    color: #495057; /* muted dark */
    background-color: #e9ecef; /* light gray */
    border-radius: 999px; /* pill shape */
    padding: 0.25rem 0.75rem; /* y,x padding */
}

.pop-close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    color: black;
}

    .pop-close-button:hover {
        color: red; /* Optional hover effect */
    }

.custom-btn {
    padding: 4px; /* Adjust padding to be more consistent */
    background-color: transparent;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-perspective: 1000px;
    perspective: 1000px;
    width: auto; /* Make the button width fit the content (icon) */
    height: auto; /* Ensure the height fits the icon */
}

    /* Icon size adjustments */
    .custom-btn i {
        font-size: 24px; /* Adjust size of the icons */
        transition: transform 0.3s ease;
    }

    /* Hover effects to highlight buttons */
    .custom-btn:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.4); /* Adds a border on hover */
        transform: translateY(-2px); /* Slight lift effect */
    }

    /* Button color adjustments */
    .custom-btn i {
        color: white;
    }

    .custom-btn:hover i {
        color: lightblue; /* Change icon color on hover */
    }

    /* Specific color styles for each button */
    .custom-btn i.fas.fa-user {
        color: lightblue;
    }

    .custom-btn i.fas.fa-exclamation-triangle {
        color: royalblue;
    }

    .custom-btn i.fas.fa-plus {
        color: green;
    }

    .custom-btn i.fas.fa-ban {
        color: red;
    }

.tab-pane {
    display: none;
}
    .tab-pane h6 {
        font-size: 17px;
        font-weight: 600;
        margin-top: 10px;
        padding-bottom: 10px;
        letter-spacing: .15em;
        color: black;
        text-transform: uppercase;
        margin-bottom: 15px;
        border-bottom: 2px solid #c9cacf;
    }

    .tab-pane .p-section {
        margin-bottom: 30px;
    }

    .tab-pane p {
        font-size: 17px;
        margin-bottom: 10px;
        font-weight: 300 !important;
        color: #1a1a1a;
    }

        .tab-pane p strong {
            color: #161619;
        }

    .tab-pane.active {
        display: block;
    }

.coupon-container {
    position: relative;
    margin-top: 15px;
}

.clear-search {
    position: absolute;
    right: 10px;
    font-size: 25px;
    color: #000;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 5;
}

    .clear-search:hover {
        color: #333;
    }

.no-coupon-found {
    background: #fdecea;
    border: 1px solid #f5c2c7;
    color: #d32f2f;
    border-radius: 6px;
    padding: 10px;
    max-width: 100%;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.coupon-status {
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

    .coupon-status.success {
        background: #e6f7ec;
        color: #2b7a3d;
        border: 1px solid #bde5c8;
    }

    .coupon-status.warning {
        background: #fff8e5;
        color: #a37a00;
        border: 1px solid #ffecb3;
    }

    .coupon-status.done {
        background: #fdecea;
        color: #d93025;
        border: 1px solid #f5c6cb;
    }

.coupon-card {
    background: #fdfdfd;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

    .coupon-card h6 {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 10px;
    }

    .coupon-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .coupon-card li {
        font-size: 14px;
        padding: 4px 0;
        border-bottom: 1px solid #f0f0f0;
    }

        .coupon-card li:last-child {
            border-bottom: none;
        }


.popup {
    display: none; /* Hide the popup by default */
    position: fixed; /* Position relative to the viewport */
    top: 0;
    left: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: flex; /* Use flexbox for centering */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    animation: fadeIn 0.7s; /* Apply fade-in animation */
    border-radius: 10px;
    z-index: 9999;
}

.popup-content {
    background-color: #fefefe; /* Popup background color */
    font-family: 'Oswald', sans-serif;
    margin: 5% auto; /* Center the popup vertically */
    padding: 20px; /* Add more padding for better spacing */
    border: 1px solid #888;
    border-radius: 10px;
    width: 90%; /* Set width to 90% of the viewport width */
    max-width: 500px; /* Maximum width for larger screens */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); /* Add subtle shadow for better visibility */
    position: relative; /* Ensure the position is relative for the absolute positioning of the close button */
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.kpi-drag-wrapper {
    position: relative;
    min-height: 170px;
    border-radius: 14px;
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
    cursor: grab;
}

    .kpi-drag-wrapper:active {
        cursor: grabbing;
    }

/* Clean card look (keeps Bootstrap classes) */
.kpi-card.card {
    border-radius: 14px;
    border: 1px solid rgba(15,23,42,.06);
    background: linear-gradient(180deg, #ffffff, #fafbff);
    min-height: 170px;
    box-shadow: 0 4px 14px rgba(16,24,40,.06);
    height: 100%; /* allow stretch in grid/column */
}

/* Hover lift (only when not actively dragging) */
.kpi-drag-wrapper:not(:active):hover .card {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(16,24,40,.10);
}

/* Clear drop target indicator */
.kpi-drag-wrapper.drag-over::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 16px;
    border: 2px dashed rgba(0,123,255,.55);
    box-shadow: inset 0 0 0 1px rgba(0,123,255,.12);
    pointer-events: none;
}

/* Optional: make dragged one feel “picked up” if you toggle a .dragging class */
.kpi-drag-wrapper.dragging .card {
    transform: scale(1.015);
    box-shadow: 0 18px 36px rgba(16,24,40,.18);
}

/* ===== Equal-height layout ===== */
.kpi-card .card-body {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    height: 100%;
}

/* Title / value typography (with reserved space) */
.kpi-title {
    font-size: .95rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: .2px;
    min-height: 22px; /* keep one-line height consistent */
}

.kpi-value {
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 800;
    color: #0b1222;
    min-height: 36px; /* reserve space for big number line */
}

/* Unified footer row (delta OR annotation) */
.kpi-foot {
    margin-top: auto; /* push to bottom */
    min-height: 32px; /* SAME height across all KPIs */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Delta styles */
.kpi-delta {
    margin-top: .4rem;
    font-size: 1.20rem;
    font-weight: 750;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin: 0; /* normalize */
}

    .kpi-delta.up {
        color: #15803d;
    }

    .kpi-delta.down {
        color: #b91c1c;
    }

    .kpi-delta.flat {
        color: #7a8290;
    }

.tab {
    overflow: hidden;
    border: none;
    background-color: transparent;
    display: flex;
    justify-content: center;
    gap: 10px; /* Adds consistent spacing between tabs */
}

    /* Style for individual buttons */
    .tab button {
        background-color: transparent;
        border: none;
        font-size: 20px; /* Adjust for better scaling */
        font-weight: 400;
        color: black;
        outline: none;
        cursor: pointer;
        transition: all 0.3s ease; /* Smooth hover and active transition */
        padding: 8px 16px; /* Consistent padding for better alignment */
    }

        /* Span within buttons for targeted styling */
        .tab button span {
            display: inline-block; /* Ensures underline stays on text */
            position: relative;
        }

        /* Hover effect for tabs */
        .tab button:hover span {
            color: blue;
        }


        .tab button:hover {
            color: blue;
            border-bottom-style: solid;
            border-bottom-width: 2.5px;
            border-bottom-color: blue;
        }

        /* Create an active/current tablink class */
        .tab button.active {
            color: blue;
            border-bottom-style: solid;
            border-bottom-width: 2.5px;
            border-bottom-color: blue;
        }

/* Annotation container (pills/badges etc.) */
.kpi-annotation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

    .kpi-annotation > * {
        line-height: 1.1;
        padding: .125rem .5rem; /* if it's a pill/badge */
    }

/* Small, unobtrusive grip (only if you keep it) */
.drag-handle {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 1.1rem;
    color: #b5bac3;
    display: none;
}

.kpi-drag-wrapper:hover .drag-handle {
    display: inline-block;
}

.ras-layer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

    .ras-layer.is-open {
        display: block;
    }

/* Backdrop */
.ras-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(3px);
}

/* Modal centering */
.ras-modal {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px; /* safe gap on small screens */
}

/* New Member Popup */
.ras-card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    max-height: calc(95% - 60px);
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,.22);
}

/* Header */
.ras-card__header {
    padding: 20px 24px;
}

.ras-title {
    font-size: 24px;
    word-break: break-word;
    font-weight: 500;
    color: #1e1e21;
}

.nav-sm {
    display: flex;
    gap: 1.5rem; /* space between tabs */
    padding-left: 0; /* remove default ul padding */
    border-bottom: 2px solid #dee2e6; /* remove the full underline */
}

    /* 2) Strip out all default tab styling on links */
    .nav-sm .nav-link {
        padding: 0.25rem 0; /* only vertical padding */
        color: black;
        border: none; /* no Bootstrap border */
        position: relative; /* for the ::after underline */
        font-size: 1.05rem;
        font-weight: 400;
    }

        /* 3) Hover state */
        .nav-sm .nav-link:hover {
            color: #333;
        }

        /* 4) Active link: change text color & draw a full-width underline */
        .nav-sm .nav-link.active {
            color: #5a0cf5;
        }

            .nav-sm .nav-link.active::after {
                content: "";
                position: absolute;
                left: 0;
                right: 0;
                bottom: -2px; /* sits just under the text */
                height: 3px; /* thickness of the underline */
                background-color: #5a0cf5;
                border-radius: 2px;
            }

/* Tabs: underline style like the reference */
.tab {
    padding: 0 24px;
    border-bottom: 1px solid #E5E7EB;
}

.tablinks {
    background: transparent;
    border: 0;
    padding: 14px 6px;
    margin-right: 24px;
    font-weight: 600;
    color: #6B7280;
    position: relative;
}

    .tablinks.active {
        color: #111827;
    }

        .tablinks.active::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: -1px;
            height: 3px;
            border-radius: 3px;
            background: #135fd1;
        }

/* Body */
.ras-body {
    padding: 20px 24px 8px;
    overflow: auto;
}

/* Grid & fields */
.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

.form-field {
    gap: 6px;
    display: flex;
    flex-direction: column;
}

    .form-field.span-2 {
        grid-column: 1 / -1;
    }

.ras-label {
    font-weight: 500;
    color: #1e1e21;
    margin-bottom: 2px;
    word-break: break-word;
    font-size: 15px;
    line-height: 1.3333333333;
}

    .ras-label .optional {
        margin-left: 6px;
        color: #9CA3AF;
        font-weight: 500;
    }

/* Inputs: larger + clear focus */
.ras-input,
.form-control,
.form-select {
    min-height: 44px;
    border-radius: 10px;
    font-size: 15px;
    padding: 10px 12px;
}

.form-select {
    padding-right: 40px;
}

    .ras-input:focus,
    .form-control:focus,
    .form-select:focus {
        outline: none;
        border-color: var(--ras-primary);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    }

/* Invalid states (red border + soft ring) */
.is-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.ras-error {
    color: #b91c1c;
    background: #FEF2F2;
    border: 1px solid #FEE2E2;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    margin-top: 8px;
}

/* Checkbox / preference row */
.pref-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 6px;
}

.ras-checkbox {
    width: 18px;
    height: 18px;
}

.ras-card__footer {
    padding: 20px 24px;
    display: flex;
    justify-content: flex-end;
    background: #fff;
}

/* Primary create button (modern purple) */
.ras-btn--create {
    background: #3a0bff; /* vivid purple-blue */
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    height: 46px;
    padding: 0 28px;
    transition: all 0.2s ease;
}

    .ras-btn--create:hover {
        background: #2d08cc; /* slightly darker hover */
    }

    .ras-btn--create:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    /* Optional: subtle lift animation */
    .ras-btn--create:not(:disabled):hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(58, 11, 255, 0.3);
    }

/* Helper text */
.ras-help {
    font-size: 12px;
    color: #6B7280;
    margin-top: 6px;
}

/* Mobile stack */
@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0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S4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

