/* ============================================
   ระบบอาหารกลางวันโรงเรียน - School Meal System
   Custom CSS - สวยงามและสดใส
============================================ */

/* === VARIABLES === */
:root {
    /* Primary Colors - สีสันสดใส */
    --primary: #FF5F7E;      /* สีชมพูสด */
    --secondary: #37B6FF;    /* สีฟ้าสด */
    --success: #4FD675;      /* สีเขียวสด */
    --warning: #FFCE30;      /* สีเหลืองสด */
    --info: #8C52FF;         /* สีม่วงสด */
    --danger: #FF6542;       /* สีส้มแดง */
    
    /* Category Colors */
    --category-1: #FF5F7E;   /* เนื้อสัตว์ - ชมพู */
    --category-2: #4FD675;   /* ผัก - เขียว */
    --category-3: #FFCE30;   /* ผลไม้ - เหลือง */
    --category-4: #D2B48C;   /* ของแห้ง - น้ำตาลอ่อน */
    --category-5: #FF6542;   /* เครื่องปรุง - ส้มแดง */
    --category-6: #8C52FF;   /* เครื่องดื่ม - ม่วง */
    --category-7: #E086D3;   /* ขนม - ชมพูม่วง */
    --category-8: #37B6FF;   /* อื่นๆ - ฟ้า */
    
    /* Neutral Colors */
    --dark: #2F2E41;
    --light: #FFFFFF;
    --gray: #6C757D;
    --light-gray: #F0F2F5;
    
    /* Gradients */
    --primary-gradient: linear-gradient(45deg, #FF5F7E, #FF8474);
    --secondary-gradient: linear-gradient(45deg, #37B6FF, #42CFFF);
    --success-gradient: linear-gradient(45deg, #4FD675, #34D399);
    --warning-gradient: linear-gradient(45deg, #FFCE30, #FFB347);
    --info-gradient: linear-gradient(45deg, #8C52FF, #755FFF);
    
    /* Shadows */
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    --btn-shadow: 0 5px 15px rgba(255, 95, 126, 0.3);
}

/* === GENERAL STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Prompt', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 300;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
}

section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.container {
    position: relative;
    z-index: 1;
}

/* === PRELOADER === */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    text-align: center;
}

.loader-circle {
    fill: none;
    stroke: var(--primary);
    stroke-width: 8;
    stroke-dasharray: 150;
    stroke-dashoffset: 150;
    animation: dash 2s linear infinite;
}

.loader-text {
    font-size: 1.2rem;
    margin-top: 15px;
    color: var(--primary);
    font-weight: 500;
}

@keyframes dash {
    0% {
        stroke-dashoffset: 150;
    }
    50% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -150;
    }
}

/* === BUTTONS === */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-transform: none;
}

.btn i {
    margin-right: 8px;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: -2;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
    box-shadow: var(--btn-shadow);
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--primary-gradient);
    box-shadow: 0 8px 20px rgba(255, 95, 126, 0.4);
    transform: translateY(-3px);
}

.btn-outline {
    color: var(--primary);
    background: transparent;
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: var(--btn-shadow);
    transform: translateY(-3px);
}

.btn-white {
    background: var(--light);
    color: var(--primary);
    border: none;
}

.btn-white:hover {
    background: var(--light);
    color: var(--primary);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.btn-outline-white {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--light);
}

.btn-outline-white:hover {
    background: var(--light);
    color: var(--primary);
    border-color: var(--light);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* === SECTION STYLES === */
.section-header {
    margin-bottom: 50px;
}

.section-pre-title {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
}

.section-pre-title:before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    width: 15px;
    height: 2px;
    background: var(--primary);
}

.section-pre-title:after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    width: 15px;
    height: 2px;
    background: var(--primary);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--gray);
}

/* === NAVBAR === */
#mainNav {
    padding: 15px 0;
    transition: all 0.4s ease;
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

#mainNav.navbar-scrolled {
    padding: 8px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    padding: 0;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 45px;
    margin-right: 10px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text-main {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.logo-text-sub {
    font-size: 0.7rem;
    color: var(--secondary);
    letter-spacing: 1px;
}

.navbar-nav .nav-item {
    margin: 0 5px;
}

.navbar-nav .nav-link {
    padding: 0.6rem 1rem;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-nav .nav-link:before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover:before, .navbar-nav .nav-link.active:before {
    width: 30px;
}

.navbar-nav .nav-link i {
    margin-right: 5px;
}

.navbar-nav .btn-login {
    background: var(--primary-gradient);
    color: white;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    box-shadow: var(--btn-shadow);
    margin-left: 10px;
}

.navbar-nav .btn-login:hover {
    background: var(--primary-gradient);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 95, 126, 0.4);
}

.navbar-nav .btn-login:before {
    display: none;
}

.navbar-toggler {
    border: none;
    padding: 0;
    font-size: 1.5rem;
    color: var(--primary);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* === HERO SECTION === */
.hero-section {
    background: var(--primary-gradient);
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 50px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title span {
    color: var(--warning);
    position: relative;
    display: inline-block;
}

.hero-title span:after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--warning);
    opacity: 0.3;
    border-radius: 10px;
}

.hero-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    font-weight: 300;
}

