* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::-webkit-scrollbar {
    height: 2px;
    width: 2px;
    background: #fff;
}

::-webkit-scrollbar-thumb {
    width: 2px;
    background: linear-gradient(90deg, #ff6b6b 0%, #ffd86b 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f1f1f1;
}

.navbar {
    /* background-color: rgba(255, 255, 255, 0.8); */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-item {
    height: 100vh;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-btn-overlay {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    min-width: 280px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
}

.container {
    overflow: hidden;
    margin: 0 auto;
}

.container img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.nav-link,
.link_active {
    position: relative;
    display: inline-block;
    font-weight: 500;
    color: #000;
}

.link_active {
    position: relative;
    display: inline-block;
    font-weight: 500;
    color: #000;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70%;
    height: 2px;
    background: #ff6b6b;
    background: linear-gradient(90deg, #ff6b6b 0%, #ffd86b 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.link_active::after {
    content: '';
    position: absolute;
    left: 0;
    top: -5px;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b 0%, #ffd86b 100%);
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}


/* .nav-link:hover {
    color: #ff6b6b;
    font-weight: bold;
} */

.nav-link.active::after {
    transform: scaleX(1);
}

.liked {
    color: #c93333;
}

.saved i {
    color: #c4cf21;
}

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

a.text-reset {
    text-decoration: none !important;

}
a {
    text-decoration: none !important;
}
.btn_login-out {
    background-color: #0a97cf;
    color: #fff;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.flying-dot {
    position: fixed;
    color: #c4cf21;
    z-index: 9999;
    pointer-events: none;
    transition: transform 2s ease-in-out, opacity 3s;
}

.category-card:hover {
    background-color: #0bfa52e0;
    transform: scale(1.03);
    transition: .5s all ease-in-out;
    cursor: pointer;
}

.card {
    background: #fff;
    box-shadow: 2px 4px 5px rgba(0, 0, 0, 0.2);
}

.card-text {
    font-style: italic;
}

.btn-view {
    padding: 2px;
    cursor: pointer;
    min-width: 120px;
    border-radius: 5px;
    border: none;
    color: #000;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background-color: #fff;
    /* background: linear-gradient(135deg, #71b7e6, #9b59b6); */
    /* background: linear-gradient(135deg, #2770c4, #10e43e); */
}

.author .author_user .card {
    outline: double #cac6c6;
}

.footer {
    background-color: rgba(0, 0, 0, 0.2);
    color: #000;
}


/* Chia sẻ công thức */

.header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.header::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #ff6b6b;
    background: linear-gradient(90deg, #ff6b6b 0%, #ffd86b 100%);
    margin: 15px auto 0;
    border-radius: 2px;
}

.header h2 {
    font-size: 2rem;
    color: #ff6b6b;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    color: #333;
    font-size: 1rem;
    font-weight: 400;
}

.form-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 2px 4px 5px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.form-section {
    margin-bottom: 25px;
}

.form-section-title {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    color: #2d3436;
    margin-bottom: 15px;
    font-weight: 600;
}

.form-section-title i {
    margin-right: 10px;
    color: #ff6b6b;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d3436;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 15px;
    border: 1px solid #fff;
    border-color: #eee;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background-color: #ff6b6b;
    color: white;
}

.btn-primary:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
}

.report-btn:hover {
    background-color: #f1f1f1;
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px #ff6b6b;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.form-divider {
    height: 1px;
    background-color: #eee;
    margin: 25px 0;
}


/* Danh mục món ăn */

.scrollable-buttons {
    overflow-x: auto;
    white-space: nowrap;
}

.scrollable-buttons .btn {
    display: inline-block;
}

.scrollable-buttons .btn-sm {
    border-radius: 5px;
    padding: 0.25rem 0.5rem;
    font-size: .9rem;
}

.filter-btn {
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.filter-btn.active {
    background-color: #ff6b6b;
    color: #fff;
}

.pagination .page-link {
    border-radius: 5px;
    color: #333;
}

li.page-link.page-item.active {
    background-color: #ff6b6b;
    border-color: #ff6b6b;
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #aaa;
}


/* Login-logout */

.form-box {
    max-width: 400px;
    margin: 60px auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    color: #ff6b6b;
}

::placeholder {
    color: #999;
    font-size: 12px;
    font-style: italic;
}

.switch-link {
    color: #007bff;
    cursor: pointer;
}

.switch-link:hover {
    color: #00ff22;
}

.google-btn {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    gap: 10px;
    margin-bottom: 15px;
}

.google-btn:hover {
    background-color: #f1f1f1
}


/* Rank */

.ranking-top {
    text-align: center;
    margin-bottom: 30px;
}

.ranking-top .user {
    display: inline-block;
    margin: 0 15px;
}

.ranking-top .user img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid gold;
}

.ranking-list .rank-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rank-item .left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rank-item .left img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #ccc;
}

.rank_top1 {
    border-left: 4px solid #ffd000;
}

.rank_top2 {
    border-left: 4px solid silver;
}

.rank_top3 {
    border-left: 4px solid #b87333;
}

.your-rank {
    background: #fff6e5;
    border-left: 4px solid #ff6b6b;
}

@media (max-width: 768px) {
    .button-group {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
    .overlay {
        margin-top: -100px;
    }
    .carousel-btn-overlay {
        top: 55%;
    }
}