/**
 * Dashboard Styles
 * ไฟล์ CSS สำหรับหน้า Dashboard
 * แยกออกมาจาก dashboard.blade.php เพื่อความสะอาดและจัดการง่าย
 * 
 * รองรับ:
 * - Dark/Light Mode
 * - Responsive Design (Mobile/Desktop)
 * - Collapsible Profile Card
 */

/* Import local fonts (self-hosted, no Google dependency) */
@import url("/css/local-fonts.css");

/* ===============================================
   CSS Variables - สีและค่าคงที่
   =============================================== */
:root {
    --primary-color: #6366f1;
    --primary-light: #a5b4fc;
    --primary-dark: #4338ca;
    --secondary-color: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --shadow-soft:
        0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md:
        0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ===============================================
   Dashboard Container
   =============================================== */
.dashboard-container {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    min-height: 100vh;
    padding: 2rem 1rem;
    position: relative;
}

/* ===============================================
   Profile Card Styles - Collapsible
   =============================================== */
/**
 * Profile Card Wrapper
 * Container สำหรับ profile card ที่รองรับการหุบ/ขยาย
 */
.profile-card-wrapper {
    position: relative;
}

.profile-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.profile-card:hover {
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.08);
}

/**
 * Profile Card Collapsed State
 * เมื่อหุบ: แสดงเฉพาะรูปเล็ก ชื่อ และรหัส แบบ inline
 */
.profile-card-collapsed {
    padding: 0.75rem 1rem !important;
    padding-right: 3rem !important;
}

.profile-card-collapsed .profile-layout {
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.75rem !important;
    justify-content: flex-start !important;
}

.profile-card-collapsed .profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

/**
 * Profile Toggle Button
 * ปุ่มสำหรับหุบ/ขยาย profile card - อยู่มุมบนขวา
 */
.profile-toggle-btn {
    position: absolute;
    cursor: pointer;
    border: none;
    outline: none;
    z-index: 20;
}

.profile-toggle-btn:hover {
    transform: scale(1.05);
}

.profile-toggle-btn:active {
    transform: scale(0.95);
}

.profile-toggle-btn svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/**
 * Profile Layout - Collapsed State
 */
.profile-layout-collapsed {
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

.profile-layout-collapsed .profile-image {
    flex-shrink: 0;
}

.profile-layout-collapsed .profile-info {
    text-align: left !important;
    flex: 1;
    min-width: 0;
}

/* ซ่อน content ที่ไม่แสดง ด้วย x-cloak */
[x-cloak] {
    display: none !important;
}

.profile-avatar {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-card:hover .profile-avatar {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* ===============================================
   Menu Grid & Menu Cards
   =============================================== */
.menu-grid {
    gap: 1.5rem;
    padding: 1rem;
}

.menu-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.5rem;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.menu-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--primary-color),
        var(--primary-light)
    );
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.menu-card:hover::before {
    transform: scaleX(1);
}

.menu-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.12),
        0 4px 8px rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.95);
}

.menu-card img {
    transition: all 0.3s ease;
    filter: brightness(1) saturate(1);
}

.menu-card:hover img {
    filter: brightness(1.1) saturate(1.2);
}

