/* =========================
   OSNOVNO
========================= */

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
}

.stran {
    width: 80%;
    min-height: 100vh;
    background-color: #f5f5f5;

    display: flex;
    flex-direction: column;
}


/* =========================
   NAVBAR
========================= */

.topbar {
    width: 90%;
    height: 70px;
    margin: 20px auto;
    padding: 0 20px;

    background-color: #1f2937;
    border-radius: 20px;

    display: flex;
    align-items: center;

    box-sizing: border-box;
}

nav {
    width: 100%;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.topbar a {
    color: white;
    text-decoration: none;
}

.topbar a:hover {
    color: #3b82f6;
}

.right {
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 20px;
}

/* DROPDOWN */

.dropdown {
    position: relative;
}

/* Gumb Orodja */
.dropdown-gumb {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: white;
    cursor: pointer;
}

/* Puščica */
.puščica {
    font-size: 16px;
    transition: transform 0.25s ease;
}

/* Dropdown meni */
.dropdown-vsebina {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);

    width: 220px;
    padding: 8px;

    background: #1e1e2f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);

    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;

    z-index: 1000;
}

/* Majhen trikotnik na vrhu */
.dropdown-vsebina::before {
    content: "";
    position: absolute;

    top: -6px;
    left: 50%;

    width: 12px;
    height: 12px;

    background: #1e1e2f;
    transform: translateX(-50%) rotate(45deg);

    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Posamezen element */
.dropdown-vsebina a {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px 14px;

    color: #eeeeee;
    text-decoration: none;

    border-radius: 8px;

    font-size: 15px;

    transition: all 0.2s ease;
}

/* Ikone */
.dropdown-vsebina a span {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.08);
    border-radius: 7px;

    font-size: 15px;
}

/* Hover */
.dropdown-vsebina a:hover {
    background: #33334d;
    color: white;
    transform: translateX(3px);
}

/* Pokaži dropdown */
.dropdown:hover .dropdown-vsebina {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Obrni puščico */
.dropdown:hover .puščica {
    transform: rotate(180deg);
}


/* =========================
   SEARCH
========================= */

.search {
    display: flex;
    align-items: center;
}

.search input {
    width: 180px;
    padding: 10px;

    border: none;
    border-radius: 8px;
    outline: none;
}


/* =========================
   MAIN
========================= */

main {
    flex: 1;
}


/* =========================
   HOME
========================= */

.home span{
    font-size: x-large;
}

.home h2 {
    margin-left: 2%;
    font-weight: normal
}

table, th, td {
    border: 1px solid black;
    border-collapse: collapse;
    padding: 8px;
    margin-left: 70px;
    background-color: rgb(0, 229, 255);
}

/* =========================
   GENERATOR / FORGOT
========================= */

.gene,
.forgot {
    min-height: 600px;

    display: flex;
    justify-content: center;
    align-items: center;
}


/* =========================
   GLAVNI KVADRAT
========================= */

.kvadrat,
.kvadrat-login {
    width: 500px;
    height: 500px;

    background-color: #1f2937;
    border-radius: 15px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.kvadrat-login {
    gap: 10%;
    padding-top: 3%;
    box-sizing: border-box;
}



/* =========================
   NOTRANJI KVADRAT
========================= */

.manjsik {
    width: 430px;
    height: 380px;

    background-color: #293545;
    border-radius: 15px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}


/* =========================
   NASLOVI
========================= */

.kvadrat h1,
.manjsik h3 {
    text-align: center;
}

/* =========================
   LOGIN
========================= */

.login {
    flex: 1;

    display: flex;
    justify-content: center;
    align-items: center;
}

.kvadrat-login {
    width: 500px;
    min-height: 500px;

    background-color: #1f2937;
    border-radius: 15px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
}

.login-form {
    width: 350px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group input {
    width: 100%;
    box-sizing: border-box;

    padding: 12px;

    border: none;
    border-radius: 8px;

    outline: none;
}

.input-group a {
    color: white;
    display: flex;
    justify-content: center;
    margin-top: 5px;
}

/* =========================
   GENERATOR
========================= */

.numpad {
    display: flex;
    justify-content: center;
}

.numpad input {
    width: 370px;
    padding: 10px;

    border: none;
    border-radius: 8px;
    outline: none;
}

.generiraj {
    width: 200px;
    height: 30px;

    background-color: blue;
    border: 1px solid white;
    border-radius: 15px;
}

.output-gumb {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gumb {
    width: 50px;
    height: 50px;

    color: white;
    background-color: #111827;

    border: none;
    border-radius: 8px;
}

button:active {
    transform: scale(0.95);
}

.output {
    width: 250px;
    height: 50px;

    background-color: #111827;
    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #22c55e;
    font-family: monospace;

    overflow-wrap: anywhere;
}


/* =========================
   FOOTER
========================= */

footer {
    background-color: #222;
    color: white;
    padding-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;

    display: flex;
    justify-content: space-between;
    gap: 50px;
}

footer h3 {
    margin-bottom: 15px;
}

footer a {
    display: block;

    color: #ccc;
    text-decoration: none;

    margin-bottom: 8px;
}

footer a:hover {
    color: white;
}

.footer-bottom {
    margin-top: 40px;
    padding: 20px;

    text-align: center;

    border-top: 1px solid #444;
    color: #aaa;
}
