/* ── Header ── */
header {
    background-color: #04448f;
    background-image: url('../img/Header-Background.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: white;
    min-height: 150px;
    display: flex;
    align-items: center;
}

@media (max-width: 575px) {
    header {
        min-height: unset;
        padding: 12px 0;
    }
    header .container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px;
    }
}

/* ── Nav ── */
.nav-item.active {
    font-weight: bold;
    border-right: 1px solid #ebebeb;
}

.nav-item-custom {
    margin-left: 0 !important;
}

/* ── Card global ── */
.card {
    border: 1px solid #dde3f0;
    box-shadow: 0 2px 10px rgba(2,23,102,0.07);
    border-radius: 4px;
}

.card-header {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecf8 100%);
    border-bottom: 2px solid #d2ab67;
    border-radius: 4px 4px 0 0 !important;
    padding: 1rem 1.25rem;
}

.card-header h2,
.card-header h3,
.card-header h4 {
    color: #021766;
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0;
}

.card-body .text-muted {
    color: #4a5a80 !important;
}

/* ── Input readonly ── */
input[readonly] {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecf8 100%) !important;
    color: #021766 !important;
    border-color: #c8d0e8 !important;
    cursor: default;
}

/* ── Navbar gold ── */
.navbar-gold {
    overflow: visible !important;
}

.navbar-gold .nav-item {
    position: relative;
}

.navbar-gold .nav-item::before,
.navbar-gold .nav-item::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: #021766;
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-gold .nav-item::before { top: 0; }
.navbar-gold .nav-item::after  { bottom: 0; }

.navbar-gold .nav-item:hover::before,
.navbar-gold .nav-item:hover::after {
    width: 100%;
}

.navbar-gold .nav-link {
    color: #021766 !important;
    transition: color 0.45s ease;
}

.navbar-gold .nav-item:hover .nav-link {
    color: #fff !important;
}

.navbar-gold .dropdown-toggle::after {
    display: none !important;
}

/* ── Layout: footer ngjitet poshtë ── */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

body > .container-fluid {
    display: flex;
    flex-direction: column;
    flex: 1;
}

body > .container-fluid > main {
    flex: 1;
}

body > .container-fluid > main.form-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

body > .container-fluid > main.form-page > * {
    width: 100%;
}

/* ── Footer ── */
.footer-atk {
    margin-top: 40px;
    background-color: #04448f;
    color: #cdd8ef;
}

.footer-cols {
    padding: 2.5rem 0 1.5rem;
}

.footer-col {
    margin-bottom: 1.5rem;
}

.footer-heading {
    color: #d2ab67;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.6rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(210,171,103,0.35);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.28rem;
}

.footer-links a {
    color: #b8c8e8;
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #d2ab67;
}

.footer-bottom {
    background-color: #021766;
    padding: 0.75rem 0;
    font-size: 0.78rem;
    color: #8da4cc;
    border-top: 2px solid #d2ab67;
}

.footer-bottom a {
    color: #b8c8e8;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #d2ab67;
}

@media (max-width: 575px) {
    .footer-cols {
        padding: 1.5rem 0 0.5rem;
    }
    .footer-bottom .container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.3rem !important;
    }
}

/* ── Language selector ── */
.lang-selector-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border: 1.5px solid rgba(255,255,255,0.55);
    border-radius: 4px;
    color: #fff !important;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.lang-selector-btn:hover,
.lang-selector-btn:focus {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.9);
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    color: #fff !important;
}

.lang-selector-btn .fa-globe {
    font-size: 1rem;
    opacity: 0.85;
}

/* ── Toastr pozicion ── */
#toast-container.toast-top-right {
    top: 210px;
    right: 5px;
}

/* ── Mobile: input full-width ── */
@media (max-width: 767px) {
    .col-md-6,
    .col-md-8 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .form-control {
        width: 100% !important;
        max-width: 100% !important;
    }
    .input-group {
        flex-direction: column !important;
    }
    .input-group .form-control,
    .input-group .btn {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 4px !important;
    }
    .input-group .btn {
        margin-top: 0.4rem;
    }
}

/* ── Mobile: navbar ── */
@media (max-width: 575px) {
    .navbar-gold {
        flex-wrap: wrap !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    .navbar-gold .nav-link {
        font-size: 0.82rem;
        padding: 0.35rem 0.5rem;
    }
    .navbar-gold .nav-item .nav-link .fa-search {
        display: none;
    }
}