.hero-buttons {
    margin-bottom: 30px;
}

.hero-buttons .btn {
    margin-right: 15px;
    margin-bottom: 15px;
}

.hero-stats {
    display: flex;
    margin-top: 30px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 25px;
    border-radius: 10px;
    margin-right: 20px;
    text-align: center;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* สีหลากหลายสำหรับแต่ละ stat-item */
.stat-item:nth-child(1) h3 {
    color: #FF5F7E; /* สีชมพูสด */
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.stat-item:nth-child(2) h3 {
    color: #37B6FF; /* สีฟ้าสด */
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.stat-item:nth-child(3) h3 {
    color: #FFCE30; /* สีเหลืองสด */
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.stat-item:nth-child(1) p {
    color: #FF8474; /* สีชมพูส้ม */
    margin-bottom: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-item:nth-child(2) p {
    color: #42CFFF; /* สีฟ้าอ่อน */
    margin-bottom: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-item:nth-child(3) p {
    color: #FFB347; /* สีส้มเหลือง */
    margin-bottom: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.main-image {
    position: relative;
    z-index: 2;
    border-radius: 20px;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.floating-image {
    position: absolute;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.floating-1 {
    top: -30px;
    right: -30px;
    animation: float 5s ease-in-out infinite;
}

.floating-2 {
    bottom: 50px;
    right: -50px;
    animation: float 7s ease-in-out infinite;
}

.floating-3 {
    bottom: -30px;
    left: 30px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.hero-blob {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    animation: blob-animation 10s infinite alternate;
}

@keyframes blob-animation {
    0% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(100px, 50px) scale(1.2);
    }
    66% {
        transform: translate(50px, 100px) scale(0.8);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

/* === FEATURES SECTION === */
.features-section {
    padding: 100px 0;
}

.features-container {
    margin-top: 50px;
}

.feature-card {
    background: var(--light);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--hover-shadow);
}

.feature-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
    z-index: -1;
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    border-radius: 50%;
    font-size: 2rem;
    color: white;
    position: relative;
    z-index: 1;
}

.feature-icon:before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: rgba(255, 95, 126, 0.2);
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.card-1 .feature-icon, .card-1:before {
    background: var(--primary-gradient);
}

.card-2 .feature-icon, .card-2:before {
    background: var(--secondary-gradient);
}

.card-3 .feature-icon, .card-3:before {
    background: var(--warning-gradient);
}

.card-4 .feature-icon, .card-4:before {
    background: var(--success-gradient);
}

.card-5 .feature-icon, .card-5:before {
    background: var(--info-gradient);
}

.card-6 .feature-icon, .card-6:before {
    background: linear-gradient(45deg, var(--danger), #FF9076);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark);
    position: relative;
    padding-bottom: 15px;
}

.feature-card h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--primary);
}

.feature-card p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.read-more {
    font-weight: 500;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
}

.read-more:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--primary);
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--primary);
}

.read-more:hover:after {
    width: 0;
}

.read-more i {
    margin-left: 5px;
    transition: all 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* === MENU SECTION === */
.menu-section {
    background-color: var(--light-gray);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.menu-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern.png');
    opacity: 0.05;
    z-index: 0;
}

.menu-filter-container {
    margin-bottom: 40px;
}

.menu-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px;
    background: white;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 0 auto;
}

.filter-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--btn-shadow);
}

.menu-gallery {
    position: relative;
}

.menu-swiper {
    overflow: visible;
    padding: 20px 0;
}

.menu-card {
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    position: relative;
    cursor: pointer;
}

.menu-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.menu-card:hover .menu-image img {
    transform: scale(1.1);
}

.menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 20%, transparent 80%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: all 0.4s ease;
}

.menu-card:hover .menu-overlay {
    opacity: 1;
}

.menu-info {
    width: 100%;
    color: white;
}

.menu-category {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 50px;
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.menu-info h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.menu-nutrition {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.menu-nutrition span {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
}

.menu-nutrition i {
    margin-right: 5px;
    color: var(--warning);
}

.menu-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.menu-btn:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
}

.swiper-button-next, .swiper-button-prev {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--primary);
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: bold;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background: var(--primary-gradient);
    color: white;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--primary);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary);
}

