:root {
    --background_light: rgb(50, 51, 46);
    --background_dark: rgb(40, 41, 35);
    --gold: rgb(155, 115, 0);
}

.body_custom {
    /*width: 100%;*/
    position: relative;
    /*text-align: center;*/
    margin-right: auto;
    margin-left: auto;
    background: var(--background_dark);
    color: white;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

.row:after {
    content: "";
    display: table;
    clear: both;
}

.center_text {
    color: white;
    font-size: 13px;
    bottom: 0px;
    text-align: center;
}

.band_column {
    width: 27.5vw;
    padding: 10px;
    float: left;
}

.venue_column {
    width: 18vw;
    padding: 10px;
    float: left;
}

.year_column {
    width: 22.5vw;
    /* 8vw */
    padding: 10px;
    float: left;
}

.stats_column {
    width: 22.5vw;
    /* 20vw */
    padding: 10px;
    float: left;
    overflow: auto;
}

.table_col {
    /*height: 85vh;*/
    overflow: auto;
}

.table_col thead th,
.upcoming_band_list_table thead th,
.venue_table_col thead th,
.city_table_col thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    /* Adjust as needed */
}

th {
    border-left: 2px solid rgb(204, 206, 209) !important;
}

table,
th,
td {
    border: none;
}

tr:nth-child(even) td {
    border-left: 2px dotted var(--background_dark);
}

tr:nth-child(odd) td {
    border-left: 2px dotted var(--background_light);
}


td:first-child {
    border-left: 0px !important;
}


th:first-child {
    border-left: 0px !important;
}

.stats_list_table {
    font-size: small;
    width: 100%;
}

.upcoming_band_list_table {
    overflow: auto;
}

.venue_table_col,
.city_table_col {
    overflow: auto;
}

.mega_left {
    float: left;
    width: 28vw;
    margin-top: 4em;
}

.mega_right {
    display: inline-table;
    float: right;
    width: 71vw;
    /*height: 100%;*/
    margin-top: 4em;
}

.legend {
    display: flex;
    justify-content: center;
    align-items: center;
    float: left;
    width: 7vw;
    height: 2vw;
    border-radius: 5px;
    font-size: 0.8vw !important;
    text-align: center;
    margin-left: 0.5vw;
}

.filter-count {
    margin-right: 0.5vw;
    width: 6vw;
}

.main-buttons {
    font-size: 0.8vw !important;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.main-buttons:hover,
.create-account-btn:hover,
.login-btn:hover {
    transition: background-color 0.2s ease;
    background-color: rgb(11, 94, 215) !important;
}

.create-account-btn,
.login-btn {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

tr:nth-child(even) {
    background-color: var(--background_light);
}

tr:nth-child(odd) {
    background-color: var(--background_dark);
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px rgba(214, 216, 219, 0.67);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(214, 216, 219, 0.67);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(214, 216, 219, 1);
}

.tooltip-container {
    opacity: 1;
    position: relative;
    transition: opacity 0.3s ease;
}

.tooltip-container-hidden {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.container {
    /*max-height: 85.4vh;*/
    align-content: center;
    overflow: auto;
    overflow-x: visible;
    overflow-y: visible;
    margin-top: 0.6em;
    margin-bottom: 2.5em;
}

.tooltip-container:hover .tooltip-content-archive {
    visibility: visible;
    opacity: 1;
    transition: .5s all ease;
    transition-delay: 0.5s;
}

.tooltip-content-archive {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    background: transparent;
    left: -2%;
    top: 0px;
    padding: 0 15px;
    font-size: 15px;
    /*width: 160px;*/
    margin-top: 2px;
    min-height: 50px;
    transition: .5s all ease;
    transition-delay: 0s;
    z-index: 2;
    color: #000000;
}

.courier_font {
    font-family: 'Courier New', monospace;
}

@media (max-width:960px) {

    .venue_column,
    .band_column,
    .year_column,
    .stats_column {
        width: 100vw;
        padding-left: 15vw;
        padding-right: 15vw;
    }

    .mega_right {
        width: 100vw;
        padding-bottom: 10vh;
    }

    .mega_left {
        width: 100vw;
        padding-left: 5vw;
        padding-right: 5vw;
        max-height: unset;
        height: unset;
    }

    .venue_table_col,
    .city_table_col,
    .upcoming_band_list_table,
    .table_col {
        max-height: unset;
        height: unset;
    }

    .container {
        max-height: unset;
    }

    .band_col {
        max-width: 50% !important;
    }
}

.modal-dialog {
    width: 64vw !important;
    max-width: unset !important;
}

.modal-lg,
.modal-xl {
    max-width: unset !important;
}

#success-modal-content {
    align-content: center !important;
    width: 40%;
    margin: 0 auto;
}

#id_setlist_url {
    text-decoration: unset;
    color: unset;
}

#id_setlist_url:hover {
    color: lightblue;
}