.menu-title {
    transition: all 0.3s ease;
    background: linear-gradient(
        135deg,
        var(--text-primary),
        var(--primary-color)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.menu-card:hover .menu-title {
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--primary-dark)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===============================================
   Quick Action Buttons
   =============================================== */
.quick-action-btn {
    background: linear-gradient(135deg, #22448e, #2563eb, #1e40af);
    color: white;
    border-radius: 1rem;
    box-shadow:
        0 10px 20px -5px rgba(34, 68, 142, 0.3),
        0 4px 8px -2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-action-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s;
}

.quick-action-btn:hover::before {
    left: 100%;
}

.quick-action-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 20px 35px -5px rgba(34, 68, 142, 0.5),
        0 8px 15px -3px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #1e3a78, #1d4ed8, #22448e);
}

/* ===============================================
   Glass Card Effect
   =============================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.12),
        0 4px 8px rgba(0, 0, 0, 0.06);
}

/* ===============================================
   Animation Classes
   =============================================== */
.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-delay-1 {
    animation: fadeInUp 0.6s ease-out 0.1s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* ===============================================
   Statistics Cards
   =============================================== */
.stats-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.12),
        0 4px 8px rgba(0, 0, 0, 0.06);
}

.stats-card .stats-title {
    color: #64748b;
    font-weight: 600;
}

.stats-card .stats-number {
    color: #1e293b;
    font-weight: 700;
}

.stats-icon {
    color: white !important;
}

/* Specific icon colors for better visibility */
.stats-icon-green {
    color: #065f46 !important;
}

.stats-icon-orange {
    color: #9a3412 !important;
}

.stats-icon-amber {
    color: #92400e !important;
}

.stats-icon-purple {
    color: #581c87 !important;
}

.stats-icon-pink {
    color: #831843 !important;
}

/* Quick action button spacing */
.quick-action-container {
    margin-top: 3px;
}

/* ===============================================
   News Button Special Animation (Optimized for Performance)
   =============================================== */
.news-special-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb, #1d4ed8);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.news-special-btn:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

/* Gradient Shift Animation */
@keyframes gradientShift {
    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Float Gentle Animation */
@keyframes floatGentle {
    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Rotate Border Animation */
@keyframes rotateBorder {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 400% 50%;
    }
}

/* Fade In Out Animation */
@keyframes fadeInOut {
    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

/* News Badge - No animation for better performance */
.news-badge {
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

/* Shine Effect - Disabled for performance */
.news-special-btn .shine {
    display: none;
}

/* Icon Spin Animation */
.news-special-btn:hover .news-icon {
    animation: iconSpin 0.6s ease-in-out;
}

@keyframes iconSpin {
    0% {
        transform: rotate(0deg);
    }

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

/* ===============================================
   Notification Bell Effects
   =============================================== */
.notification-bell {
    position: relative;
    display: inline-block;
}

/* Glow effect for bell when has notifications */
.notification-bell.has-notifications {
    animation: bellGlow 2s ease-in-out infinite;
}

/* Ripple effect */
.notification-bell.has-notifications::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 2s ease-out infinite;
    z-index: -1;
}

/* Additional ripple for more dramatic effect */
.notification-bell.has-notifications::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 2s ease-out infinite 0.5s;
    z-index: -1;
}

/* Bell glow animation */
@keyframes bellGlow {
    0%,
    100% {
        box-shadow:
            0 0 5px rgba(59, 130, 246, 0.5),
            0 0 10px rgba(59, 130, 246, 0.3),
            0 0 15px rgba(59, 130, 246, 0.2);
    }

    50% {
        box-shadow:
            0 0 10px rgba(59, 130, 246, 0.8),
            0 0 20px rgba(59, 130, 246, 0.5),
            0 0 30px rgba(59, 130, 246, 0.3);
    }
}

/* Ripple animation */
@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        width: 60px;
        height: 60px;
        opacity: 0;
    }
}

/* Bell shake animation for extra attention */
.notification-bell.has-notifications:hover {
    animation:
        bellGlow 2s ease-in-out infinite,
        bellShake 0.5s ease-in-out;
}

@keyframes bellShake {
    0%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: rotate(-10deg);
    }

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

/* ===============================================
   Filament Database Notifications Bell Animation
   - สั่นเป็นจังหวะเมื่อมี unread notifications
   - Sound Wave Effect - คลื่นเสียงวงกลมขยายออก
   - Animation แสดง 2 วินาที แล้วหยุด 5 วินาที (รวม 7 วินาที)
   - Light mode: สีน้ำเงินสว่าง / Dark mode: สีขาว
   =============================================== */

/* Animation สำหรับกระดิ่งของ Filament เมื่อมี badge (unread notifications) */
.fi-topbar-database-notifications-btn.has-unread-notifications {
    position: relative;
    overflow: visible;
}

/* Animation สั่นเป็นจังหวะอัตโนมัติ - แสดง 2 วิ หยุด 5 วิ (รวม 7 วิ) */
.fi-topbar-database-notifications-btn.has-unread-notifications svg {
    animation: filamentBellRing 7s ease-in-out infinite;
    transform-origin: top center;
    position: relative;
    z-index: 2;
}

/* Light mode - คลื่นเสียงสีน้ำเงินสว่าง */
/* คลื่นเสียงวงที่ 1 - ขยายออกและจางหาย */
.fi-topbar-database-notifications-btn.has-unread-notifications::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(59, 130, 246, 0.9);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: soundWaveLight 7s ease-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* คลื่นเสียงวงที่ 2 - หน่วงเวลาเล็กน้อย */
.fi-topbar-database-notifications-btn.has-unread-notifications::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(59, 130, 246, 0.7);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: soundWaveLight 7s ease-out infinite 0.5s;
    pointer-events: none;
    z-index: 1;
}

