﻿/* =========================
   Global
========================= */
html, body {
    height: 100%;
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow: hidden; /* sprječava globalni scroll */
}

a, .btn-link {
    color: #006bb7;
    text-decoration: none;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* =========================
   Layout
========================= */
.page {
    display: flex;
    min-height: 100vh;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.sidebar {
    width: 200px;
    height: 100vh;
    background: #F9DEAF;
    background-color: #F9DEAF; /* koristi istu boju kao sidebar */
    color: white;
    display: flex;
    flex-direction: column;
    position: relative; /* da absolute radi unutar sidebara */
    justify-content: space-between;
}

/* Header dio */
.sidebar-header {
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
}

/* Tekst bijele boje */
    .sidebar-header .navbar-brand {
        color: white;
        text-decoration: none;
        font-weight: bold;
    }
.sidebar .sidebar-header .navbar-brand {
    font-size: 18pt; /* ili 21px, jer 1pt ≈ 1.333px */
    font-weight: bold; /* podebljano */
}
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f9f9f9;
    height: 100%;
}

/* =========================
   Topbar
========================= */
.topbar {
    display: flex;
    justify-content:  center; /* centriraj sadržaj */
    align-items: center; /* vertikalno poravnanje */
    padding: 0.5rem 1rem;
    height: 50px;
    background: #000;
    background-color: #000; /* crna pozadina */
    color: #fff; /* bijeli tekst */
    font-family: sans-serif;
    font-size: 12pt;
    font-weight: 700;
}
.nav-item .nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* poravnaj sadržaj ulijevo */
    height: 50px;
    padding: 0px 10px 0px 5px; /* lijevi odmak 5px */
    background-color: #F9DEAF; /* ista boja kao sidebar */
    color: darkgray;
    text-shadow: 2px 2px 4px lightgray;
    font-family: sans-serif;
    font-size: 12pt;
    font-weight: 800;
    position: relative;
    text-align: left; /* osiguraj da tekst ide lijevo */
}
.nav-item .nav-link:hover {
    text-shadow: 0 0 8px #ffffff, 0 0 12px #FFF;
}
.nav-items-top {
    flex: 1;
    display: flow;
    justify-content: start; /* gura sve na desnu stranu */
    align-items: center; /* centrirano po visini */
    flex-direction: column;
    background-color: #F9DEAF;
    margin-top: 30px; /* spušteno od vrha */
    overflow-y: auto; /* omogućava scroll ako je sadržaj prevelik */
}
.topbar .year {
    flex: 1; /* zauzme prostor i omogućuje centriranje */
    color: white;
    text-align: center; /* centriraj tekst unutar year */
    font-weight: bold;
}
.topbar .contact .nav-link {
    color: white !important;
    text-decoration: none;
}

    .topbar .contact .nav-link:hover {
        color: white !important;
        text-shadow: 0 0 8px #ffffff, 0 0 12px #F9DEAF;
    }
.nav-link .bi {
    margin-right: 4px;
}


/* Logo na dnu */
.nav-logo {
    display: flex;
    position: fixed;
    bottom: 0;
    left:25;
    justify-content: center; /* horizontalno centriranje */
    padding: 25px;
    background: #F9DEAF;
    background-color: #F9DEAF; /* koristi istu boju kao sidebar */
}
.nav-logo img {
    max-width: 100%; /* da ne izlazi izvan sidebara */
    height: auto;
    background: #F9DEAF;
    background-color: #F9DEAF; /* koristi istu boju kao sidebar */
}

/* =========================
   Content
========================= */
.content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f5f5f5;
}

    .content.px-4 {
        padding-left: 0 !important;
    }

/* =========================
   Validation
========================= */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

/* =========================
   Error boundary
========================= */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdo...) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: #fff;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

/* =========================
   Checkbox
========================= */
.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* =========================
   Office Viewer
========================= */
FullHeightOfficeViewer {
    width: 100%;
    border: none;
    display: block;
    min-height: 0;
    box-sizing: border-box;
}

/* =========================
   Footer
========================= */
.social-footer {
    position: fixed;
    bottom: 0;
    left: 200px; /* počinje nakon sidebara */
    width: calc(100% - 200px);
    background: inherit;
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 10px 0;
    border-top: 0px solid #ddd;
    z-index: 1000;
}

    .social-footer a {
        font-size: 28px;
        color: #555;
        cursor: pointer;
        transition: transform 0.2s, color 0.2s;
    }

        .social-footer a:hover {
            transform: scale(1.4);
        }

    /* Brand hover boje */
    .social-footer .instagram:hover {
        color: #E1306C;
    }

    .social-footer .x:hover {
        color: #000;
    }

    .social-footer .facebook:hover {
        color: #1877F2;
    }

    .social-footer .whatsapp:hover {
        color: #25D366;
    }
    .social-footer .youtube:hover {
        color: #FF0033;
    }
    .social-footer .email:hover {
        color: #1A73E8; /* Gmail/Outlook plava */
    }
.full-frame {
    width: 100%; /* zauzmi cijelu širinu layouta */
    height: 100vh; /* zauzmi cijelu visinu ekrana/layouta */
    object-fit: cover; /* popuni okvir, zadrži proporcije */
    display: block; /* ukloni praznine ispod slike */
}

/***Simple icons*/
/* Pager */
.pager-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

/* Grid 16×16 */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(32px, 1fr));
    gap: 8px;
    padding: 10px;
}

.icon-item img {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Fiksna veličina modala */
.modal-content {
    position: relative;
    width: 200px;
    height: 200px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0; /* makni padding da slika stane točno */
}

    /* Slika unutar modala */
    .modal-content img {
        width: 128px;
        height: 128px;
        object-fit: contain;
    }

/* Close button */
.close-btn {
    position: absolute;
    top: 4px;
    right: 6px;
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
}
.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    align-items: center;
}

.set-favicon-btn {
    padding: 6px 10px;
    border: 1px solid #006fe6;
    background: #006fe6;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}

    .set-favicon-btn:hover {
        background: #0052b3;
    }
/* Osnovni stil za pager gumbe */
.pager-controls button {
    background-color: #007bff; /* plava */
    color: #fff; /* bijeli tekst */
    border: none; /* bez okvira */
    border-radius: 25px; /* zaobljeni rubovi */
    padding: 8px 16px; /* unutarnji razmak */
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

    /* Hover efekt */
    .pager-controls button:hover:not(:disabled) {
        background-color: #0056b3; /* tamnija plava */
        transform: scale(1.05); /* malo povećanje */
    }

    /* Disabled stanje */
    .pager-controls button:disabled {
        background-color: #a0c8f0; /* svijetloplava */
        cursor: not-allowed;
        opacity: 0.7;
    }
select {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    margin: 0 4px;
}