.setlist-container {
    position: relative;
}

.setlist-container:hover .setlist-content-archive {
    visibility: visible;
    opacity: 1;
    transition: .5s all ease;
    transition-delay: 0.5s;
    width: 1% !important;
    pointer-events: none;
}

.setlist-content-archive {
    visibility: hidden;
    width: 1% !important;
    opacity: 0;
    display: block;
    position: absolute;
    background: transparent;
    padding: 0 15px;
    font-size: 15px;
    transition: .5s all ease;
    transition-delay: 0s;
    z-index: 200;
    color: #000000;
}

#setlist-modal.fade:not(.show) .modal-dialog {
    visibility: hidden;
}

.autocomplete-container {
    position: relative;
}

.country-suggestions {
    position: absolute;
    top: 100%;
    /* Position below the input field */
    left: 0;
    width: 100%;
    border: 1px solid #ccc;
    max-height: 150px;
    /* Set a maximum height */
    overflow-y: auto;
    /* Enable vertical scrollbar if content exceeds max height */
    display: none;
    /* Initially hidden */
    background-color: var(--background_light);
    z-index: 1000;
    /* Ensure it appears above other elements */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Add a subtle shadow */
    border-radius: 4px;
    /* Rounded corners for a smooth look */
    padding: 5px;
    /* Slight padding for space */
    font-size: 10px;
}

.country-container-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    /* Light border between items */
}

.country-container-item:last-child {
    border-bottom: none;
    /* Remove border for the last item */
}

.country-container-item:nth-child(even) {
    background-color: var(--background_light);
}

.country-container-item:nth-child(odd) {
    background-color: var(--background_dark);
}

.country-container-item:hover {
    background-color: #aaa;
}

.navbar {
    max-height: 10vh !important;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-image-container {
    width: 30px;
    height: 30px;
    display: flex;
    /* Center the image within the container */
    justify-content: center;
    align-items: center;
    margin-left: 1em;
    /* Adjust as needed */
    background-color: #f0f0f0;
    /* Optional placeholder color */
}

.navbar-image-container img {
    width: 100%;
    height: 100%;
    display: block;
}

.concert-header-container {
    position: relative;
    text-align: center;
}

.concert-header-container::after {
    content: "";
    position: absolute;
    top: 50%;
    /* Position at the middle */
    left: 0;
    width: 100%;
    height: 1px;
    /* Adjust thickness as needed */
}

.concert-header-container-default::after {
    background: linear-gradient(to right, rgba(214, 216, 219, 0), rgba(214, 216, 219, 1), rgba(214, 216, 219, 0));
}

.concert-header-container-white::after {
    background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

.concert-header-container-red::after {
    background: linear-gradient(to right, rgba(255, 0, 0, 0), rgba(255, 0, 0, 1), rgba(255, 0, 0, 0));
}

#id_filter_string {
    font-size: x-small;
}

.filter-string {
    max-height: 6vh;
    overflow-y: auto;
    white-space: normal;
    box-sizing: border-box;
}

.main-buttons-div {
    display: inline-block;
    /* Ensure buttons are in a row */
}

#username-block {
    flex: 0 0 auto;
    /* don’t grow or shrink */
    display: inline-flex;
    /* shrink-to-fit, but still a flex-item */
    align-items: center;
    /* vertical center of its own content */
    width: auto !important;
    max-width: 12vw !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 0.5vw;
}

#username-block::before,
#username-block::after,
.main-buttons::before,
.main-buttons::after {
    content: "";
    display: inline-block;
    width: 0.5em;
    white-space: nowrap;
}

.form-control,
.form-select,
.datetime-picker,
.datetime-picker:focus .form-control:focus,
.form-select:focus {
    background-color: rgb(40, 41, 35) !important;
    color: #eee !important;
    border: 1px solid #555 !important;
    box-shadow: none !important;
}

.form-control::placeholder {
    color: #888;
    opacity: 1;
}


.form-control::-webkit-input-placeholder {
    color: #888;
    /* placeholder shade */
    opacity: 1;
    /* make sure it’s not translucent */
}

.form-control::-moz-placeholder {
    color: #888;
    opacity: 1;
}

.form-control:-ms-input-placeholder {
    color: #888;
}

