/* Basic styling */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #0f1624;
    color: #e8f0ff;
}

/* Remove Bootstrap container-fluid and row padding/margin */
.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.row {
    margin-left: 0;
    margin-right: 0;
}


/* Left and right panels styling */
.left, .right {
    padding: 20px;
    overflow-y: auto;
    background-color: #192133;
}

.left {
    border-right: 1px solid #2a3444;
}

/* Styling for event cards */
.object-card {
    border: 1px solid #2a3444;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 15px;
    background-color: #1c273a;
    position:relative; /* ensure every object-card can host an absolute child */
    overflow:hidden; /* clip images inside */
}

@media (min-width: 992px) {
    .object-card {
        padding: 1.5rem; /* ≈ p-lg-4 */
    }
}

.object-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.object-card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.object-card-content.show {
    max-height: 500px; /* Adjust as needed */
}

.object-card-header {
    cursor: pointer;
    user-select: none;
}

/* ▼ collapsible chevron on Saved-Events cards */
.object-card-header .chevron{
    font-size:.9rem;
    transition:transform .2s;
    color:#7987a1;          /* muted grey like other icons */
}
.object-card-header .chevron.rotated{
    transform:rotate(-90deg);   /* points sideways when open */
}


.object-card a {
    color: inherit;                /* match card text */
}
.object-card a:hover {
    text-decoration: underline;    /* tiny cue on hover */
}

/* Button styling */
.buttons {
    margin-top: 15px;
}

.buttons button {
    margin-right: 10px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
}

.inline-container {
    display: flex;
    gap: 15px;
    align-items: flex-start; /* Changed from center for better text/image alignment */
    flex-wrap: nowrap; /* initially prevent wrapping */
}

/* Control the paragraph width */
.inline-container p {
    flex: 1;
    min-width: 200px;
}

.inline-container img {
    max-width:100%;
    height: auto;
    flex-shrink: 0; /* prevent shrinking smaller than image */
}

.info-container {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap; /* allow wrapping to prevent overflow */
    margin-bottom: 1rem;
}

.info-container span {
    display: flex;              /* keep icon + text on same baseline   */
    align-items: center;
    white-space: nowrap;
    font-weight: bold;
    /* flex-basis stays “auto” on desktop, so items share a line */
}

.info-container i {
    color: #7987a1;
}

.info-container a.text-decoration-none:hover {
    text-decoration: underline !important;
}

/* Ensure text flexibly takes available space */
.flex-grow-1 {
    flex: 1;
    word-break: break-word;
}

@media (max-width: 767px) {
    /* At this breakpoint, left and right columns are stacked */
    .info-container {
        gap: 10px; /* tighter gap for small screens */
        column-gap: 0;          /* no horizontal gap when stacking      */
    }

    .info-container span {
        flex: 0 0 100%;         /* each item grabs its own full row     */
    }

    .inline-container {
        flex-wrap: nowrap; /* prevent wrap yet, ensure full width used */
    }

    .inline-container p {
        max-width: none; /* use all available space */
    }
}

@media (max-width: 576px) {
    /* Now finally wrap image under the description */
    .info-container {
        gap: 5px; /* tighter gap for small screens */
    }

    .inline-container {
        flex-wrap: wrap; /* allow wrap */
    }

    .inline-container p, .inline-container img {
        min-width: 100%; /* full width now, stacking vertically */
    }
}

/* ================================Cookie====================================== */
.cookie-wrapper {
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    padding: 0 16px 16px;
    z-index: 100;
    display: flex;
    transition: transform .3s ease-in-out;
    transform: translateY(200%);
}

.cookie-wrapper.active {
    transform: translateY(0);
}

.cookie-wrapper .cookie {
    background: #fff;
    border-radius: 12px;
    padding: 12px 16px 12px 20px;
    box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.12);
    color: #43434C;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;

}

.cookie-wrapper .cookie > div {
    gap: 20px
}

