/* schs.uk custom styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.navbar-brand {
    letter-spacing: 1px;
}

#autocomplete-results .list-group-item,
#add-results .list-group-item {
    cursor: pointer;
    font-size: 0.9rem;
}

#autocomplete-results .list-group-item:hover,
#add-results .list-group-item:hover {
    background-color: #f8f9fa;
}

.badge {
    font-weight: 500;
    font-size: 0.75rem;
}

.nav-tabs .nav-link {
    color: #198754;
}

.nav-tabs .nav-link.active {
    color: #198754;
    font-weight: 600;
    border-bottom-color: #198754;
}

.table-striped th {
    width: 200px;
    white-space: nowrap;
}

#watchlist-table {
    table-layout: fixed;
}
#watchlist-table th:nth-child(1) { width: 40px; }
#watchlist-table th:nth-child(2) { width: 32px; }
#watchlist-table th:nth-child(3) { width: auto; }
#watchlist-table th:nth-child(4) { width: 150px; }
#watchlist-table th:nth-child(5) { width: 120px; }
#watchlist-table th:nth-child(6) { width: 100px; }
#watchlist-table th:nth-child(7) { width: 90px; }
#watchlist-table td { overflow: hidden; text-overflow: ellipsis; }

footer {
    border-top: 1px solid #dee2e6;
}

/* Cookie consent banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 1050;
    animation: cookieBannerSlideUp 0.3s ease;
}

@keyframes cookieBannerSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-banner.hiding {
    animation: cookieBannerSlideDown 0.3s ease forwards;
}

@keyframes cookieBannerSlideDown {
    from { transform: translateY(0); }
    to { transform: translateY(100%); }
}

.cookie-banner p {
    margin: 0;
    font-size: 0.875rem;
    color: #6c757d;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-btn-decline {
    padding: 0.375rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 9999px;
    background: transparent;
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.cookie-btn-decline:hover {
    background: #f8f9fa;
}

.cookie-btn-accept {
    padding: 0.375rem 1rem;
    border: none;
    border-radius: 9999px;
    background: #198754;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.cookie-btn-accept:hover {
    background: #146c43;
}

@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
}
