/* --- Pet Class Global Styles --- */
:root {
    --pet-gold: #FFB347;
    --pet-blue: #A2D2FF;
    --bg-cream: #FFFDF5;
    --text-main: #4A4A4A;
    --border-light: #F0F0F0;
    --logout-red: #ff6b6b;
    --shadow-sm: 0 4px 10px rgba(0,0,0,0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-cream) !important;
    font-family: 'Quicksand', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
}

header {
    background: #ffffff !important;
    position: sticky; 
    top: 0; 
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.navbar {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1.5rem;
}

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

.menu-toggle {
    display: none; 
    background: none; 
    border: none; 
    font-size: 1.6rem;
    cursor: pointer; 
    color: var(--text-main);
}

.logo-link { text-decoration: none !important; display: flex; align-items: center; }
.logo { font-weight: 800; font-size: 1.25rem; color: var(--text-main) !important; letter-spacing: -0.5px; }
.logo span { color: var(--pet-gold) !important; }

/* Desktop Navigation */
.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none !important;
    color: #7a7a7a !important;
    font-size: 0.95rem;
    font-weight: 700;
    transition: 0.3s ease;
}

.nav-links a:hover {
    color: var(--pet-gold) !important;
}

/* --- AUTHENTICATION STYLES --- */

.nav-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- NEW: Global Pet Switcher Dropdown --- */
.pet-switcher-nav {
    background: #fffdf5;
    border: 2px solid var(--pet-gold);
    border-radius: 20px;
    padding: 4px 10px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: var(--pet-gold);
    cursor: pointer;
    outline: none;
    font-size: 0.85rem;
    transition: 0.3s;
}

.pet-switcher-nav:hover {
    background: var(--pet-gold);
    color: white;
}

.nav-guest-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-link-simple {
    text-decoration: none !important;
    color: var(--text-main) !important;
    font-weight: 700;
    font-size: 0.95rem;
}

.nav-btn {
    background: var(--pet-blue) !important;
    color: white !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 50px;
    font-size: 0.85rem !important;
    box-shadow: 0 4px 10px rgba(162, 210, 255, 0.3);
    display: inline-block;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, filter 0.2s;
}

.nav-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.logout-style {
    background: var(--logout-red) !important;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.2) !important;
}

/* --- UTILITY CLASSES --- */
.card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

/* --- MOBILE LOGIC --- */
@media (max-width: 768px) {
    .menu-toggle { display: block; }

    .nav-links {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: #ffffff;
        padding: 1.5rem;
        gap: 1.5rem;
        border-bottom: 2px solid var(--pet-gold);
    }

    .nav-links.active { display: flex; }

    .nav-user-info, .nav-guest-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 1.5rem;
    }

    .pet-switcher-nav {
        width: 100%;
        padding: 10px;
    }
}