* {
    margin: 0;
    padding: 0;
}

@keyframes clickAnim {
    from {
        transform: scale(1);
        opacity: 1;
    }

    to {
        transform: scale(5);
        opacity: 0;
    }
}

#preloader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #1f6f78;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #fff;
    border-radius: 50%;
    animation: spin 5s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.col-md-12 {
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden;
    font-family: sans-serif;
}

/* Navbar */
.navbar {

    background: #23585a;
    color: white;
}

.logo-center {
    position: absolute;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
}

/* MOBILE FIX */
@media (max-width: 991px) {
    .logo-center {
        position: static;
        transform: none;
        width: 100%;
        text-align: center;
        margin-top: -40px;
        margin-left: 30px;
    }
}

/* Favourite */
.favorites-wrapper {
    max-width: 1200px;
    margin: auto;
    background: #fff;
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Header */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.title-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.back-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f2f2f2;
    border: none;
    font-size: 18px;
    transition: 0.3s;
}

.back-btn:hover {
    background: #16697B;
    color: #fff;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    color: #222;
}

.search-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: #f2f2f2;
    font-size: 18px;
    transition: 0.3s;
}

.search-btn:hover {
    background: #16697B;
    color: #fff;
}


/* Cards */
.food-card {
    background: #fff;
    border-radius: 22px;
    padding: 18px;
    margin-bottom: 22px;
    border: 1px solid #eee;
    transition: 0.3s;
}

.food-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.food-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 18px;
}

.heart-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff5e7d;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.food-title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.food-time {
    color: #999;
    margin-bottom: 8px;
}

.ingredients {
    color: #ff9d2d;
    font-weight: 600;
}

.rating {
    font-weight: 700;
    color: #222;
    font-size: 18px;
}

.star {
    color: #ffb400;
    margin-left: 4px;
}

.dots {
    font-size: 22px;
    color: #888;
    cursor: pointer;
}

@media(max-width:768px) {

    body {
        padding: 15px;
    }

    .favorites-wrapper {
        padding: 20px;
    }

    .food-img {
        width: 100px;
        height: 100px;
    }

    .food-title {
        font-size: 20px;
    }

    .page-title {
        font-size: 26px;
    }
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    padding: 30px;
    transition: 0.3s ease;
    color: white;
}

/* PUSH CONTENT WHEN PANEL OPENS */
.layout.active .main-content {
    margin-left: 320px;
}

/* ===== LEFT PANEL ===== */
.settings-panel {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background-color: #2e7072;
    color: white;
    padding: 25px 20px;
    transition: 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

.settings-panel.active {
    left: 0;
}

/* ===== USER ===== */
.user-box {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.user-box img {
    width: 50px;
    border-radius: 50%;
}

/* ===== MENU ITEMS ===== */
.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

/* ===== SWITCH ===== */
.switch {
    position: relative;
    width: 45px;
    height: 24px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    inset: 0;
    background: red;
    border-radius: 50px;
}

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

input:checked+.slider {
    background: #22c55e;
}

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

.dropdown-box {
    color: white;
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
}

.dropdown-content {
    display: none;
    padding: 10px;
    margin-top: 5px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);

}

.dropdown-content.active {
    display: block;
}

.option {
    display: flex;
    justify-content: space-between;
    padding: 8px 5px;
    cursor: pointer;
}

.option input {
    display: none;
}

.radio {
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
}

.option input:checked+.radio {
    background: #00a23b;
}

/* ===== MOBILE FIX ===== */
@media (max-width: 768px) {
    .layout.active .main-content {
        margin-left: 0;
    }
}

/* Footer */
.footer-section {
    margin-top: 20px;
    background: #f2f8f9;
}

.footer-section h6 {
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    font-size: 13px;
    color: rgb(70, 70, 70);
    margin-bottom: 8px;
    cursor: pointer;
}

.footer-section ul li:hover {
    color: rgb(58, 58, 58);
}

.footer-section a {
    color: #000000;
    font-size: 18px;
}

.footer-section a:hover {
    color: rgb(0, 0, 0);
}