/* ==================== صفحه پروفایل ==================== */
.profile-container {
    padding: 30px 0;
}

/* ==================== Sidebar ==================== */
.profile-sidebar {
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
    position: sticky;
    top: 90px;
}

.profile-avatar-section {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    margin-bottom: 15px;
}

.profile-avatar-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.profile-avatar-section p {
    font-size: 14px;
    margin: 0;
    direction: ltr;
}

/* ==================== Profile Navigation ==================== */
.profile-nav {
    display: flex;
    flex-direction: column;
}

.profile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    transition: all 0.3s;
    margin-bottom: 5px;
}

.profile-nav-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.profile-nav-item.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.profile-nav-item i {
    font-size: 18px;
}

/* ==================== Profile Sections ==================== */
.profile-section {
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.section-header h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* ==================== اطلاعات کاربری ==================== */
.info-row {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    flex: 0 0 150px;
    font-weight: 500;
    color: var(--text-secondary);
}

.info-value {
    flex: 1;
    color: var(--text-primary);
}

/* ==================== فرم ویرایش ==================== */
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-actions .btn {
    flex: 1;
}

/* ==================== خودروها ==================== */
.cars-grid {
    padding: 20px 25px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.car-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: box-shadow 0.3s;
}

.car-card:hover {
    box-shadow: var(--shadow);
}

.car-info h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.car-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 5px 0;
}

.car-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* ==================== نوبت‌ها ==================== */
.appointments-list {
    padding: 20px 25px;
}

.appointment-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s;
}

.appointment-card:hover {
    box-shadow: var(--shadow);
}

.appointment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.appointment-date {
    font-size: 14px;
    color: var(--text-secondary);
    direction: rtl;
}

.appointment-body h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.appointment-body p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 5px 0;
}

.appointment-footer {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* ==================== تاریخچه ==================== */
.history-list {
    padding: 20px 25px;
}

.history-card {
    display: flex;
    gap: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s;
}

.history-card:hover {
    box-shadow: var(--shadow);
}

.history-date {
    flex: 0 0 120px;
    font-weight: 600;
    color: var(--primary-color);
    padding-left: 20px;
    border-left: 2px solid var(--border-color);
    direction: rtl;
}

.history-content {
    flex: 1;
}

.history-content h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.history-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 4px 0;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .profile-sidebar {
        position: static;
        margin-bottom: 20px;
    }

    .profile-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .profile-nav-item {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .cars-grid {
        grid-template-columns: 1fr;
    }

    .history-card {
        flex-direction: column;
    }

    .history-date {
        border-left: none;
        border-bottom: 2px solid var(--border-color);
        padding-left: 0;
        padding-bottom: 10px;
    }

    .info-row {
        flex-direction: column;
        gap: 5px;
    }

    .info-label {
        flex: none;
    }
}
