/* Sprečava skrolovanje pozadine dok je modal otvoren */
body.ModalOpen {
    overflow: hidden;
}

/* Overlay */
#ModalObradaPodataka {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    background-color: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#ModalObradaPodataka.Visible {
    display: flex;
    animation: modalFadeIn 0.25s ease forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Sadržaj modalnog prozora */
.ModalContent {
    background: white;
    border-top: 12px solid var(--colorGreenRegular);
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px 40px 36px 36px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    animation: modalSlideUp 0.25s ease forwards;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(16px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Naslov modalnog prozora */
.ModalTitle {
    font-family: "Cascadia Mono", monospace;
    font-weight: bold;
    font-size: 20px;
    color: black;
    margin: 0 0 28px 0;
    padding-right: 36px; /* prostor za X dugme */
    line-height: 140%;
}

/* Paragraf tekst */
.ModalBody p {
    font-family: "Open Sans", sans-serif;
    font-size: 15px;
    line-height: 185%;
    color: black;
    margin: 0 0 16px 0;
}

.ModalBody p:last-child {
    margin-bottom: 0;
}

/* Email link unutar modalnog prozora */
.ModalBody a,
.ModalBody a:visited {
    color: var(--colorBlueRegular);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ModalBody a:hover {
    opacity: 0.8;
}

/* Bullet stavke */
.ModalList {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.ModalList li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
    font-family: "Open Sans", sans-serif;
    font-size: 15px;
    line-height: 175%;
    color: black;
}

.ModalList li::before {
    content: "";
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    background: var(--colorBlueRegular);
    border-radius: 50%;
    border: 2px solid var(--colorBranchColor);
    margin-top: 7px;
}

/* Dugme za zatvaranje (X) */
#ModalObradaPodatakaClose {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: var(--colorBranchColor);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

#ModalObradaPodatakaClose:hover {
    color: black;
}

#ModalObradaPodatakaClose:focus-visible {
    outline: 2px dotted var(--colorBranchColor);
    outline-offset: 2px;
}

/* Mobilne dimenzije */
@media screen and (max-width: 600px) {
    .ModalContent {
        padding: 32px 20px 28px 20px;
        max-height: 85vh;
    }

    .ModalTitle {
        font-size: 17px;
    }

    .ModalBody p,
    .ModalList li {
        font-size: 14px;
    }
}
