/* ================================
   Buttons
================================ */

.btn-pastel {
    font-size: 1rem;
    font-family: 'Fredoka One', cursive;
    padding: 10px 24px;
    background-color: #ffd54f;
    /* pastel yellow */
    border: none;
    color: #333;
    font-weight: bold;
    border-radius: 25px;
    transition: 0.3s ease;
    text-shadow: 2px 2px #ffe082;
}

.btn-pastel:hover {
    background-color: #ffb74d;
    color: #fff;
    text-shadow: 2px 2px #ffcc80;
}

.btn-auth {
    background-color: #83c5eb;
    /* pastel blue */
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.3s, transform 0.2s;
}

.btn-auth:hover {
    background-color: #76c7ea;
    transform: translateY(-2px);
    color: #fff;
}


/* ================================
   Navbar
================================ */

.navbar.playful-nav {
    background-color: #ffecb3;
    /* pastel light yellow */
}

.playful-nav .nav-link {
    font-family: 'Fredoka One', cursive;
    font-weight: 600;
    font-size: 1.1rem;
    margin-right: 16px;
    color: #555;
    text-shadow: 2px 2px #ffd54f;
}

.playful-nav .nav-link:hover {
    color: #ff7043 !important;
    text-shadow: 2px 2px #ffe082;
    background-color: #ffe0b2;
    /* pastel orange accent */
    border-radius: 6px;
    transition: 0.3s;
}


/* ================================
   Navbar Dropdown
================================ */

.navbar .dropdown-menu,
.dropdown-menu {
    background-color: #fdf1f7;
    /* pastel background */
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 220px;
}

.navbar .dropdown-item,
.dropdown-item {
    font-family: 'Fredoka One', sans-serif;
    font-size: 1rem;
    color: #444;
    padding: 0.75rem 1.2rem;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    white-space: normal;
}

.navbar .dropdown-item:hover,
.dropdown-item:hover {
    background-color: #ffe4ec;
    color: #d63384;
    transform: translateX(4px);
}

.navbar .dropdown-item span,
.navbar .dropdown-item i {
    margin-right: 8px;
}


/* ================================
   Mega Dropdown / Submenu
================================ */

.mega-dropdown {
    min-width: 260px;
    padding: 10px 0;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>a::after {
    content: "›";
    float: right;
    margin-left: 6px;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: 0;
    margin-left: -1px;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

@media (max-width: 992px) {
    .dropdown-submenu>.dropdown-menu {
        position: static;
        margin: 0;
        box-shadow: none;
    }
}


/* ================================
   Divider
================================ */

.nav-divider {
    display: inline-block;
    width: 1px;
    height: 28px;
    background-color: rgba(0, 0, 0, 0.2);
    margin: 0 12px;
}


/* ================================
   Forms
================================ */

.form-slider {
    display: flex;
    width: 200%;
    /* two forms side by side */
    transition: transform 0.4s ease;
}

.form-slider .form-section {
    width: 50%;
    padding: 20px;
    box-sizing: border-box;
}

.form-slider .form-section:not(:last-child) {
    border-right: 1px solid #ddd;
}

.form-panel {
    width: 50%;
    padding: 25px;
}


/* Input fields styled to match pastel theme */

.pastel-input {
    border-radius: 12px;
    border: 1px solid #ddd;
    padding: 10px 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.pastel-input:focus {
    border-color: #ffb347;
    box-shadow: 0 0 8px rgba(255, 179, 71, 0.4);
    outline: none;
}


/* Pastel search input transitions */

#navbarSearchInput {
    transition: width 0.3s ease, opacity 0.3s ease;
    width: 0;
    opacity: 0;
    padding: 0;
    border: none;
}

#navbarSearchInput.show {
    width: 200px;
    /* adjust width to fit your navbar */
    opacity: 1;
    padding: 0.375rem 0.75rem;
    border: 1px solid #d8bfd8;
    /* pastel border */
    border-radius: 20px;
}


/* Nested dropdowns */

.navbar .dropdown-submenu {
    position: relative;
}

.navbar .dropdown-submenu>.dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: .25rem;
    margin-right: .25rem;
}


/* Keep dropdowns on top of content */

.navbar .dropdown-menu {
    z-index: 2000;
}


/* Stack nicely on mobile */

@media (max-width: 991.98px) {
    .navbar .dropdown-submenu>.dropdown-menu {
        position: static;
        margin: 0;
    }
}