/* Keyframes สำหรับคลื่นเสียง Light mode - สีน้ำเงินสว่าง */
/* Animation จริง 0-28% (2 วิ) แล้วหยุด 28-100% (5 วิ) */
@keyframes soundWaveLight {
    0% {
        width: 20px;
        height: 20px;
        opacity: 0.9;
        border-width: 3px;
        border-color: rgba(59, 130, 246, 0.9);
        box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
    }

    14% {
        opacity: 0.5;
        border-width: 2px;
        box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
    }

    28% {
        width: 60px;
        height: 60px;
        opacity: 0;
        border-width: 1px;
        box-shadow: 0 0 0px rgba(59, 130, 246, 0);
    }

    /* หยุดพักตั้งแต่ 28% ถึง 100% (5 วินาที) */
    29%,
    100% {
        width: 20px;
        height: 20px;
        opacity: 0;
        border-width: 0px;
        box-shadow: none;
    }
}

/* Keyframes สำหรับการสั่นของกระดิ่ง - แสดง 2 วิ หยุด 5 วิ */
/* Animation จริง 0-28% (2 วิ) แล้วหยุด 28-100% (5 วิ) */
@keyframes filamentBellRing {
    0% {
        transform: rotate(0deg);
    }

    2% {
        transform: rotate(20deg);
    }

    4% {
        transform: rotate(-18deg);
    }

    6% {
        transform: rotate(15deg);
    }

    8% {
        transform: rotate(-12deg);
    }

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

    12% {
        transform: rotate(-8deg);
    }

    14% {
        transform: rotate(6deg);
    }

    16% {
        transform: rotate(-5deg);
    }

    18% {
        transform: rotate(4deg);
    }

    20% {
        transform: rotate(-3deg);
    }

    22% {
        transform: rotate(2deg);
    }

    24% {
        transform: rotate(-1deg);
    }

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

/* Badge เด้งเบาๆ - แสดง 2 วิ หยุด 5 วิ */
.fi-topbar-database-notifications-btn.has-unread-notifications .fi-badge {
    animation: badgePulse 7s ease-in-out infinite;
    position: relative;
    z-index: 3;
}

@keyframes badgePulse {
    0%,
    28%,
    100% {
        transform: scale(1);
    }

    7% {
        transform: scale(1.2);
    }

    14% {
        transform: scale(1);
    }

    21% {
        transform: scale(1.15);
    }
}

/* ===============================================
   Dark mode - คลื่นเสียงสีขาวสว่าง
   =============================================== */
.dark .fi-topbar-database-notifications-btn.has-unread-notifications::before {
    border-color: rgba(255, 255, 255, 0.9);
    animation: soundWaveDark 7s ease-out infinite;
}

.dark .fi-topbar-database-notifications-btn.has-unread-notifications::after {
    border-color: rgba(255, 255, 255, 0.7);
    animation: soundWaveDark 7s ease-out infinite 0.5s;
}

@keyframes soundWaveDark {
    0% {
        width: 20px;
        height: 20px;
        opacity: 1;
        border-width: 3px;
        border-color: rgba(255, 255, 255, 0.9);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    }

    14% {
        opacity: 0.5;
        border-width: 2px;
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    }

    28% {
        width: 60px;
        height: 60px;
        opacity: 0;
        border-width: 1px;
        box-shadow: 0 0 0px rgba(255, 255, 255, 0);
    }

    /* หยุดพักตั้งแต่ 28% ถึง 100% (5 วินาที) */
    29%,
    100% {
        width: 20px;
        height: 20px;
        opacity: 0;
        border-width: 0px;
        box-shadow: none;
    }
}

/* ===============================================
   Profile Layout - Responsive
   =============================================== */
@media (min-width: 1024px) {
    .profile-layout {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        margin: 10px;
    }
}

@media (max-width: 1023px) {
    .profile-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        text-align: center;
        margin: 5px;
    }
}

