/* Global font and link consistency */
body {
    font-family: Arial, sans-serif;
}

a {
    color: #000000 !important;
    text-decoration: underline !important;
}

a:hover {
    color: #000 !important;
}

/* Navbar links */
.navbar a {
    color: white !important;
}
.navbar-link-active {
    text-decoration: underline !important;
}
.navbar-link-inactive {
    text-decoration: none !important;
}

/* Hide sort arrows on the summary column */
.dash-header[data-dash-column="summary"] .column-header--sort {
    display: none;
}

/* Hide the toggle columns button */
.show-hide {
    display: none !important;
}

/* Change cell selection highlight from red to light grey */
.dash-cell.focused {
    background-color: #e8e8e8 !important;
    outline: none !important;
}
.dash-cell.cell--selected {
    background-color: #e8e8e8 !important;
}
td.dash-cell.focused {
    outline: 1px solid #999 !important;
    background-color: #e8e8e8 !important;
}

/* Make modal close button lighter and more visible on dark background */
.modal-header .btn-close {
    filter: invert(1);
    opacity: 0.7;
}
.modal-header .btn-close:hover {
    opacity: 1;
}

/* Row hover effect to signal clickability */
#summary-table tr:hover td {
    background-color: #e8e8e8 !important;
}

/* Table cells should not have link underline */
#summary-table td {
    text-decoration: none !important;
}

/* Housekeeping line - inline on desktop, stacked on mobile */
.header-housekeeping {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
}
.header-housekeeping-item {
    display: inline;
}
.header-housekeeping-item::after {
    content: ' · ';
    color: #999;
    margin: 0 4px;
}
.header-housekeeping-item:last-of-type::after {
    content: '';
}

/* Search input - Spotify style */
.search-input input {
    padding: 10px 16px 10px 36px !important;
    border-radius: 20px !important;
    border: 1px solid #ccc !important;
    background-color: #f5f5f5 !important;
    background: transparent !important;
    transition: border-color 0.2s;
}
.search-input input:focus {
    border-color: #000 !important;
    outline: none !important;
    box-shadow: none !important;
}
/* Search wrapper gets the background so icon shows on top */
.search-wrapper {
    position: relative;
    display: inline-block;
    background-color: #f5f5f5;
    border-radius: 20px;
}
.search-wrapper:focus-within {
    background-color: #fff;
}

/* Table scroll hint — gradient fade on right edge */
.table-wrapper {
    position: relative;
}

/* Floating scroll arrows for mobile */
.scroll-arrow {
    display: none;
    position: absolute;
    top: 80px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    z-index: 5;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.scroll-arrow:hover {
    opacity: 1;
}
.scroll-arrow-left {
    left: 4px;
}
.scroll-arrow-right {
    right: 4px;
}

@media (max-width: 768px) {
    .scroll-arrow {
        display: block;
    }
    .scroll-arrow.hidden {
        display: none;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    /* Stack header stats vertically */
    .header-stats-line {
        flex-wrap: wrap !important;
    }
    .stat-item {
        display: block;
    }

    /* Stack housekeeping line */
    .header-housekeeping {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px;
    }
    .header-housekeeping-item::after {
        content: '' !important;
    }

    /* Stack filter bar */
    .filter-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px;
    }

    /* Modal takes full width */
    .modal-dialog {
        margin: 0 !important;
        max-width: 100% !important;
    }
}
