:root {
    --orange: #ff6400;
    --orange-hover: #ff8c00;
    --navy: #02203d;
    --gray-bg: #f8f9fa;
    --light-gray: #f0f0f0;
}
body {
    font-family: system-ui, Helvetica, Arial, sans-serif;
    background: var(--gray-bg) url('/slike/web-slike/rezultati-bg.svg') center/320px repeat;
    min-height: 100vh;
    position: relative;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.9);
    z-index: -1;
}
.wrapper {
    max-width: 1260px;
    margin: 20px auto;
    padding: 0 1rem;
}
h1 {
    color: var(--navy);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Filter Sidebar & Offcanvas */
.sidebar-filter {
    background: #f0f0f0;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    padding: 1.5rem;
    height: fit-content;
}
.offcanvas-filter {
    background: #f0f0f0;
}
.sidebar-filter h5 {
    color: var(--navy);
    margin-bottom: 1rem;
}
.btn-filter-submit {
    background-color: var(--navy);
    color: #fff;
    border: none;
}
.btn-filter-submit:hover {
    background-color: #011a30;
    color: #fff;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.page-header h1 {
    margin: 0;
    font-size: 1.75rem;
}

.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}
.custom-table thead th {
    background-color: #fff;
    color: var(--navy);
    font-weight: 600;
    border: none;
    padding: 0.75rem 1rem;
    text-align: center;
}
.custom-table tbody tr {
    background: #fff;
    border-radius: 0.5rem;
    transition: background .2s ease;
}
.custom-table tbody tr:hover {
    background: #fef2e6; /* lagano svijetla narančasta na hover */
}
.custom-table tbody tr.past {
    background: var(--light-gray);
    color: #6c757d;
}
.custom-table tbody tr.past td {
    color: #6c757d;
}
.custom-table tbody td {
    border: none;
    padding: 0.75rem 1rem;
    vertical-align: middle;
    text-align: center;
}

.link-trka {
    color: var(--orange);
    text-decoration: none;
    word-break: break-all;
}
.link-trka:hover {
    text-decoration: underline;
    color: var(--orange-hover);
}

.btn-add, .btn-remove {
    background: var(--orange);
    color: #fff;
    border: none;
    padding: 0.35rem 0.75rem;
    font-size: 0.9rem;
    border-radius: 0.25rem;
    transition: background .2s ease;
}
.btn-add:hover, .btn-remove:hover {
    background: var(--orange-hover);
}
.btn-remove {
    background: #6c757d;
}
.btn-remove:hover {
    background: #5a6268;
}

@media (max-width: 576px) {
    .custom-table thead {
        display: none;
    }
    .custom-table tbody tr {
        display: block;
        margin-bottom: 0.75rem;
    }
    .custom-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0.75rem;
    }
    .custom-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--navy);
    }
    .custom-table tbody td > * {
        margin-left: 0.5rem;
    }
}