/* ===============================================
   Floating Link Button Styles
   =============================================== */
.floating-link-btn {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    border-radius: 1rem;
    padding: 0.875rem 2rem;
    box-shadow:
        0 10px 40px rgba(102, 126, 234, 0.5),
        0 0 60px rgba(102, 126, 234, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    white-space: nowrap;
    width: auto;
    animation:
        floatUpDown 3s ease-in-out infinite,
        gradientMove 4s ease infinite;
    /* GPU Acceleration hints */
    will-change: transform, background-position;
    transform: translateZ(0);
}

.floating-link-btn img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    object-fit: cover;
    flex-shrink: 0;
}

.floating-link-btn span {
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.025em;
    white-space: nowrap;
}

/* Animation: ลอยขึ้นลงเบา ๆ */
@keyframes floatUpDown {
    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Animation: สีไล่เปลี่ยนแบบ smooth */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Animation: สั่นเพื่อดึงดูดความสนใจ */
@keyframes shakeAttention {
    0%,
    100% {
        transform: translateY(-15px) translateX(0) rotate(0deg);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateY(-15px) translateX(-4px) rotate(-2deg);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateY(-15px) translateX(4px) rotate(2deg);
    }
}

/* Class สำหรับเพิ่มการสั่น */
.floating-link-btn.shake-now {
    animation:
        shakeAttention 0.6s ease-in-out,
        gradientMove 4s ease infinite !important;
}

/* สำหรับหลายปุ่ม - แสดงเรียงกันไม่ซ้อน */
.floating-buttons-container {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: auto;
    max-width: 90vw;
}

/* ===============================================
   Dashboard Services Container
   =============================================== */
.dashboard-services-container {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.04);
}

.dashboard-services-title {
    text-align: center;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.dashboard-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-width: 100%;
    margin: 0 auto;
}

.dashboard-service-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.625rem 0.875rem;
    text-decoration: none;
    color: #475569;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.8125rem;
    font-weight: 600;
    min-height: 2.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.dashboard-service-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(99, 102, 241, 0.08),
        transparent
    );
    transition: left 0.5s ease;
}

.dashboard-service-btn:hover::before {
    left: 100%;
}

.dashboard-service-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px -2px rgba(99, 102, 241, 0.15);
    color: #4f46e5;
}

.dashboard-service-btn:active {
    transform: translateY(-1px);
}

.dashboard-service-icon {
    margin-right: 0.625rem;
    font-size: 1.25rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-family: "Material Icons" !important;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    text-transform: none;
    white-space: nowrap;
    word-wrap: normal;
    -webkit-font-smoothing: antialiased;
}

.dashboard-service-btn:hover .dashboard-service-icon {
    transform: scale(1.1);
}

.dashboard-service-text {
    flex: 1;
    text-align: left;
    line-height: 1.3;
    font-size: 0.8125rem;
}

/* สีไอคอนแต่ละปุ่ม - โทนสีอ่อน เรียบหรู */
.dashboard-service-btn:nth-child(1) .dashboard-service-icon {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
}

.dashboard-service-btn:nth-child(2) .dashboard-service-icon {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    color: #0369a1;
}

.dashboard-service-btn:nth-child(3) .dashboard-service-icon {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #4338ca;
}

