/* استایل‌های پایه */

@font-face {
	font-family: bkoodak;
	font-style: normal;
	font-weight: 900;
	src: url('../font/farsi/BKoodakBold.eot') format('eot'),  /* IE6–8 */
		 url('../font/farsi/BKoodakBold.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
		 url('../font/farsi/BKoodakBold.ttf') format('truetype');  /* Saf3—5, Chrome4+, FF3.5, Opera 10+ */
  }


/* === استایل‌های پایه === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: bkoodak;
}

body {    
    background-color:#f8f9fa;
    color: #333;
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    margin: 0;
    padding: 0;
}

/* کانتینر فرم */
.health-form-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.form-title {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
}

/* مراحل فرم */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* استایل‌های فرم */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

input[type="text"],
input[type="number"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border 0.3s;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.radio-group {
    display: flex;
    gap: 15px;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

/* دکمه‌ها */
button {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.next-btn, .submit-btn {
    background-color: #3498db;
    color: white;
}

.next-btn:hover, .submit-btn:hover {
    background-color: #2980b9;
}

.prev-btn {
    background-color: #95a5a6;
    color: white;
}

.prev-btn:hover {
    background-color: #7f8c8d;
}

.diary-btn {
    background-color: #27ae60;
    color: white;
    width: 100%;
    padding: 15px;
    font-size: 18px;
    margin-top: 20px;
}

.diary-btn:hover {
    background-color: #219653;
}

/* فوتر فرم */
.form-footer {
    margin-top: 30px;
    text-align: center;
}

/* پیام‌های وضعیت */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .health-form-container {
        padding: 15px;
        margin: 15px;
    }
}

/* === استایل‌های فرم‌ها === */
.form-container {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    margin: 30px auto;
    max-width: 800px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

button,
.btn {
    padding: 12px 25px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

button:hover,
.btn:hover {
    background: #2980b9;
}

/* === استایل‌های هدر و فوتر === */
header {
    background: #2c3e50;
    color: white;
    padding: 20px 0;
    margin-bottom: 30px;
}

header h1 {
    text-align: center;
}

footer {
    background: #2c3e50;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 30px;
}

/* === استایل‌های صفحات خاص === */

/* صفحه ثبت نام و ورود */
.auth-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* === استایل‌های رسپانسیو === */
@media (max-width: 768px) {
    .form-container,
    .auth-container,
    .diary-container {
        padding: 15px;
        margin: 15px;
    }
    
    input, select, textarea, button {
        padding: 10px;
    }
}


/* استایل‌های یادآمد غذایی */
.diary-container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 25px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.diary-title {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 10px;
    font-size: 32px;
}

.diary-subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 18px;
}

/* نوار پیشرفت */
.timeline-progress {
    margin: 40px 0;
    position: relative;
    direction: rtl;
    font-size: larger;    
}

.progress-bar {
    height: 6px;
    background: #3498db;
    border-radius: 3px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    transition: width 0.3s;
    z-index: 1;
}

.day-dots {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;    
}

.day-dot {
    width: 40px;
    height: 40px;
    background: #ecf0f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    color: #7f8c8d;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-size: small;    
}

.day-dot.completed {
    background: #3498db;
    color: white;
}

.day-dot:hover {
    transform: scale(1.1);
}

/* استایل روزها */
.day-container {
    animation: fadeIn 0.5s ease;
}

.day-header {
    color: #2c3e50;
    text-align: center;
    margin: 20px 0;
    font-size: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

/* استایل وعده‌های غذایی */
.meals-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.meal-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.meal-card:hover {
    transform: translateY(-5px);
}

.meal-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.meal-header svg {
    width: 24px;
    height: 24px;
    fill: #3498db;
    margin-left: 10px;
}

.meal-header h3 {
    margin: 0;
    color: #2c3e50;
}

/* استایل آیتم‌های غذایی */
.food-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ddd;
}

.food-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.food-item input,
.food-item textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.food-item textarea {
    min-height: 60px;
    resize: vertical;
}

/* دکمه‌ها */
.add-food-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    margin-top: 10px;
    width: 100%;
    transition: background 0.3s;
}

.add-food-btn:hover {
    background: #219653;
}

.remove-food-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}

.remove-food-btn:hover {
    background: #c0392b;
}

/* ناوبری فرم */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.nav-btn {
    padding: 12px 25px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.nav-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.nav-btn:hover:not(:disabled) {
    background: #2980b9;
}

.submit-btn {
    padding: 12px 30px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #219653;
}

/* انیمیشن‌ها */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* رسپانسیو */
@media (max-width: 768px) {
    .meals-container {
        grid-template-columns: 1fr;
    }
    
    .diary-container {
        padding: 15px;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-btn, .submit-btn {
        width: 100%;
    }
}


.profile-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.profile-header h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.profile-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.profile-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.profile-section h2 {
    color: #3498db;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-info {
    margin-bottom: 1.5rem;
}

.user-info p {
    margin: 0.5rem 0;
}

.info-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-item {
    flex: 1;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
}

.info-label {
    font-weight: bold;
    color: #555;
    display: block;
    margin-bottom: 0.3rem;
}

.info-value {
    color: #2c3e50;
}

.password-change-form {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-primary, .btn-edit {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: #3498db;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-edit {
    background: #f8f9fa;
    color: #3498db;
    border: 1px solid #3498db;
    margin-top: 1rem;
}

.btn-edit:hover {
    background: #e3f2fd;
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert.error {
    background: #fdecea;
    color: #d32f2f;
}

.alert.success {
    background: #e8f5e9;
    color: #388e3c;
}

.alert.info {
    background: #e3f2fd;
    color: #1976d2;
}

.food-diary-container {
    margin-top: 1rem;
}

.diary-day {
    margin-bottom: 2rem;
}

.diary-day h3 {
    color: #e91e63;
    margin-bottom: 0.5rem;
}

.meal-section {
    margin-bottom: 1.5rem;
}

.meal-section h4 {
    color: #673ab7;
    margin: 1rem 0 0.5rem;
}

.food-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.food-table th, .food-table td {
    padding: 0.75rem;
    text-align: right;
    border: 1px solid #ddd;
}

.food-table th {
    background-color: #f2f2f2;
    font-weight: 600;
}

@media (max-width: 768px) {
    .info-row {
        flex-direction: column;
    }
}



/* استایل‌های عمومی */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* استایل‌های راهنما */
.guide-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
}

.infographic {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.step {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 2rem;
    width: 100%;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.step-icon {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.step h3 {
    color: #2c3e50;
    margin-top: 0;
}

.step p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

.step-arrow {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid #3498db;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
}

.badge.completed {
    background: #2ecc71;
    color: white;
}

.badge.pending {
    background: #f39c12;
    color: white;
}

.guide-footer {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
}

/* استایل‌های موبایل */
@media (max-width: 768px) {
    .profile-container, .edit-meal-container, .edit-food-container {
        padding: 1rem;
    }
    
    .food-table {
        display: block;
        overflow-x: auto;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .step {
        padding: 1.5rem;
    }
    
    .step-icon {
        font-size: 2.5rem;
    }
    
    .infographic {
        gap: 1.5rem;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
}

/* استایل‌های دسکتاپ */
@media (min-width: 769px) {
    .infographic {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .step {
        width: 30%;
    }
    
    .step-arrow {
        align-self: center;
    }
}

/* استایل‌های دکمه‌ها */
.btn-primary {
    background: #3498db;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-logout {
    background: #e74c3c;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-logout:hover {
    background: #c0392b;
}
