body {
    /* فعال‌سازی اعداد فارسی در فونت‌های استاندارد */
    font-feature-settings: "ss02", "cv02", "locl";
    /* فونت‌های فارسی قبل از Outfit اضافه شدند تا اعداد درست نمایش داده شوند */
    font-family: 'Vazirmatn', 'IRANSans', 'Yekan Bakh', 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #f8fafc; /* پس‌زمینه روشن */
    color: #334155; /* رنگ متن تیره برای خوانایی */
    overflow-x: hidden;
}

/* پس‌زمینه متحرک اما با رنگ‌های بسیار ملایم و روشن */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.05), transparent 25%),
        radial-gradient(circle at 50% 80%, rgba(236, 72, 153, 0.05), transparent 25%);
    z-index: -1;
    animation: pulse 15s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.main-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* کارت‌های تمیز و سفید به جای شیشه‌ای تیره */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    border-radius: 1.5rem;
    padding: 3rem;
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px -10px rgba(0, 0, 0, 0.12);
}

/* حذف درخشش نئونی و استفاده از رنگ آبی پررنگ */
.neon-text {
    color: #2563eb;
    text-shadow: none;
    font-weight: 700;
}

/* ورودی‌های فرم ساده و روشن */
.glass-input {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
    border-radius: 0.75rem;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.glass-input:focus {
    background: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.15) !important;
    outline: none;
}

.glass-input::placeholder {
    color: #94a3b8;
}

select.glass-input option {
    background: #ffffff;
    color: #1e293b;
}

/* دکمه‌های ساده به جای نئونی */
.btn-neon {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 1rem;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.btn-neon:hover {
    background: #1d4ed8;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
    color: white;
}

/* داشبورد و آمار */
.metric-badge {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.3s;
}

.metric-badge:hover {
    transform: translateY(-3px);
    background: #e2e8f0;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    text-shadow: none;
}

/* ===================================
   USER INFO BADGES
   =================================== */
.info-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    color: #0369a1;
    letter-spacing: 0.5px;
}

.disease-badge {
    background: #fef3c7;
    border-color: #fde68a;
    color: #b45309;
}

.safe-badge {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #15803d;
}

/* ===================================
   DAY TABS
   =================================== */
.day-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.day-tabs::-webkit-scrollbar {
    height: 4px;
}

.day-tabs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.day-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem 1.2rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    min-width: 70px;
}

.day-tab:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

.day-tab.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.day-num {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.day-name {
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 2px;
}

/* ===================================
   DAY CONTENT AREAS
   =================================== */
.day-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===================================
   RECIPE CARDS
   =================================== */
.recipe-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #8b5cf6;
    border-radius: 1rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.recipe-card:hover {
    background: #f8fafc;
    border-left-color: #2563eb;
    transform: translateX(4px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.recipe-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.recipe-meal-type {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #db2777;
    margin-bottom: 0.25rem;
}

.recipe-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.recipe-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.recipe-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.recipe-badge.veg {
    background: #dcfce7; border: 1px solid #bbf7d0; color: #16a34a;
}

.recipe-badge.egg {
    background: #fef3c7; border: 1px solid #fde68a; color: #d97706;
}

.recipe-badge.nonveg {
    background: #fee2e2; border: 1px solid #fecaca; color: #dc2626;
}

.recipe-badge.safe {
    background: #dcfce7; border: 1px solid #bbf7d0; color: #16a34a;
}

.recipe-badge.caution {
    background: #fee2e2; border: 1px solid #fecaca; color: #dc2626;
}

.recipe-body {
    padding: 1.25rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .recipe-body {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.recipe-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0284c7;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #e0f2fe;
}

/* Ingredients List */
.ingredient-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ingredient-list li {
    padding: 0.35rem 0;
    font-size: 0.95rem;
    color: #475569;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.ingredient-list li::before {
    content: "•";
    color: #8b5cf6;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.4;
    flex-shrink: 0;
}

/* Cooking Steps */
.step-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
}

.step-list li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: #475569;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.5;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    font-size: 0.7rem;
    font-weight: 700;
    color: #0369a1;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ===================================
   LEGACY MEAL CARD
   =================================== */
.meal-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #8b5cf6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.meal-card:hover {
    background: #f8fafc;
    transform: translateX(5px);
    border-left-color: #2563eb;
}

.meal-title {
    color: #db2777;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meal-items {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.meal-items li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: #334155;
}

.meal-items li:before {
    content: "🍽️";
    font-size: 1.2rem;
    margin-right: 0.75rem;
}

/* ===================================
   DISCLAIMER
   =================================== */
.disclaimer {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    font-size: 0.85rem;
    color: #92400e;
    line-height: 1.6;
}

.disclaimer p { margin: 0; }

.disclaimer-header {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #b45309;
    margin-bottom: 0.5rem;
}

.disclaimer-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    background: #fef3c7;
}

.disclaimer-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ===================================
   PDF DOWNLOAD BUTTON
   =================================== */
.btn-pdf {
    background: #8b5cf6;
    color: #fff;
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px -1px rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
}

.btn-pdf:hover {
    background: #7c3aed;
    box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
    color: #fff;
}

/* ===================================
   SHOPPING LIST
   =================================== */
.shopping-list-section {
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
}

.shopping-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.shopping-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.shopping-card:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.shopping-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: #334155;
}

.shopping-item::before {
    content: "☐";
    color: #0284c7;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.shopping-count {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.5rem;
    text-align: center;
    font-style: italic;
}

/* ===================================
   WORKOUT SECTION
   =================================== */
.workout-section {
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
}

.workout-tab.active {
    background: #16a34a !important;
    border-color: #16a34a !important;
    color: #fff !important;
}

/* ===================================
   EXERCISE CARDS
   =================================== */
.exercise-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #22c55e;
    border-radius: 1rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.exercise-card:hover {
    background: #f8fafc;
    border-left-color: #2563eb;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.exercise-card.rest-card {
    border-left-color: #f59e0b;
}

.exercise-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.exercise-title-section {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.exercise-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.exercise-detail {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0284c7;
    letter-spacing: 0.5px;
}

.exercise-body {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #f1f5f9;
}

.exercise-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.muscle-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

.rest-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #d97706;
}

.workout-note {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: #92400e;
}
/* اجبار تمام لیبل‌های فرم‌ها به رنگ تیره و ساده */
.form-label {
    color: #334155 !important; /* رنگ خاکستری تیره استاندارد */
}