.dashboard-service-btn:nth-child(4) .dashboard-service-icon {
    background: linear-gradient(135deg, #ccfbf1, #99f6e4);
    color: #0f766e;
}

.dashboard-service-btn:nth-child(5) .dashboard-service-icon {
    background: linear-gradient(135deg, #ddd6fe, #c4b5fd);
    color: #6d28d9;
}

.dashboard-service-btn:nth-child(6) .dashboard-service-icon {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    color: #be185d;
}

.dashboard-service-btn:nth-child(7) .dashboard-service-icon {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
}

.dashboard-service-btn:nth-child(8) .dashboard-service-icon {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}

.dashboard-service-btn:nth-child(9) .dashboard-service-icon {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #3730a3;
}

/* ===============================================
   Dark Mode Styles
   =============================================== */
.dark .menu-card {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(71, 85, 105, 0.3);
}

.dark .profile-card {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(71, 85, 105, 0.3);
}

.dark .profile-toggle-btn {
    background: rgba(71, 85, 105, 0.5);
}

.dark .profile-toggle-btn:hover {
    background: rgba(71, 85, 105, 0.7);
}

.dark .menu-title {
    background: linear-gradient(135deg, #e2e8f0, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dark mode styles for statistics */
.dark .stats-card {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(71, 85, 105, 0.3);
}

.dark .stats-card .stats-title {
    color: #cbd5e1;
}

.dark .stats-card .stats-number {
    color: #f8fafc;
}

.dark .stats-icon-green,
.dark .stats-icon-orange,
.dark .stats-icon-amber,
.dark .stats-icon-purple,
.dark .stats-icon-pink {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Dark Mode Support สำหรับปุ่ม */
.dark .floating-link-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    border-color: rgba(255, 255, 255, 0.2);
}

.dark .dashboard-services-container {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(71, 85, 105, 0.5);
}

.dark .dashboard-services-title {
    color: #f1f5f9;
}

.dark .dashboard-service-btn {
    background: rgba(51, 65, 85, 0.6);
    border-color: rgba(71, 85, 105, 0.5);
    color: #cbd5e1;
}

.dark .dashboard-service-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
}

/* ===============================================
   Responsive Design - Mobile
   =============================================== */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem 0.5rem;
    }

    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
        padding: 0.5rem;
    }

    .profile-card {
        margin: 0 0.5rem;
    }

    /* Profile Card Responsive - Mobile */
    .profile-toggle-btn {
        top: 0.5rem !important;
        right: 0.5rem !important;
        padding: 0.375rem !important;
    }

    .profile-toggle-btn svg {
        width: 1rem !important;
        height: 1rem !important;
    }

    /* Collapsed state on mobile */
    .profile-card-collapsed {
        padding: 0.75rem !important;
    }

    .profile-layout-collapsed {
        gap: 0.75rem !important;
    }

    /* Wave Animation - ลดความเข้มข้นบนมือถือเพื่อ performance */
    .wave {
        height: 80%;
    }

    .wave-1,
    .wave-2,
    .wave-3,
    .wave-4 {
        animation-duration: 30s !important;
    }
}

@media (min-width: 640px) {
    .dashboard-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .floating-buttons-container {
        top: 40px;
        gap: 0.75rem;
        max-width: 95vw;
    }

    .floating-link-btn {
        padding: 0.75rem 1.5rem;
    }

    .floating-link-btn img {
        width: 2rem;
        height: 2rem;
    }

    .floating-link-btn span {
        font-size: 0.95rem;
    }
}

@media (min-width: 768px) {
    .dashboard-services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1280px) {
    .dashboard-services-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.875rem;
    }
}

@media (max-width: 639px) {
    .dashboard-services-container {
        padding: 1rem;
    }

    .dashboard-services-title {
        font-size: 1rem;
        margin-bottom: 0.875rem;
    }

    .dashboard-service-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        min-height: 2.5rem;
    }

    .dashboard-service-icon {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 1.125rem;
        margin-right: 0.5rem;
    }

    .dashboard-service-text {
        font-size: 0.75rem;
    }
}

/* ===============================================
   Corner Ribbon - ริบบิ้นที่มุมบล็อก
   =============================================== */
.hr-v1-card {
    overflow: visible;
}

.corner-ribbon {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 20;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    box-shadow:
        0 4px 14px rgba(30, 58, 138, 0.45),
        0 2px 8px rgba(30, 58, 138, 0.35),
        0 0 0 2px rgba(255, 255, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: rotate(5deg);
    pointer-events: none;
    overflow: hidden;
}

/* สร้างเอฟเฟกต์ริบบิ้นที่มุม - เงาและมิติ */
.corner-ribbon::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 18px 18px 0;
    border-color: transparent #1e40af transparent transparent;
    transform: translate(10px, -10px);
    filter: drop-shadow(2px -2px 3px rgba(0, 0, 0, 0.25));
}