.form-check-input {
    --bs-form-check-bg: #222;
    /* dark grey fill */
    --bs-form-check-border-color: #555;
    /* lighter grey border */

    --bs-form-check-checked-bg: #0d6efd;
    /* default blue */
    --bs-form-check-checked-border-color: #0d6efd;

    --bs-form-check-focus-color: #0d6efd;
    --bs-form-check-focus-ring: 0 0 0 .25rem rgba(13, 110, 253, .25);
}

input[type="checkbox"].form-check-input:checked {
    background-color: var(--gold) !important;
    border-color: var(--gold) !important;
    accent-color: var(--gold) !important;
    /* GOLD COLOUR */
    /* for browsers that support it */
}

input[type="checkbox"].form-check-input:hover:checked,
input[type="checkbox"].form-check-input:focus:checked {
    box-shadow: 0 0 0 .20rem rgba(255, 215, 0, 0.2) !important;
    /* Gold glow */
}

#setlist-modal.fade.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

#setlist-modal-dialog {
    display: inline-block !important;
    width: auto !important;
    max-width: none !important;
    /* remove default margins so flex centering works */
    margin: 0 !important;
}

.legend2 {
    transition:
        transform 0.2s ease-in-out,
        --bs-bg-opacity 0.2s ease-in-out;
    transform-origin: center center;
}

.legend2:hover {
    transform: scale(1.05);
    --bs-bg-opacity: 0.55;
    cursor: pointer;
}

.legend2.fallback-opacity {
    opacity: 0.55;
    transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

.legend2.fallback-opacity:hover {
    transform: scale(1.05);
    opacity: 1;
}

.legend2.filter-brightness {
    filter: brightness(0.9);
    transition: transform 0.2s ease-in-out, filter 0.2s ease-in-out;
}

.legend2.filter-brightness:hover {
    transform: scale(1.05);
    filter: brightness(1);
}


.scroll-top-logo {
    display: inline-block;
    overflow: visible;
}

.scroll-top-logo img {
    transition: filter 0.2s ease, transform 0.2s ease;
}

.scroll-top-icon {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.85);
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.7);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.scroll-top-logo:hover img {
    filter: grayscale(100%);
    transform: scale(0);
}

.scroll-top-logo:hover .scroll-top-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

[id$="_submit-btn"] {
    display: inline‑flex;
    align-items: center;
}

#btn-spinner {
    display: none;
}

/* small colored square */
.legend-box {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    vertical-align: middle;
}

.legend-info-icon {
    font-size: 1.5rem;
    /* tweak as needed */
    color: #fff;
    /* ensure it stays white */
}


.popover.legend-popover .popover-header {
    background-color: #333 !important;
    color: #fff !important;
}

.popover.legend-popover .popover-body {
    background-color: #444 !important;
    color: #ddd;
}

.legend-entry {
    margin-bottom: 0.3rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    border-radius: 5px;
}

.legend-entry-black {
    color: black !important;
}

.empty-state-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    margin-top: 12px;
    animation: emptyFade 0.25s ease-in-out;
}

.empty-state-image {
    width: 350px;
    max-width: 90%;
    opacity: 0.95;
}

.empty-state-title {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #4b5563;
    opacity: 0.95;
}

.empty-state-subtitle {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    color: #6b7280;
}

@keyframes emptyFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.empty-title-anim {
    transform-origin: center left;
}

.fade-out-right {
    animation: fadeOutRight 0.3s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.3s ease forwards;
}

@keyframes fadeOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* When we’re showing the empty state, allow clicks to pass through the overlay */
#loading-screen.empty-state {
    pointer-events: none;
    background: transparent;
    /* optional: remove dim background if you have one */
}

.empty-state-svg {
    width: 80vw;
    max-width: 1600px;
    height: auto;
}

/* SVG empty-state background */
#loading-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 1 !important;
}

.notes-textarea {
    width: 41.5%;
    min-height: 2.4em;
    /* max-height: 16em; */
    resize: both;
    overflow: hidden;
    box-sizing: border-box;
}

.notes-textarea:focus {
    outline: none;
    border-color: var(--gold) !important;
}

.concert-has-notes {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* JS-injected tooltip box */
.notes-tooltip {
    position: absolute;
    left: 50%;
    top: 0%;
    transform: translate(10%, 0);
    /* base position, animation tweaks this */
    display: block;
    background: #222;
    color: #eee;
    padding: 0.4em 0.6em;
    border-radius: 4px;
    font-size: 0.85em;
    line-height: 1.3;
    box-sizing: border-box;
    text-align: left;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    pointer-events: none;
    padding-bottom: 4px;

    /* 🔥 width behaviour */
    white-space: pre-wrap;
    width: max-content;
    max-width: 50rem;

    /* fade/slide */
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 250ms ease-out,
        transform 250ms ease-out,
        visibility 250ms ease-out;
}

.notes-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(10%, 0.2em);
}

