@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;700&display=swap');

:root {
    --midnight-navy: #1f4398;
    --royal-blue: #2563eb;
}

body {
    background: #f8fafc;
    font-family: 'Sarabun', sans-serif;
    color: #334155;
}

/* --- NAVBAR (Midnight Navy) --- */
nav.navbar.navbar-custom {
    background-color: var(--midnight-navy) !important;
    padding: 12px 0 !important;
    border: none !important;
}

.navbar-brand {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 24px;
}

/* บังคับสีไอคอนและตัวหนังสือใน Nav ให้เป็นเทาอ่อนตามรูป */
.navbar-custom .nav-link,
.navbar-custom .nav-link i {
    color: #cbd5e1 !important;
    margin-left: 15px;
    transition: 0.3s;
    font-size: 0.95rem;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:hover i {
    color: #ffffff !important;
}

/* --- HERO SECTION --- */
.hero-section {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
    padding: 80px 0 100px 0 !important;
    border-radius: 0 0 40px 40px;
    margin-bottom: 0;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
}

/* --- STATISTICS CARDS (Overlap) --- */
.stats-overlap {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.card.stats-card {
    border: none !important;
    border-radius: 20px !important;
    color: #ffffff !important;
    transition: 0.3s;
}

.stats-blue {
    background: #2563eb !important;
}

.stats-orange {
    background: #f59e0b !important;
}

.stats-green {
    background: #10b981 !important;
}

.stats-red {
    background: #ef4444 !important;
}

/* --- FOOTER (Midnight Navy) --- */
/* ปรับปรุง Footer ให้สูงขึ้นและใช้ตัวหนังสือสีขาว */

footer.footer {
    background: #1f4398 !important;
    /* พื้นหลังสีเดียวกับ Nav */
    color: #ffffff !important;
    /* ตัวหนังสือสีขาว */
    padding: 30px 0 !important;
    /* เพิ่มความสูงด้วยการเพิ่ม Padding เป็น 40px */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* เส้นขอบบนบางๆ ให้มีมิติ */
    position: relative;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    /* เพิ่มเงาด้านบนให้ดูมีเลเยอร์ */
}



/* บังคับสีตัวหนังสือและไอคอนทั้งหมดใน Footer ให้เป็นสีขาว */
footer.footer p,
footer.footer span,
footer.footer small,
footer.footer i {
    color: #ffffff !important;
    /* บังคับขาวล้วน */
    opacity: 1 !important;
    /* ยกเลิกความโปร่งแสงเดิม */
}

/* ลิงก์ร้านมั่งมีดีไซน์ */
footer.footer .footer-link {
    color: #60a5fa !important;
    /* สีฟ้าอ่อนให้อ่านง่าย */
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

footer.footer .footer-link:hover {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.8);
}

/* เส้นเรืองแสงด้านบนสุด */
footer.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #3b82f6, transparent);
}

/* สไตล์แจ้งเตือนกระดิ่ง */
.nav-notify {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    transition: all 0.3s ease;
    margin-left: 15px;
    text-decoration: none;
}

.nav-notify:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

.notify-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    /* สีแดง */
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0f172a;
    /* ขอบสีเดียวกับ Navbar */
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

/* แอนิเมชั่นสั่นเมื่อมีแจ้งเตือน */
.bell-ring {
    animation: ring 2s infinite;
}

@keyframes ring {

    0%,
    100% {
        transform: rotate(0);
    }

    10%,
    30% {
        transform: rotate(10deg);
    }

    20%,
    40% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(0);
    }
}