html {
    font-size: 14px;
    height: 100%;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    background: linear-gradient(120deg, #232526 0%, #414345 100%);
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    font-size: 1em;
    font-weight: 400;
    line-height: 1.4;
}

.navbar, .footer, footer {
    background: #222831 !important;
    color: #e0e0e0 !important;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

    .navbar .nav-link, .navbar .navbar-brand {
        color: #e0e0e0 !important;
    }

        .navbar .nav-link.active, .navbar .nav-link:focus, .navbar .nav-link:hover {
            color: #ffe066 !important; /* Brighter yellow for better contrast */
            background: rgba(255,255,255,0.08);
            border-radius: 6px;
        }

    footer a, .footer a {
        color: #ffe066 !important; /* Brighter yellow for better contrast */
        text-decoration: underline;
    }

/*.alert-info {
  background: #393e46;
  border-color: #222831;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}*/

.alert-info a[href^="mailto"] {
    color: #6ec6ff !important; /* Lighter blue for better contrast */
    font-weight: bold;
    text-decoration: underline;
}

.alert-info a,
.alert-secondary a {
    color: #fff !important;
    text-decoration: underline;
    font-weight: bold;
}

input[type="text"]:not(.flatpickr-input),
input[type="number"],
input[type="date"],
.form-control {
    font-size: 1em;
    padding: 0.5em;
    border: 1px solid #444950;
    border-radius: 6px;
    background: #181a1b;
    color: #e0e0e0;
    transition: border 0.2s;
}

    input[type="number"]::-webkit-inner-spin-button,
    input[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

input[type="number"] {
    -moz-appearance: textfield;
}

    input[type="text"]:focus,
    input[type="number"]:focus,
    input[type="date"]:focus,
    .form-control:focus {
        border: 1.5px solid #4a90e2;
        outline: none;
    }

input[type="checkbox"] {
    width: 1.2em;
    height: 1.2em;
    accent-color: #4a90e2;
}

label, .form-label, span, b, legend, strong {
    color: #e0e0e0 !important;
}

.custom-footer {
    background: #181a1b;
    color: #ffe066; /* Brighter yellow for better contrast */
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-size: 1em;
    margin-top: 2em;
    padding: 1em 0;
}

    .custom-footer a {
        color: #ffe066;
        text-decoration: underline;
    }

.content-wrapper {
    min-height: 600px;
}

@media (max-width: 768px) {
    .content-wrapper {
        min-height: 350px;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        min-height: 200px;
    }
}

h1, h2, h3 {
    min-height: 2.5em;
    color: #ffe066 !important; /* Brighter yellow for better contrast */
    font-weight: bold;
    text-align: center;
}

div[style*="min-height:2em"] {
    display: none;
}

.alert, .alert.mt-3 {
    min-height: 48px;
}

.brief-description {
    display: none;
}

@media (min-width: 768px) {
    .brief-description {
        display: block;
    }
}

.alert-secondary {
    background: #444950;
    color: #fff;
    border-color: #222831;
    border-radius: 8px;
    font-size: 1.02em;
    margin-top: 1em;
    min-height: 48px;
}

}

.table, .table td, .table th, td, th {
    color: #e0e0e0 !important;
    background: #222831 !important;
}

.table {
    border-color: #444950;
}

    .table thead th {
        color: #ffe066 !important; /* Brighter yellow for better contrast */
        background: #222831 !important;
        font-weight: bold;
    }

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #2a2d32 !important;
}

.table-hover > tbody > tr:hover {
    background-color: #393e46 !important;
}

.img-thumbnail {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

/* Uklonjen @font-face za Roboto */

/* Globalna boja teksta */
* {
    color: #e0e0e0;
}

/* Responsive centriranje Bootstrap grid-a */
.row {
    justify-content: center;
}

.form-row-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1em;
}

    .form-row-centered label,
    .form-row-centered input,
    .form-row-centered span {
        text-align: center;
    }

.form-section > div:last-of-type {
    display: flex;
    justify-content: center;
    align-items: center;
}

button, .btn, .btn-primary, .btn-warning, .btn-success {
    color: #fff !important;
    font-weight: 600;
    font-size: 1em;
    text-align: center;
    white-space: normal;
    background-color: #357ab8 !important; /* tamnoplava za primer */
    border: none;
}

.btn-warning {
    background-color: #f0ad4e !important; /* tipična Bootstrap warning boja */
    color: #fff !important;
}

.btn-success {
    background-color: #28a745 !important;
    color: #fff !important;
}

.kamata-info-container, .kamata-section {
    max-width: 750px;
    margin: 2em auto;
    padding: 2em 1.5em;
    background: #222831;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    color: #e0e0e0;
}

    .kamata-info-container h1,
    .kamata-info-container strong,
    .kamata-info-container b,
    .kamata-section h4 {
        color: #ffe066 !important; /* Brighter yellow for better contrast */
        font-weight: 700;
    }

.uputstvo-list {
    padding-left: 1.2em;
    font-size: 1.08em;
}

    .uputstvo-list li {
        margin-bottom: 1.2em;
    }

    .uputstvo-list ul {
        list-style-type: disc;
        margin-left: 1.5em;
        margin-top: 0.5em;
    }

.alert-info {
    background: #393e46 !important;
    color: #ffe066 !important; /* Brighter yellow for better contrast */
    border: 1px solid #222831;
    border-radius: 8px;
}

.card {
    background: #222831 !important;
    color: #e0e0e0 !important;
    border: 2px solid #444950 !important;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

    .card h1, .card h2, .card p, .card .text-center {
        color: #ffe066 !important; /* Brighter yellow for better contrast */
        background: transparent !important;
    }

        .card p strong, .card p b {
            color: #ffe066 !important; /* Brighter yellow for better contrast */
            font-weight: 700;
            background: transparent !important;
        }

label.col-form-label, .form-label {
    color: #e0e0e0 !important;
    font-weight: 600;
    font-size: 1em;
    letter-spacing: 0.2px;
}

form, form p, form h2, form legend, form label, form .form-label {
    color: #e0e0e0 !important;
}

input.form-control, .form-control {
    background: #181a1b !important;
    color: #e0e0e0 !important;
    border: 1px solid #444950 !important;
}

.img-thumbnail {
    background: #222831 !important;
    border: 1px solid #444950 !important;
}

/* Utility classes for high-contrast text if needed */
.text-contrast-yellow {
    color: #ffe066 !important;
    font-weight: bold;
}

.text-contrast-blue {
    color: #6ec6ff !important;
    font-weight: bold;
}

.info-box {
    color: #e2e3e5;
    background-color: #2c2f33;
    border: 1px solid #444;
    border-radius: 0.375rem;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
}

    .info-box a {
        color: #6ca8ff;
        text-decoration: underline;
    }