﻿@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Poppins:wght@300;400;600&display=swap');

html,
body {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    color: #4a4a4a;
    /* Tamno siva za tekst */
    font-size: 16px;
    line-height: 1.6;
    background-color: #f7f3e8;
    /* Svijetla be? boja pozadine */
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: #2c3e50;
    /* Tamno plava/siva za naslove */
    margin-bottom: 1rem;
}

a,
.btn-link {
    color: #0071c1;
}

.btn-primary {
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Osnovni layout kontejner */
.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    /* Da zauzme sav dostupan prostor izme?u navbar-a i footer-a */
    /* Padding top da ne ode ispod fiksnog navbar-a ako ga ima, ili prilagodi prema potrebi */
}

/* Custom scrollbar za Chrome/Safari/Edge */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c3a279;
    /* Zlatna nijansa */
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a88b65;
}

/* Loading indikator (default Blazor) */
.loading-progress {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 2rem;
    text-align: center;
    z-index: 2000;
}

.loading-progress-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #c3a279;
}

/* Utility klase */
.text-gold {
    color: #c3a279 !important;
}

.bg-gold {
    background-color: #c3a279 !important;
}

.section-padding {
    padding: 80px 0;
}

/* --- MOBILE WHITESPACE REDUCTION --- */
@media (max-width: 767.98px) {
    .section-padding {
        padding: 2.5rem 0 !important;
        /* Drastično smanjenje sa 80px */
    }

    /* Smanji marginu naslova na mobilnom */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        margin-bottom: 0.5rem !important;
    }

    /* Globalno smanjenje razmaka za sve sekcije */
    section {
        margin-bottom: 0 !important;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Poseban fix za p koji pravi prevelik razmak */
    p {
        margin-bottom: 0.8rem !important;
    }
}

/* Error UI reset (Blazor default) */
/* An unhandled error has occurred. Reload / Dismiss */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Blazor Overlay (reconnection) */
.components-reconnect-show {
    z-index: 9999;
}

.components-reconnect-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Modal stilovi */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    /* Bootstrap default */
}

.modal {
    z-index: 1050;
    display: none;
    /* Sakriven po defaultu */
}

.modal.show {
    display: block;
    background-color: rgba(0, 0, 0, 0.5);
    /* Poluprovidna pozadina */
}

.modal-dialog {
    margin: 1.75rem auto;
    max-width: 500px;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    /* Animacija */
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* Kada je modal prikazan (dodajemo klasu .show na modal-dialog ili modal-content kroz JS/Blazor ako treba animacija)
   Ali po defaultu Bootstrap .modal.show .modal-dialog radi posao ako koristimo standardne klase.
   Ako radimo custom CSS animaciju:
*/
.modal.show .modal-content {
    opacity: 1;
    transform: translateY(0);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    padding: 1rem;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    background-color: #f7f3e8;
    /* Naa be boja */
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    background-color: #f7f3e8;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Fix for persistent error-ui bar */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none !important;
    /* Hide by default */
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}