/* GLOBAL – shared styles across entire app */

/* Casa Reformer Pilates color palette */
:root {
    --casa-bg: linear-gradient(to bottom, #f0e8e1, #dccfc4);
    --casa-brown: #4a3a32;
    --casa-brown-light: #7c665c;
    --casa-cream: #fbf8f6;
    --casa-shadow: rgba(0,0,0,0.12);
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Inter', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;

    background-color: rgb(248, 245, 242);
    background-image:
            radial-gradient(rgba(160, 90, 40, 0.06) 1px, transparent 1px),
            radial-gradient(rgba(160, 90, 40, 0.04) 1px, transparent 1px),
            url('/images/grain.png');
    background-repeat: repeat, repeat, repeat;
    background-size: 1.5px 1.5px, 3px 3px, 90px 90px;
    background-attachment: scroll; /* ili fixed ako ti se više sviđa */
}

/* 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-brown);
    color: white;
    padding: 14px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
}

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

/* 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{
    color: red;
    font-size: 14px;
    margin-top: -16px;
    margin-bottom: 16px;
}

/* ============================
   CASA HEADER
============================ */

.casa-header {
    width: 100%;
    background: linear-gradient(to right, #e8ddd5, #e0d4cb, #d9ccc2);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #d6c8be;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}

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

.header-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.header-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
    font-family: "Lora", serif;
    color: #442f20;
}

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

/* Leva grupa linkova */
.header-nav .nav-left {
    display: flex;
    gap: 14px;
}

/* Desno samo logout */
.header-nav .nav-right {
    display: flex;
    margin-left: auto;
}

/* Linkovi */
.header-nav a {
    text-decoration: none;
    padding: 8px 12px;
    background: #6A5247;
    color: white;
    border-radius: 8px;
    font-size: 15px;
    transition: 0.25s;
}

.header-nav a:hover {
    background: #4A3A32;
}

/* Logout specijal */
.header-nav a.logout {
    color: #b44c4c !important;
    border: 1px solid rgba(180, 76, 76, 0.4);
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
    background: unset;
}

.header-nav a.logout:hover {
    background: #8e3b3b;
}
.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 #ccbfb7;
    background: #faf6f4;
    font-size: 16px;
}
.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: #b07b51;
}

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

.slider.round {
    border-radius: 24px;
}
.casa-title {
    text-align: center;
    color: #4a3a32;
    font-size: 26px;
    margin-top: 18px;
    margin-bottom: 20px;
}
.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%;
    }

}