.corner-ribbon::after {
    content: "";
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 10px 0 0;
    border-color: #1e3a8a transparent transparent transparent;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.ribbon-text {
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 700;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.3),
        0 0 8px rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    display: block;
    letter-spacing: 0.03em;
    position: relative;
    z-index: 1;
}

/* Dark mode support */
.dark .corner-ribbon {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
    box-shadow:
        0 4px 12px rgba(37, 99, 235, 0.5),
        0 2px 6px rgba(37, 99, 235, 0.4),
        0 0 0 2px rgba(255, 255, 255, 0.1);
}

.dark .corner-ribbon::before {
    border-color: transparent #3b82f6 transparent transparent;
}

.dark .corner-ribbon::after {
    border-color: #2563eb transparent transparent transparent;
}

/* Responsive */
@media (max-width: 640px) {
    .corner-ribbon {
        top: -6px;
        right: -6px;
        padding: 0.375rem 0.75rem;
        transform: rotate(2deg);
    }

    .ribbon-text {
        font-size: 0.75rem;
    }

    .corner-ribbon::before {
        border-width: 0 16px 16px 0;
        transform: translate(6px, -6px);
    }

    .corner-ribbon::after {
        border-width: 5px 10px 0 0;
    }
}

/* ===============================================
   L99 Member Table Styles - ตารางสมาชิกอาศรม
   =============================================== */
/* Container สำหรับตาราง */
.overflow-x-auto table {
    border-radius: 0.75rem;
    overflow: hidden;
}