.cookie-wrapper .cookie img {
    margin-right: 12px;
}

.cookie-wrapper button {
    border: none;
    background: rgba(183, 183, 194, 0.20);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    padding: 8px 20px;
    color: #43434C;
    flex-shrink: 0;
    cursor: pointer;
}

/* ─── identical height for both pickers ───────────────────────── */
.filter-picker,
.flatpickr-input.filter-picker {   /* keep the height even after flatpickr rewrites the <input> */
    font: inherit;
    min-height: 0 !important;
    height: 24px !important;          /* now smaller than Bootstrap’s 31 px */
    line-height: 1.15 !important;
    padding: 0 0.5rem;       /* same vertical + horizontal padding as Bootstrap */
    box-sizing: border-box;        /* include padding inside the declared height */
    background-color: #36415e;
    color: #e8f0ff;

    /* NEW ↓–– dark border & subtle corners */
    border: 1px solid #2a3444;
    border-radius: .375rem;     /* 6 px radius */

    /* NEW ↓–– hide native arrow & add mint one */
    appearance: none;           /* Firefox / old Edge */
    -webkit-appearance: none;   /* Chrome / Safari */
    background-image: url("/img/mint-arrow-down.svg");
    background-repeat: no-repeat;
    background-position: right .5rem center;
    background-size: 0.65rem;
}

/* accent colour inside dark Flatpickr calendar */
.flatpickr-day.selected,
.flatpickr-day.today {
    background: #08c985 !important;
    border-color: #08c985 !important;
    color: #fff !important;
}

/* helper line under “Rate Event” */
.rate-helper {
    /* no font-weight: inherit regular weight like the labels */
    margin: 0;
}

/* desktop-only alignment */
@media (min-width: 992px) {
    .rate-helper {
        display: flex;         /* duplicated from d-lg-flex, but harmless */
        align-items: center;
    }
}