.notes-tooltip p:last-child {
    margin-bottom: 0;
    /* remove end gap */
}

.notes-inline-code {
    font-family: monospace;
    font-size: 0.85em;
    background: #111;
    padding: 0 0.2em;
    border-radius: 2px;
}

.notes-code-block {
    margin: 0.25em 0;
    padding: 0.35em 0.55em;
    background: #111;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.8em;
    white-space: pre;
    overflow-x: auto;
}

.notes-quote {
    border-left: 2px solid #555;
    padding-left: 0.6em;
    margin: 0.25em 0;
    font-style: italic;
    color: #ddd;
}

.notes-hr {
    border: none;
    border-top: 1px solid #444;
    margin: 0.35em 0;
}

.notes-h1,
.notes-h2,
.notes-h3,
.notes-h4,
.notes-h5,
.notes-h6 {
    display: block;
    font-weight: 600;
    margin: 0.2em 0 0.15em 0;
}

.notes-h1 {
    font-size: 1.05em;
}

.notes-h2 {
    font-size: 1.0em;
}

.notes-h3 {
    font-size: 0.95em;
}

.notes-h4 {
    font-size: 0.9em;
}

.notes-h5,
.notes-h6 {
    font-size: 0.85em;
}

.notes-underline {
    text-decoration: underline;
}

.notes-strike {
    text-decoration: line-through;
}

.notes-help-icon {
    font-size: 0.9em;
    opacity: 0.7;
    cursor: help;
}

.notes-help-icon:hover {
    opacity: 1;
}

.notes-list-bullet,
.notes-list-number {
    display: block;
    margin-left: 0.8em;
}

.notes-list-num {
    font-weight: 600;
    margin-right: 0.3em;
}

.notes-link {
    color: #5da9ff;
    text-decoration: underline;
}

.notes-link:hover {
    text-decoration: none;
    color: #50a0f0;
}

.form-control:focus {
    border-color: var(--gold) !important;
}

.rating-static {
    color: var(--gold);
    font-size: 1em;
}

.rating-control i {
    cursor: pointer;
    margin-right: 0.15rem;
    font-size: 1.1em;
    color: var(--gold);
}

.rating-control i:last-child {
    margin-right: 0;
}

.concert-rating-display i {
    font-size: 0.9em;
    margin-left: 0.05rem;
}

.rating-icon {
    position: relative;
    display: inline-block;
    font-size: 0.95em;
    --fill: 50%;
}

.rating-icon .empty-icon {
    color: #555;
}

.rating-icon .fill-mask {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--fill);
    overflow: hidden;
}

.rating-icon .full-icon {
    color: var(--gold);
}

.rating-icon-group i {
    font-size: 1em;
    margin-right: 2px;
}

.rating-empty {
    color: var(--gold);
}

.rating-full {
    color: var(--gold);
}

.rating-half-wrapper {
    position: relative;
    display: inline-block;
}

.rating-half-mask {
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    /* ★ MAGIC: the half star */
    overflow: hidden;
}

.rating-half-fill {
    color: var(--gold);
}

.table-header-icon {
    color: var(--gold) !important;
}

#profile-page ::placeholder {
    color: #bbb;
}

#profile-page label {
    color: #ccc;
}

.profile-password-input {
    max-width: 200px;
}

#confirm-clear-modal-dialog,
#confirm-delete-modal-dialog,
#delete-modal-dialog,
#info-modal>div {
    max-width: 450px !important;
    width: 90%;
}

/* Make sure icon buttons have decent tap area */
.navbar .legend,
.navbar .btn.legend {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

/* Icon size baseline */
.navbar i.bi {
    font-size: 1.25rem;
}



/* ===== System modals (success/info/error) ===== */
.system-modal .modal-content {
    border-radius: 1rem;
    overflow: hidden;
    /* keeps header corners clean */
}

.system-modal .modal-body {
    line-height: 1.35;
    word-break: break-word;
}

.system-modal .modal-footer {
    display: flex;
    gap: 0.5rem;
}


/* ===== Band entry layout inside create/edit modal ===== */

.band-flags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 0.25rem;
}

.band-counts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: end;
    margin-top: 0.5rem;
}

/* Make the tiny count inputs actually usable */
.band-counts input.form-control {
    min-width: 0;
    /* prevents overflow in grid */
}

/* Labels: don’t cram into the input row */
.band-counts label {
    display: block;
    margin-bottom: 0.25rem;
    white-space: nowrap;
}

.mobile-collapsible__header {
    display: none;
}