/* Header ของตาราง - สีม่วง */
table thead tr.bg-gradient-to-r {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #6366f1 100%);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Dark mode สำหรับ header */
.dark table thead tr.bg-gradient-to-r {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
}

/* Row hover effect - เปลี่ยนสีอย่างเดียว */
.member-table-row {
    transition: background-color 0.2s ease-in-out !important;
    background-color: transparent !important;
}

.member-table-row:hover {
    background-color: #e0e7ff !important;
    /* indigo-100 */
}

/* Dark mode row hover */
.dark .member-table-row:hover {
    background-color: rgba(99, 102, 241, 0.25) !important;
}

/* Ensure table rows are visible */
.member-table-row td {
    background-color: transparent !important;
}

.member-table-row:hover td {
    background-color: transparent !important;
}

/* Fallback สำหรับ table tbody tr */
table tbody tr.member-table-row {
    transition: background-color 0.2s ease-in-out !important;
}

table tbody tr.member-table-row:hover {
    background-color: #e0e7ff !important;
}

.dark table tbody tr.member-table-row:hover {
    background-color: rgba(99, 102, 241, 0.25) !important;
}

/* Border styling */
table tbody tr {
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.dark table tbody tr {
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

/* Cell padding และ spacing */
table td,
table th {
    transition: background-color 0.2s ease;
}

/* Input fields ในตาราง */
table .fi-input-wrapper {
    border-radius: 0.5rem;
}

/* Button ในตาราง */
table .fi-btn {
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

table .fi-btn:hover {
    transform: scale(1.05);
}

/* Select dropdown ในตาราง */
table select {
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

table select:hover {
    border-color: #6366f1;
}

/* Text input ในตาราง */
table input[type="text"] {
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

table input[type="text"]:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Checkbox styling */
table input[type="checkbox"] {
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

/* Icon button ในตาราง */
table .fi-icon-btn {
    transition: all 0.2s ease;
}

table .fi-icon-btn:hover {
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    table thead tr th,
    table tbody tr td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }

    table thead tr th {
        font-size: 0.75rem;
    }
}

/* ===============================================
   3D Game Button Styles
   ปุ่มเข้าเกม 3D Nature World
   =============================================== */

/**
 * Game 3D Button
 * ปุ่มพิเศษสำหรับเข้าเกม 3D พร้อม effects
 */
.game-3d-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: game-btn-glow 3s ease-in-out infinite;
}

.game-3d-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5) !important;
}

.game-3d-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* Shine effect */
.game-3d-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.5s;
    z-index: 1;
}

.game-3d-btn:hover .game-3d-shine {
    left: 100%;
}

/* Badge */
.game-3d-badge {
    animation: badge-pulse 2s ease-in-out infinite;
}

/* Glow animation */
@keyframes game-btn-glow {
    0%,
    100% {
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    }

    50% {
        box-shadow:
            0 4px 25px rgba(16, 185, 129, 0.6),
            0 0 30px rgba(16, 185, 129, 0.2);
    }
}

@keyframes badge-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Dark mode support */
.dark .game-3d-btn {
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.dark .game-3d-btn:hover {
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .game-3d-btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
    }

    .game-3d-btn .text-2xl {
        font-size: 1.25rem;
    }

    .game-3d-badge {
        font-size: 0.6rem !important;
        padding: 0.125rem 0.375rem !important;
    }
}

/* ===============================================
   Birthday Feature Styles
   - Modal Popup with Confetti
   - Inline Birthday Card
   =============================================== */

/* Birthday Inline Card - แสดงใน Profile Section */
.birthday-inline-card {
    background: linear-gradient(135deg, #fef3c7, #fde68a, #fbbf24);
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
    animation: birthdayPulse 2s ease-in-out infinite;
    border: 2px solid rgba(251, 191, 36, 0.5);
}

.dark .birthday-inline-card {
    background: linear-gradient(135deg, #78350f, #92400e, #b45309);
    border-color: rgba(251, 191, 36, 0.3);
}

.birthday-inline-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.birthday-inline-icon {
    font-size: 1.75rem;
    animation: birthdayBounce 1s ease-in-out infinite;
}

.birthday-inline-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.birthday-inline-title {
    font-weight: 700;
    font-size: 1rem;
    color: #78350f;
}

.dark .birthday-inline-title {
    color: #fef3c7;
}

.birthday-inline-subtitle {
    font-size: 0.8rem;
    color: #92400e;
}

.dark .birthday-inline-subtitle {
    color: #fde68a;
}

@keyframes birthdayPulse {
    0%,
    100% {
        box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
    }

    50% {
        box-shadow:
            0 4px 25px rgba(251, 191, 36, 0.5),
            0 0 20px rgba(251, 191, 36, 0.2);
    }
}

@keyframes birthdayBounce {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* ===============================================
   Birthday Modal Styles
   =============================================== */

/* Modal Overlay */
.birthday-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    /* สูงกว่า modal อื่นๆ เพื่อให้แสดงเป็นอันแรกเสมอ */
    padding: 1rem;
}

/* Modal Content Box */
.birthday-modal-content {
    position: relative;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(254, 243, 199, 0.95) 100%
    );
    border-radius: 1.5rem;
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 60px rgba(251, 191, 36, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(251, 191, 36, 0.4);
}

.dark .birthday-modal-content {
    background: linear-gradient(
        180deg,
        rgba(30, 30, 30, 0.98) 0%,
        rgba(78, 53, 15, 0.95) 100%
    );
    border-color: rgba(251, 191, 36, 0.3);
}

/* Close Button */
.birthday-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    color: #78350f;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.birthday-modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.dark .birthday-modal-close {
    background: rgba(255, 255, 255, 0.1);
    color: #fde68a;
}

.dark .birthday-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Header */
.birthday-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.birthday-modal-icon {
    font-size: 4rem;
    animation: birthdayIconFloat 3s ease-in-out infinite;
    margin-bottom: 0.5rem;
}

@keyframes birthdayIconFloat {
    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.birthday-modal-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #b45309, #d97706, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: 0.05em;
}

.dark .birthday-modal-title {
    background: linear-gradient(135deg, #fde68a, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.birthday-modal-name {
    font-size: 1.125rem;
    color: #92400e;
    margin: 0.5rem 0 0;
    font-weight: 500;
}

.dark .birthday-modal-name {
    color: #fde68a;
}

/* Divider */
.birthday-modal-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.birthday-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(180, 83, 9, 0.3),
        transparent
    );
}

.dark .birthday-divider-line {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(253, 230, 138, 0.3),
        transparent
    );
}

.birthday-divider-icon {
    font-size: 1.25rem;
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* โอวาท Container - Formal Style */
.birthday-ovadha-container {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 1rem;
    padding: 1.5rem;
    border-left: 4px solid #b45309;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.dark .birthday-ovadha-container {
    background: rgba(0, 0, 0, 0.3);
    border-left-color: #fbbf24;
}

/* รูปพระเดชพระคุณหลวงพ่อ - Respectful Image Styling */
.birthday-ovadha-image-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.birthday-ovadha-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid #b45309;
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(180, 83, 9, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #fef3c7, #fbbf24);
    padding: 2px;
}

.dark .birthday-ovadha-image {
    border-color: #fbbf24;
    box-shadow:
        0 0 0 4px rgba(0, 0, 0, 0.5),
        0 0 25px rgba(251, 191, 36, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive - ปรับขนาดรูปบน Mobile */
@media (max-width: 640px) {
    .birthday-ovadha-image {
        width: 80px;
        height: 80px;
    }
}

.birthday-ovadha-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #78350f;
    margin: 0 0 1rem;
    text-align: center;
    letter-spacing: 0.1em;
}

.dark .birthday-ovadha-title {
    color: #fde68a;
}

.birthday-ovadha-content {
    text-align: center;
    line-height: 2;
    color: #451a03;
    font-size: 1rem;
}

.birthday-ovadha-content p {
    margin: 0;
    font-weight: 500;
}

.dark .birthday-ovadha-content {
    color: #fef3c7;
}

.birthday-ovadha-date {
    text-align: right;
    font-size: 0.875rem;
    color: #92400e;
    margin: 1.5rem 0 0;
    font-style: italic;
}

.dark .birthday-ovadha-date {
    color: #fde68a;
}

/* Footer */
.birthday-modal-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.birthday-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #b45309, #d97706);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(180, 83, 9, 0.4);
}

.birthday-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(180, 83, 9, 0.5);
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.dark .birthday-modal-btn {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #451a03;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.dark .birthday-modal-btn:hover {
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.5);
}

/* ===============================================
   Confetti Animation
   =============================================== */

.confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100000;
    /* สูงกว่า birthday-modal-overlay */
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    top: -20px;
    animation: confettiFall 4s linear forwards;
    opacity: 0.9;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-20px) rotate(0deg) scale(1);
        opacity: 1;
    }

    25% {
        transform: translateY(25vh) rotate(180deg) scale(0.9);
    }

    50% {
        transform: translateY(50vh) rotate(360deg) scale(1);
    }

    75% {
        transform: translateY(75vh) rotate(540deg) scale(0.9);
    }

    100% {
        transform: translateY(100vh) rotate(720deg) scale(0.8);
        opacity: 0;
    }
}