.icon-mint { color:#08C985; }

.btn-mint {
    /* text */
    --bs-btn-color:        #fff;  /* normal state             */
    --bs-btn-hover-color:  #fff;  /* hover/focus state        */
    --bs-btn-active-color: #fff;  /* pressed state            */
    /* background & border */
    /* base */
    --bs-btn-bg:               #08C985;
    --bs-btn-border:           #08C985;
    /* ≈ 20 % darker on hover */
    --bs-btn-hover-bg:         #06A16A;   /* new shade */
    --bs-btn-hover-border:     #06A16A;
    /* pressed / active — a touch darker still */
    --bs-btn-active-bg: #069b6a;   /* pressed state                        */
    --bs-btn-active-border: #069b6a;
    --bs-btn-disabled-bg: #08C985;
    --bs-btn-disabled-border: #08C985;
    color:#fff;                    /* keep text/icons white                */
}

/* ------------------------------------------------------------------
   Universal action buttons (Save / Dismiss)
   Mobile-first → desktop scales down slightly
------------------------------------------------------------------ */
.btn-action{
    padding: .75rem 1.25rem;   /* 12 px top/bottom ⇒ ≈48 px height */
    font-size: 1rem;           /* 16 px text (WCAG AA)             */
    line-height: 1.2;          /* keeps icon + text vertically centred */
}

/* ≥ 992 px: mouse users need less height, but still roomy */
@media (min-width: 992px){
    .btn-action{
        padding: .5rem 1rem;     /* 8 px top/bottom ⇒ ≈40 px height */
    }
}

.filter-bar{
    padding-left: 1rem;        /* phones / tablets */
}

/* ---------- Filter bar behaviour ---------------------------------- */
@media (max-width: 991.98px){          /* below the lg breakpoint */
    .filter-bar{
        display:grid !important;           /* beats d-lg-flex          */
        grid-template-columns:max-content 1fr;
        column-gap:.5rem;                  /* label ⟷ control spacing  */
        row-gap:.75rem;                    /* space between the pairs  */
        align-items:center;
        padding-left: 1.5rem;
    }
}

/* Override Bootstrap’s width on larger screens */
.filter-bar .form-select.w-auto,
.filter-bar .form-control.w-auto{
    width:auto;          /* instead of 100 % */
    flex:0 0 auto;       /* don’t grow in the lg flex row */
    min-width:204px;     /* keeps them usable */
}

/* ─── footer tweaks (optional) ────────────────────────────── */
footer.navbar {                 /* same component as top bar   */
    border-top: 1px solid rgba(0,0,0,.05);   /* subtle divider */
}

@media (max-width: 767px) {     /* smaller screens             */
    footer.navbar .small { font-size: .75rem; }
}

/* trademark glyph tweaks */
sup.tm {
    font-size: 0.6em;
    top: -0.4em;
    margin-left: .1rem;   /* a little breathing room */
}

/* Keep DB spacing & new-lines but still allow wrapping */
.preserve-format {
    white-space: pre-wrap;   /* keeps \n line-breaks *and* multiple spaces */
    text-align: justify;
}

/* queue counter badge – mint text, pill shape, small font */
.queue-badge{
    font-size: .75rem;           /* tiny like the mock-up           */
    font-weight: 600;
    color: #08c985;              /* mint accent text                */
    background: rgba(8,201,133,.10);  /* faint mint pill fill         */
    border-radius: 9999px;       /* fully rounded pill              */
    padding: .15rem .55rem;      /* vertical | horizontal padding   */
    line-height: 1;              /* keep it compact                 */
    cursor: default;
}

/* prettier mint badge for “events in queue” */
.badge.queue-badge{
    font-size: .75rem;                  /* tiny text                                  */
    font-weight: 600;                   /* semi-bold                                  */
    color: #08c985;                     /* mint text                                  */
    background: rgba(8,201,133,.12);    /* faint mint pill background                 */
    border: 1px solid rgba(8,201,133,.35); /* subtle stroke so it pops on dark slate   */

    /* keep it perfectly centred                 */
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: .15rem .6rem;              /* tighter than Bootstrap default             */
    line-height: 1;                     /* no vertical drift                          */
    border-radius: 9999px;              /* full pill                                  */
}

/* brighter red for the “Dismiss” button */
.btn-danger{
    /* text colour */
    --bs-btn-color:            #fff;

    /* normal state */
    --bs-btn-bg:               #e04b4b;   /* vibrant flat red   */
    --bs-btn-border-color:     #e04b4b;

    /* hover */
    --bs-btn-hover-bg:         #c84040;
    --bs-btn-hover-border-color:#c84040;

    /* active / pressed */
    --bs-btn-active-bg:        #b73737;
    --bs-btn-active-border-color:#b73737;

    /* focus ring (optional—thin mint ring looks nice on dark BG) */
    --bs-btn-focus-shadow-rgb: 8,201,133; /* mint accent shadow */
}


/* mint spinner colour */
.text-mint { color:#08c985 !important; }

/* overlay that sits over the card while loading */
.loading-overlay{
    position:absolute;
    inset:0;                        /* top:0 right:0 bottom:0 left:0  */
    display:flex;
    align-items:center;
    justify-content:center;
    /* subtle blur & darker dim */
    backdrop-filter: blur(3px);
    background: rgba(0,0,0,.35);

    z-index:10;                     /* above card contents */
}

/* ── compact cards inside “Top Saved Events” ─────────────── */
.object-card-compact{
    background-color: #1c273a;          /* same as main cards            */
    border: 1px solid #2a3444;          /* same subtle slate border      */
    border-radius: 4px;                 /* same 4 px corner radius       */
    padding: .75rem;
    display: flex;
    gap: .75rem;
    margin-bottom: .5rem;
}

.object-card-compact img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: .5rem;
}
.object-card-compact h4{
    font-size: .875rem;
    margin: 0;
    font-weight: 600;
    color: #e8f0ff;
}
.object-card-compact p{
    font-size: .75rem;
    margin: 0;
    color: #7987a1;
}
.save-chip{
    margin-left:auto;align-self:start;font-size:.75rem;
    padding:.15rem .45rem;border-radius:9999px;
    background:rgba(8,201,133,.15);color:#08c985;line-height:1;
    cursor:pointer;                              /* shows it’s clickable  */
    user-select:none;                            /* no accidental select  */
}
.save-chip.saved{
    background:#08c985;      /* same mint as .btn-mint */
    color:#fff;
}

/* small banner that slides down for errors */
.notif-bar{
    position:fixed;top:0;left:0;width:100%;
    background:#b73737;        /* same red family as btn-danger pressed */
    color:#fff;text-align:center;
    padding:.5rem 1rem;font-weight:600;
    transform:translateY(-110%);transition:transform .25s ease;
    z-index:2000;
}
.notif-bar.show{ transform:translateY(0); }

/* --- dark slate fills reused by right-hand panel ------------------------ */
.bg-surface   { background-color: #192133 !important; }  /* outer card  */
.bg-surface-2 { background-color: #1c273a !important; }  /* header / inner */

/* ── Save / Dismiss row: responsive behaviour ────────────────────── */
.action-row{
    flex-wrap: wrap;                     /* allow second line when needed */
}

/* Narrow screens: badge drops beneath buttons */
@media (max-width: 460px){
    .match-count{
        order: 3;                        /* force it after the two buttons */
        margin-left: 0;                  /* undo .ms-auto */
        margin-top: .5rem;
        width: 100%;                     /* full-width pill */
        text-align: center;
    }

    /* let each button shrink / grow nicely */
    .btn-action{
        flex: 1 1 8rem;                  /* min ≈128 px before wrap */
    }
}

/* Subtle, compact “hint” look */
.learning-banner{
    /* spacing — adds breathing room below buttons (point 1) */
    margin-top: 1rem;          /* ↑ more than the original .5rem */

    /* visual treatment (point 2) */
    font-size: .85rem;         /* smaller than body */
    line-height: 1.35;
    color: #dfe8f7;            /* slightly softer than pure white */

    /* compact paddings */
    padding: .625rem .875rem .0rem .875rem; /* top right bottom left */

    /* “hint” style instead of full-on card */
    background: rgba(8,201,133,.06);          /* lighter mint wash */
    border: 1px solid rgba(8,201,133,.22);    /* softer outline */
    border-radius: .5rem;

    /* mint left-edge accent without extra markup */
    box-shadow:
            inset 3px 0 0 rgba(8,201,133,.65),       /* mint stripe */
            0 1px 4px rgba(0,0,0,.15);               /* subtle elevation */
}

.learning-banner .icon-mint {
    color: #08c985; /* consistent with Save button */
}

.learning-banner .btn-close {
    filter: invert(1) grayscale(100%); /* make close button visible on dark */
    opacity: .75;
    transform: scale(.9);   /* a touch smaller for a compact feel */
}
.learning-banner .btn-close:hover {
    opacity: 1;
}

/* On larger screens we can make it even more “hinty” */
@media (min-width: 992px){
    .learning-banner{
        font-size: .8rem;               /* slightly smaller on desktop */
        padding: .5rem .75rem;
    }
}

/* Dark tooltip skin to match the app */
.tooltip .tooltip-inner{
    background-color:#1c273a;      /* card slate */
    color:#e8f0ff;
    border:1px solid rgba(8,201,133,.35); /* subtle mint ring */
    padding:.35rem .5rem;
    font-weight:600;
}
.tooltip.bs-tooltip-top .tooltip-arrow::before,
.tooltip.bs-tooltip-bottom .tooltip-arrow::before,
.tooltip.bs-tooltip-start .tooltip-arrow::before,
.tooltip.bs-tooltip-end .tooltip-arrow::before{
    border-top-color:#1c273a;
    border-bottom-color:#1c273a;
    border-left-color:#1c273a;
    border-right-color:#1c273a;
}
