:root{
    --brand:#ff6600;
    --brand-600:#e65c00;
    --brand-700:#cc5200;
    --bg:#0b0f19;
    --surface:#ffffff;
    --muted:#6b7280;
    --ring: rgba(255,102,0,.25);
    --radius:16px;
}

/* Basis */
body{
    background:#f6f7fb;
}

/* Cards/panels */
.cardish{
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(17,24,39,.08);
    border: 1px solid rgba(17,24,39,.06);
}

/* Links -> oranje */
a{
    color: var(--brand);
    text-decoration: none;
}
a:hover{
    color: var(--brand-600);
    text-decoration: underline;
}
a:focus-visible{
    outline: none;
    box-shadow: 0 0 0 .25rem var(--ring);
    border-radius: 8px;
}

/* Buttons */
.btn-primary{
    background: var(--brand);
    border-color: var(--brand);
}
.btn-primary:hover{
    background: var(--brand-600);
    border-color: var(--brand-600);
}
.btn-outline-primary{
    color: var(--brand);
    border-color: rgba(255,102,0,.45);
}
.btn-outline-primary:hover{
    background: var(--brand);
    border-color: var(--brand);
}

/* Inputs focus */
.form-control:focus, .form-select:focus, .btn:focus{
    border-color: var(--brand);
    box-shadow: 0 0 0 .25rem var(--ring);
}

/* Navbar (admin) */
.navbar{
    background: linear-gradient(90deg, #0b0f19, #111827);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.navbar .navbar-brand{
    font-weight: 700;
    letter-spacing: .2px;
}
.navbar .nav-link{
    color: rgba(255,255,255,.75);
    text-decoration: none;
}
.navbar .nav-link:hover{
    color: #fff;
}
.navbar .nav-link.active{
    color: #fff;
    position: relative;
}
.navbar .nav-link.active::after{
    content:"";
    position:absolute;
    left:.5rem; right:.5rem; bottom:.25rem;
    height:2px;
    background: var(--brand);
    border-radius:999px;
}

/* Tables */
.table thead th{
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
    border-bottom: 1px solid rgba(17,24,39,.10);
}
.table tbody tr:hover{
    background: rgba(255,102,0,.05);
}

/* Badge */
.badge-brand{
    background: rgba(255,102,0,.12);
    color: var(--brand-700);
    border: 1px solid rgba(255,102,0,.25);
}

/* Login */
.logo-wrap img{
    max-width: 380px;
    width: 100%;
    height: auto;
}
.tiny{
    font-size: .9rem;
    color: #6b7280;
}

.best-card{
    display: flex;
    align-items: center;
    gap: 16px;
}

.best-card__icon{
    flex: 0 0 34%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.best-card__text{
    flex: 1 1 66%;
    text-align: left;
}

.best-card__title{
    font-weight: 600;
    margin-bottom: 2px;
}

.best-card__value{
    font-size: 1.15rem;
}

.event-icon {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    background: rgba(255,102,0,.08);
    border: 1px solid rgba(255,102,0,.18);
    display: grid;
    place-items: center;
}
.event-icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

/* Stopwatch modal styling */
.sw-wrap{
    text-align:center;
    padding: 8px 4px 2px 4px;
}

.sw-brand{
    color:#ff6600;
    font-weight:900;
}

.sw-face{
    width: 320px;
    max-width: 100%;
    margin: 0 auto 12px auto;
    border-radius: 22px;
    border: 2px solid rgba(255,102,0,.35);
    background: rgba(255,102,0,.06);
    padding: 16px 14px 14px 14px;
    box-shadow: 0 10px 30px rgba(17,24,39,.06);
}

.sw-time{
    font-size: 54px;
    font-weight: 900;
    letter-spacing: .5px;
    line-height: 1;
    margin-top: 6px;
    color:#111827;
}

.sw-sub{
    font-size: 12px;
    color:#6b7280;
    margin-top: 6px;
}

.sw-buttons{
    display:flex;
    justify-content:center;
    gap: 18px;
    margin-top: 14px;
}

.sw-btn-round{
    width: 84px;
    height: 84px;
    border-radius: 999px;
    border: none;
    color: #fff;
    font-weight: 900;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow: 0 10px 24px rgba(17,24,39,.14);
    transform: translateY(0);
    position: relative;
    z-index: 2;
    pointer-events: auto;
}
.sw-btn-round:active{
    transform: translateY(1px);
}
.sw-btn-round i{
    font-size: 45px;
}

.sw-btn-start{
    background: #16a34a; /* groen */
}
.sw-btn-start:disabled{
    background: rgba(22,163,74,.35);
    box-shadow:none;
}

.sw-btn-stop{
    background: #ef4444; /* rood */
}
.sw-btn-stop:disabled{
    background: rgba(239,68,68,.35);
    box-shadow:none;
}

.sw-save{
    margin-top: 14px;
    display:flex;
    justify-content:center;
}

.sw-save .btn{
    min-width: 220px;
    border-radius: 999px;
    font-weight: 900;
    padding: 10px 16px;
}

.sw-hint{
    margin-top: 10px;
    font-size: 12px;
    color:#6b7280;
}
#swUse.btn.btn-primary{
    background:#ff6600;
    border-color:#ff6600;
}
#swUse.btn.btn-primary:hover{
    filter: brightness(.95);
}
#swUse.btn.btn-primary:disabled{
    opacity:.45;
}
.sw-hidden{ display:none !important; }

@media (max-width: 600px) {
    .cardish a.btn-sm i { display: none; }
}