:root {
    --bg-color: #f7f8fa;
    --card-bg: #ffffff;
    --text-main: #1a1a1a;
    --text-secondary: #7e7e7e;
    --accent: #000000;
    --border-radius: 28px;
}

body, html { margin: 0; padding: 0; font-family: 'Segoe UI', sans-serif; background-color: var(--bg-color); color: var(--text-main); }
/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

/* Onboarding Enhancements */
.onboarding-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 20px;
    width: 100%;
}

.onboarding-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.onboarding-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.choice-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
}

.choice-card {
    background: #fff;
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.choice-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.choice-card.selected {
    border-color: var(--accent);
    background: #fdfdfd;
}

.choice-icon {
    width: 45px;
    height: 45px;
    background: #f0f0f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.choice-card.selected .choice-icon {
    background: var(--accent);
    color: #fff;
}

.onboarding-input-group {
    width: 100%;
    margin-bottom: 15px;
    text-align: left;
}

.onboarding-input-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    margin-left: 5px;
    color: var(--text-main);
}

.onboarding-input {
    width: 100%;
    padding: 16px;
    border-radius: 18px;
    border: 2px solid #eee;
    background: #fff;
    font-size: 1rem;
    transition: all 0.3s;
}

.onboarding-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0,0,0,0.05);
}

.progress-stepper {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    width: 100%;
    justify-content: center;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s;
}

.step-dot.active {
    width: 24px;
    border-radius: 10px;
    background: var(--accent);
}

.screen { display: none; padding: 25px; max-width: 450px; margin: 0 auto; flex-direction: column; min-height: 100vh; box-sizing: border-box; background: var(--bg-color); }
.active { display: flex; animation: fadeIn 0.4s ease; }

/* Tasarım Öğeleri */
.card { background: var(--card-bg); border-radius: var(--border-radius); padding: 20px; width: 100%; box-shadow: 0 8px 24px rgba(0,0,0,0.04); margin-bottom: 16px; box-sizing: border-box; }
.btn { width: 100%; padding: 16px; border-radius: 35px; border: none; font-weight: 600; cursor: pointer; margin-bottom: 10px; transition: 0.2s; }
.btn-black { background: var(--accent); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--accent); color: var(--accent); }
input { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid #eee; margin-bottom: 8px; box-sizing: border-box; outline: none; }

/* Üst Bilgi Alanları */
.header { display: flex; justify-content: space-between; align-items: center; margin: 20px 0; }
.days-row { display: flex; gap: 10px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 5px; }
.day-box { text-align: center; min-width: 50px; padding: 10px; border-radius: 15px; background: #fff; opacity: 0.5; font-size: 0.8rem; }
.day-box.active-day { opacity: 1; border: 2px solid #000; font-weight: bold; }

/* Liste Tasarımı */
.meal-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.meal-item:last-child { border-bottom: none; }
.delete-btn { color: #ff4757; cursor: pointer; padding: 5px; }

/* Camera Button */
.btn-add-camera {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--accent);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-add-camera:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.btn-add-camera:active {
    transform: scale(0.95);
}

#aiStatusText {
    font-weight: 600;
    animation: statusPulse 1.5s infinite;
}

@keyframes statusPulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* AI Kutusu */
#aiResponse { font-size: 0.85rem; background: #f9f9f9; padding: 15px; border-radius: 15px; margin-top: 10px; min-height: 40px; }

.navbar { 
    position: fixed; 
    bottom: 20px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: #fff; 
    width: 92%; 
    max-width: 420px;
    border-radius: 35px; 
    display: flex; 
    justify-content: space-around; 
    align-items: center;
    padding: 10px 5px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); 
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    flex: 1;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.nav-item.active-nav {
    color: var(--accent);
}

.nav-add-btn {
    background: var(--accent);
    color: #fff !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -35px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    font-size: 1.5rem !important;
}

/* Language Selection Styles */
.profile-info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.profile-info-item:last-child {
    border-bottom: none;
}
.profile-label {
    font-weight: 600;
    color: var(--text-secondary);
}
.profile-value {
    font-weight: 700;
    color: var(--text-main);
}
/* BMI Styles */
.bmi-card {
    text-align: center;
    padding: 20px;
}
.bmi-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}
.bmi-status {
    font-weight: 700;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
}
.bmi-underweight { background: #3498db; color: #fff; }
.bmi-healthy { background: #2ecc71; color: #fff; }
.bmi-overweight { background: #f1c40f; color: #fff; }
.bmi-obese { background: #e74c3c; color: #fff; }

/* Editable Profile */
.edit-input {
    width: 80px !important;
    padding: 5px 10px !important;
    border-radius: 8px !important;
    margin-bottom: 0 !important;
    text-align: right;
    font-weight: bold;
}
.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
