/* GLOBAL – shared styles across entire app */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&display=swap');

:root {
    --casa-bg: linear-gradient(to bottom, #eef1f8, #e4e8f2);
    --casa-primary: #262262;
    --casa-teal: #6DC8BF;
    --casa-navy: #1C244B;
    --casa-dark: #324A6D;
    --casa-cream: #F9FAFD;
    --casa-shadow: rgba(38,34,98,0.10);
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --font-secondary: 'Plus Jakarta Sans', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #E4E8F4;
}

/* Utility – centers any box in viewport */
.centered-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Reusable cards */
.casa-card {
    background: white;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 4px 18px var(--casa-shadow);
}

/* Reusable Casa button */
.casa-btn {
    display: block;
    width: 100%;
    background-color: var(--casa-primary);
    color: white;
    padding: 14px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.casa-btn:hover {
    background-color: var(--casa-navy);
}

/* Simple fade-in animation */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

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

.error-msg{
    min-height: 20px;
    color: red;
    font-size: 14px;
    margin-top: -16px;
    margin-bottom: 16px;
}
.error-msg-reg{
    margin-bottom:7px;
    padding-top: 7px;
}
/* ============================
   CASA HEADER
============================ */

.casa-header {
    width: 100%;
    background: linear-gradient(to right, #262262, #1C244B, #324A6D);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #6DC8BF;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 18px rgba(38,34,98,0.25);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.header-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #ffffff;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 10px;
    padding: 6px 0;
    gap: 20px;
}

.header-nav .nav-left {
    display: flex;
    gap: 14px;
}

.header-nav .nav-right {
    display: flex;
    margin-left: auto;
}

.header-nav a {
    text-decoration: none;
    padding: 8px 12px;
    background: rgba(109,200,191,0.18);
    color: #6DC8BF;
    border-radius: 8px;
    font-size: 15px;
    transition: 0.25s;
}

.header-nav a:hover {
    background: rgba(109,200,191,0.32);
    color: #ffffff;
}

.header-nav a.logout {
    color: #ff8a8a !important;
    border: 1px solid rgba(255,138,138,0.4);
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
    background: unset;
}

.header-nav a.logout:hover {
    background: rgba(255,100,100,0.15);
}

.casa-error {
    color: #b63a3a;
    font-size: 14px;
    margin-top: -10px;
    margin-bottom: 12px;
    font-weight: 600;
    display: none;
}

.search-box {
    margin-bottom: 18px;
    width: 100%;
}

.search-input {
    width: 97%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #c8d4e8;
    background: #F9FAFD;
    font-size: 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #6DC8BF;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.slider.round {
    border-radius: 24px;
}

.casa-title {
    text-align: center;
    color: #1C244B;
    font-size: 26px;
    margin-top: 18px;
    margin-bottom: 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}

.casa-btn-outline-margin{
    margin-top: 12px;
}

/* MOBILNI – linkovi u dva reda */
@media (max-width: 600px) {
    .header-nav {
        flex-direction: column;
        gap: 12px;
    }

    .header-nav .nav-left,
    .header-nav .nav-right {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
    }

    .nav-right{
        justify-content: right !important;
    }
    .header-title {
        font-size: 17px;
    }
    .header-width-left{
        width: 30%;
    }
}



/* ===== TOAST ===== */
#casa-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.casa-toast {
    padding: 12px 20px;
    border-radius: 10px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: toastIn 0.35s ease forwards;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.casa-toast-success { background: #4CAF50; }
.casa-toast-error   { background: #d9534f; }
.casa-toast-warning { background: #f0ad4e; color: #1C244B; }
.casa-toast-info    { background: #5bc0de; }
@keyframes toastIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
    from { opacity: 1; }
    to   { opacity: 0; transform: translateY(-10px); }
}