/* Add random horizontal movement */
.confetti-piece:nth-child(odd) {
    animation: confettiFallLeft 4s linear forwards;
}

.confetti-piece:nth-child(even) {
    animation: confettiFallRight 4s linear forwards;
}

@keyframes confettiFallLeft {
    0% {
        transform: translateY(-20px) translateX(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) translateX(-50px) rotate(720deg);
        opacity: 0;
    }
}

@keyframes confettiFallRight {
    0% {
        transform: translateY(-20px) translateX(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) translateX(50px) rotate(-720deg);
        opacity: 0;
    }
}

/* ===============================================
   Birthday Modal Responsive
   =============================================== */

@media (max-width: 640px) {
    .birthday-modal-content {
        padding: 1.5rem;
        max-width: 95%;
    }

    .birthday-modal-icon {
        font-size: 3rem;
    }

    .birthday-modal-title {
        font-size: 1.5rem;
    }

    .birthday-ovadha-content {
        font-size: 0.9rem;
        line-height: 1.8;
    }

    .birthday-modal-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .birthday-inline-card {
        padding: 0.5rem 0.75rem;
    }

    .birthday-inline-icon {
        font-size: 1.5rem;
    }

    .birthday-inline-title {
        font-size: 0.9rem;
    }

    .birthday-inline-subtitle {
        font-size: 0.75rem;
    }
}