.menu-cta {
    margin-top: 40px;
}

/* === WEEKLY PLAN SECTION === */
.weekly-plan-section {
    padding: 100px 0;
    background: white;
}

.weekly-plan-img {
    position: relative;
    padding: 20px;
}

.weekly-plan-img img {
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    position: relative;
    z-index: 2;
}

.weekly-plan-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 80%;
    background: var(--primary-gradient);
    border-radius: 20px;
    z-index: 1;
    opacity: 0.1;
    transform: translate(40px, -40px);
}

.weekly-plan-content {
    padding: 30px;
}

.section-description {
    color: var(--gray);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.weekly-menu-table {
    margin: 30px 0;
    background: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.weekly-menu-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.weekly-menu-table th {
    background: var(--primary-gradient);
    color: white;
    padding: 15px;
    font-weight: 500;
    text-align: center;
}

.weekly-menu-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.weekly-menu-table td.day {
    font-weight: 600;
    background: rgba(255, 95, 126, 0.05);
    color: var(--primary);
}

.weekly-menu-table tr:last-child td {
    border-bottom: none;
}

/* === INGREDIENTS SECTION === */
.ingredients-section {
    padding: 100px 0;
    background: var(--light);
}

.ingredients-categories {
    margin-bottom: 80px;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.category-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border-radius: 50%;
    font-size: 1.8rem;
    color: white;
    background: var(--primary-gradient);
    position: relative;
}

.category-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.category-card:hover .category-overlay {
    opacity: 0.95;
}

.overlay-btn {
    padding: 10px 20px;
    background: white;
    color: var(--primary);
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease 0.1s;
}

.category-card:hover .overlay-btn {
    transform: translateY(0);
    opacity: 1;
}

.category-1 .category-icon, .category-1 .category-overlay {
    background: linear-gradient(45deg, var(--category-1), #FF8474);
}

.category-2 .category-icon, .category-2 .category-overlay {
    background: linear-gradient(45deg, var(--category-2), #34D399);
}

.category-3 .category-icon, .category-3 .category-overlay {
    background: linear-gradient(45deg, var(--category-3), #FFB347);
}

.category-4 .category-icon, .category-4 .category-overlay {
    background: linear-gradient(45deg, var(--category-4), #E6CCB2);
}

.category-5 .category-icon, .category-5 .category-overlay {
    background: linear-gradient(45deg, var(--category-5), #FF9076);
}

.category-6 .category-icon, .category-6 .category-overlay {
    background: linear-gradient(45deg, var(--category-6), #755FFF);
}

.category-7 .category-icon, .category-7 .category-overlay {
    background: linear-gradient(45deg, var(--category-7), #F5A9E1);
}

.category-8 .category-icon, .category-8 .category-overlay {
    background: linear-gradient(45deg, var(--category-8), #42CFFF);
}

.ingredients-management {
    margin-top: 50px;
}

.management-image {
    position: relative;
    padding: 20px;
}

.management-image img {
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.management-content {
    padding: 30px;
}

.management-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.feature-list {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.feature-item .feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    font-size: 1.2rem;
    margin: 0 20px 0 0;
}

.feature-item .feature-text {
    flex: 1;
}

.feature-item h5 {
    font-size: 1.15rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.feature-item p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* === SYSTEM SECTION === */
.system-section {
    padding: 100px 0;
    background: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.system-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern.png');
    opacity: 0.05;
    z-index: 0;
}

.system-modules {
    margin-top: 50px;
}

.module-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.module-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--hover-shadow);
}

.module-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    border-radius: 15px;
    font-size: 1.8rem;
    color: white;
    background: var(--primary-gradient);
    transform: rotate(45deg);
}

.module-icon i {
    transform: rotate(-45deg);
}

.module-card:nth-child(2) .module-icon {
    background: var(--secondary-gradient);
}

.module-card:nth-child(3) .module-icon {
    background: var(--success-gradient);
}

.module-card:nth-child(4) .module-icon {
    background: var(--warning-gradient);
}

.module-card h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.module-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 30px;
}

.module-card ul li {
    padding: 8px 0;
    color: var(--gray);
    position: relative;
    padding-left: 25px;
    font-size: 0.95rem;
}

.module-card ul li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary);
    position: absolute;
    left: 0;
    top: 8px;
}

.module-btn {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.module-btn:hover {
    color: white;
    box-shadow: var(--btn-shadow);
    transform: translateY(-3px);
}

.module-btn i {
    margin-left: 5px;
    transition: all 0.3s ease;
}

.module-btn:hover i {
    transform: translateX(5px);
}

.system-overview {
    margin-top: 100px;
}

.overview-content {
    padding: 30px;
}

.overview-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.overview-stats {
    display: flex;
    margin: 30px 0;
    justify-content: space-between;
}

.overview-stats .stat-item {
    background: white;
    padding: 15px 25px;
    border-radius: 10px;
    text-align: center;
    margin-right: 15px;
    box-shadow: var(--card-shadow);
    flex: 1;
}

.overview-stats .stat-item:last-child {
    margin-right: 0;
}

.overview-stats .stat-item h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.overview-stats .stat-item p {
    color: var(--gray);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.overview-image {
    position: relative;
    padding: 20px;
}

.overview-image img {
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    position: relative;
    z-index: 2;
}

.overview-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80%;
    height: 80%;
    background: var(--primary-gradient);
    border-radius: 20px;
    z-index: 1;
    opacity: 0.1;
    transform: translate(-40px, 40px);
}

/* === REPORT SECTION === */
.report-section {
    padding: 100px 0;
    background: white;
}

.report-charts {
    margin-top: 50px;
}

.chart-card {
    background: var(--light);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    height: 100%;
    transition: all 0.4s ease;
}

.chart-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.chart-card h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--dark);
    display: flex;
    align-items: center;
}

.chart-card h4 i {
    margin-right: 10px;
    color: var(--primary);
}

.chart-container {
    height: 250px;
    position: relative;
}

.report-types {
    margin-top: 80px;
}

.report-types h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.report-types h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-gradient);
}

.report-type-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    height: 100%;
    transition: all 0.4s ease;
}

.report-type-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.report-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: 15px;
    font-size: 1.8rem;
    color: white;
    background: var(--primary-gradient);
}

.report-type-card:nth-child(2) .report-icon {
    background: var(--secondary-gradient);
}

.report-type-card:nth-child(3) .report-icon {
    background: var(--success-gradient);
}

.report-type-card:nth-child(4) .report-icon {
    background: var(--warning-gradient);
}

.report-type-card h5 {
    font-size: 1.1rem;
    margin-bottom: 0;
    color: var(--dark);
}

/* === CTA SECTION === */
.cta-section {
    background: var(--primary-gradient);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern.png');
    opacity: 0.1;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
}

/* === FOOTER === */
.footer {
    background: var(--dark);
    color: white;
    position: relative;
}

.footer-top {
    padding: 80px 0 40px;
}

.footer-info {
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-logo span {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer-links, .footer-contact {
    margin-bottom: 30px;
}

.footer-links h4, .footer-contact h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4:after, .footer-contact h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
}

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

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.footer-contact p i {
    color: var(--primary);
    margin-right: 10px;
    width: 20px;
}

.newsletter h5 {
    color: white;
    font-size: 1rem;
    margin-bottom: 15px;
}

.newsletter form {
    display: flex;
    position: relative;
}

.newsletter input {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter button {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter button:hover {
    background: white;
    color: var(--primary);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* === BACK TO TOP === */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 95, 126, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 99;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-5px);
}

/* === MODAL === */
.modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: var(--primary-gradient);
    color: white;
    padding: 20px 30px;
    border-bottom: none;
}

.modal-title {
    font-weight: 600;
    font-size: 1.3rem;
}

.modal-body {
    padding: 30px;
}

.form-label {
    font-weight: 500;
    color: var(--dark);
}

.input-group {
    margin-bottom: 1rem;
}

.input-group-text {
    background: var(--primary-gradient);
    color: white;
    border: none;
}

.form-control {
    padding: 12px 15px;
    border-radius: 0 5px 5px 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.forgot-password {
    color: var(--gray);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary);
}

/* === RESPONSIVE STYLES === */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 991.98px) {
    section {
        padding: 60px 0;
    }
    
    .hero-section {
        padding: 150px 0 80px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-image {
        margin-top: 50px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-card, .module-card, .category-card, .report-type-card {
        margin-bottom: 30px;
    }
    
    .management-content, .overview-content, .weekly-plan-content {
        padding: 20px 0;
        margin-top: 30px;
    }
}

@media (max-width: 767.98px) {
    .navbar-nav .btn-login {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .hero-section {
        padding: 120px 0 60px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .overview-stats {
        flex-direction: column;
    }
    
    .overview-stats .stat-item {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .swiper-button-next, .swiper-button-prev {
        display: none;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .menu-filter {
        padding: 5px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .stat-item {
        padding: 10px 15px;
        margin-right: 10px;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }
}