@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;800&display=swap');

:root {
    --rdeca: #e10600;
    --zelena: #27ae60;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: #111;
    color: #eee;
    font-family: 'Nunito', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

a { color: var(--rdeca); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.8rem; margin-bottom: 1.5rem; }


/* ===== NAVBAR ===== */

.navbar {
    background: #1a1a1a;
    border-bottom: 3px solid var(--rdeca);
    padding: 0.7rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo { font-size: 1.2rem; font-weight: 800; color: #fff; }
.nav-gumbi { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.nav-ime { color: #777; font-size: 0.9rem; padding: 0 0.4rem; }

.nav-gumb {
    padding: 0.3rem 0.75rem;
    border: 1px solid #333;
    color: #aaa;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 3px;
    transition: 0.15s;
}
.nav-gumb:hover, .nav-gumb.aktiven { border-color: var(--rdeca); color: #fff; text-decoration: none; }
.nav-gumb.aktiven { background: var(--rdeca); }
.nav-gumb.odjava { border-color: var(--rdeca); color: var(--rdeca); }
.nav-gumb.odjava:hover { background: var(--rdeca); color: #fff; }


/* ===== VSEBINA ===== */

.vsebina { max-width: 900px; margin: 0 auto; padding: 2rem 1.5rem; }
.podnaslov { font-size: 1rem; font-weight: 700; color: #777; margin: 1.5rem 0 0.75rem; border-bottom: 1px solid #222; padding-bottom: 0.3rem; }
.rdece { color: var(--rdeca); }
.sivopis { color: #777; font-size: 0.9rem; }
.sekcija { margin-bottom: 2rem; }


/* ===== PRIJAVA / REGISTRACIJA ===== */

.sredina {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 0.5rem;
}
.logo-naslov { font-size: 2rem; color: var(--rdeca); }
.sredina h2 { color: #777; font-size: 1rem; margin-bottom: 0.75rem; }
.sredina > p { color: #777; font-size: 0.9rem; margin-top: 0.75rem; }
.opomba { color: #777; font-size: 0.85rem; }
.opomba strong { color: #f5c518; }


/* ===== FORMA ===== */

.forma {
    background: #1a1a1a;
    border: 1px solid #333;
    border-top: 3px solid var(--rdeca);
    padding: 1.5rem;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label { font-size: 0.82rem; font-weight: 700; color: #777; text-transform: uppercase; }
label small { font-size: 0.75rem; color: #555; text-transform: none; }

input[type="text"],
input[type="password"],
select {
    background: #111;
    border: 1px solid #333;
    color: #eee;
    padding: 0.55rem 0.8rem;
    font-family: 'Nunito', Arial, sans-serif;
    font-size: 0.95rem;
    width: 100%;
    outline: none;
}
input:focus, select:focus { border-color: var(--rdeca); }

button[type="submit"], .gumb {
    background: var(--rdeca);
    color: #fff;
    border: none;
    padding: 0.65rem 1.25rem;
    font-family: 'Nunito', Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 0.4rem;
    display: inline-block;
    text-align: center;
}
button[type="submit"]:hover, .gumb:hover { background: #b80000; text-decoration: none; }

.gumb-mali {
    display: inline-block;
    border: 1px solid var(--rdeca);
    color: var(--rdeca);
    padding: 0.3rem 0.7rem;
    font-size: 0.85rem;
    font-weight: 700;
}
.gumb-mali:hover { background: var(--rdeca); color: #fff; text-decoration: none; }


/* ===== SPOROČILA ===== */

.napaka { background: #1f0000; border-left: 3px solid var(--rdeca); color: #ff7070; padding: 0.6rem 0.9rem; font-size: 0.9rem; max-width: 400px; width: 100%; margin-bottom: 0.5rem; }
.uspeh  { background: #001a0a; border-left: 3px solid var(--zelena); color: #5dde8e; padding: 0.6rem 0.9rem; font-size: 0.9rem; max-width: 400px; width: 100%; margin-bottom: 0.5rem; }


/* ===== ZNAČKE ===== */

.admin-znacka { background: #f5c518; color: #111; font-size: 0.78rem; font-weight: 700; padding: 0.15rem 0.5rem; display: inline-block; margin-bottom: 1.5rem; }
.znacka       { background: #222; color: #777; font-size: 0.8rem; font-weight: 700; padding: 0.15rem 0.45rem; }
.znacka.zelena{ background: #001a0a; color: #5dde8e; }
.ti-znacka    { background: var(--rdeca); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 0.1rem 0.35rem; margin-left: 0.4rem; }
.koda-znacka  { font-family: monospace; font-size: 1rem; font-weight: 800; color: #f5c518; letter-spacing: 0.1em; cursor: pointer; }
.koda-znacka:hover { opacity: 0.8; }
.koda-box     { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }


/* ===== LIGA KARTICE ===== */

.liga-kartica {
    border: 1px solid #333;
    border-left: 4px solid var(--rdeca);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.liga-ime { font-weight: 800; font-size: 1rem; flex: 1; }
.liga-podatki { display: flex; align-items: center; gap: 1.25rem; }
.liga-stat { display: flex; flex-direction: column; align-items: center; }
.velika-stevilka { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.locilo { width: 1px; height: 30px; background: #333; }

.bljiznjice { display: flex; gap: 1rem; flex-wrap: wrap; }
.bljiznjica { border: 1px solid #333; padding: 0.85rem 1.25rem; display: flex; align-items: center; gap: 0.75rem; color: #eee; font-weight: 700; }
.bljiznjica:hover { border-color: var(--rdeca); text-decoration: none; }
.bk-ikona { font-size: 1.4rem; }


/* ===== DOMOV OBLAČKI ===== */

.domov-oblacki {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.dom-oblacek {
    border: 1px solid #333;
    border-top: 3px solid var(--rdeca);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.dom-ob-naslov { font-size: 0.78rem; font-weight: 700; color: #777; text-transform: uppercase; }
.dom-ob-dirka  { font-size: 1.05rem; font-weight: 800; }
.dom-napoved   { background: #1a0000; border: 1px solid #330000; padding: 0.7rem; display: flex; flex-direction: column; gap: 0.3rem; }
.dom-napoved-vrstica { font-size: 0.9rem; }
.dom-rezultati { margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.9rem; }
.dom-r-naslov  { font-size: 0.75rem; font-weight: 700; color: #777; text-transform: uppercase; margin-bottom: 0.2rem; display: flex; align-items: center; gap: 0.5rem; }


/* ===== NAPOVEDI ===== */

.obstojecaNapoved { background: #1a0000; border: 1px solid #330000; padding: 0.85rem 1.1rem; margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.95rem; }
.pretekla-kartica { border: 1px solid #333; margin-bottom: 1rem; }
.pk-glava { background: #1a1a1a; padding: 0.75rem 1.1rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; border-bottom: 1px solid #333; }
.pk-vsebina { display: flex; }
.oblaček { flex: 1; padding: 0.85rem 1.1rem; border-right: 1px solid #333; }
.oblaček:last-child { border-right: none; }
.sivOblaček { opacity: 0.45; }
.ob-naslov { font-size: 0.78rem; font-weight: 700; color: #777; text-transform: uppercase; margin-bottom: 0.5rem; }
.ob-vrstica { padding: 0.28rem 0.5rem; margin-bottom: 0.2rem; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
.ob-vrstica.pravilno { background: #001a0a; }
.ob-vrstica.napacno  { opacity: 0.4; }
.plus { margin-left: auto; background: var(--zelena); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 0.1rem 0.35rem; }


/* ===== LESTVICA ===== */

.tabsi-vrstica { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.tabsi { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tab { padding: 0.35rem 1rem; border: 1px solid #333; font-size: 0.88rem; font-weight: 700; color: #777; }
.tab:hover, .tab.aktiven { border-color: var(--rdeca); color: #fff; text-decoration: none; }
.tab.aktiven { background: var(--rdeca); }

.liga-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.liga-header-ime { font-size: 1.2rem; font-weight: 800; }

.tabela { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.tabela th { text-align: left; padding: 0.65rem 1rem; font-size: 0.8rem; font-weight: 700; color: #777; text-transform: uppercase; border-bottom: 2px solid var(--rdeca); }
.tabela td { padding: 0.75rem 1rem; border-bottom: 1px solid #222; }
.tabela tr:hover td { background: #1a1a1a; }
.moja-vrstica td { background: #1a0000; }
.sredina-td { text-align: center; color: #777; }
.tocke-stolpec { text-align: right; font-size: 1.1rem; font-weight: 800; color: var(--rdeca); }


/* ===== ADMIN ===== */

.admin-stats { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.stat-box { background: #1a1a1a; border: 1px solid #333; border-top: 3px solid var(--rdeca); padding: 1rem 1.5rem; display: flex; flex-direction: column; align-items: center; min-width: 110px; }
.stat-st { font-size: 2rem; font-weight: 800; color: var(--rdeca); line-height: 1; }


/* ===== STATISTIKA ===== */

.graf-okvir { background: #1a1a1a; border: 1px solid #333; padding: 1.5rem; }

.nav-ime { color: #aaa; font-size: 0.9rem; padding: 0 0.4rem; text-decoration: none; }
.nav-ime:hover { color: #fff; text-decoration: none; }