/* --- استایل‌های اختصاصی داشبورد --- */
body {
    background-color: #f3f5f9;
}

/* سایدبار پروفایل */
.profile-sidebar {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.user-info-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 30px 20px;
    text-align: center;
    color: white;
}

.user-avatar-box {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
}

.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.edit-avatar-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    background: white;
    color: var(--primary-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.edit-avatar-btn:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

/* منوی سایدبار */
.dashboard-menu {
    padding: 15px;
}

.nav-pills .nav-link {
    color: #666;
    font-weight: 600;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 5px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-pills .nav-link i.menu-icon {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

.nav-pills .nav-link:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    padding-right: 20px;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: 700;
}

.nav-pills .nav-link.text-danger:hover {
    background-color: #fff5f5;
    color: #dc3545;
}

/* کارت‌های محتوا */
.content-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid #f0f0f0;
    height: 100%;
}

.card-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px dashed #f0f0f0;
}

.card-title-text {
    font-weight: 800;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* باکس‌های آماری */
.stat-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.stat-card:hover {
    background: white;
    border-color: var(--primary-light);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.stat-info h3 {
    font-weight: 800;
    margin: 0;
    color: var(--secondary-color);
}

.stat-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #777;
}

/* جدول سفارشات */
.custom-table thead th {
    background-color: #f8f9fa;
    color: #666;
    font-weight: 600;
    border: none;
    padding: 15px;
}

.custom-table tbody td {
    vertical-align: middle;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.custom-table tbody tr:last-child td {
    border-bottom: none;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.status-processing {
    background: #fff3cd;
    color: #856404;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* آدرس‌ها */
.address-box {
    border: 2px solid #eee;
    border-radius: 15px;
    padding: 20px;
    position: relative;
    transition: 0.3s;
}

.address-box:hover {
    border-color: var(--primary-light);
}

.address-tag {
    background: #eee;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    position: absolute;
    top: 20px;
    left: 20px;
}

/* کارت محصول در علاقه‌مندی */
.wishlist-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 15px;
    margin-bottom: 15px;
    transition: 0.3s;
}

.wishlist-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-light);
}

/* استایل مدال‌ها */
.modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-weight: 800;
    color: var(--secondary-color);
}

.order-product-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

/* اصلاحات ریسپانسیو برای منوی همبرگری */
@media (max-width: 991.98px) {
    .profile-sidebar {
        box-shadow: none !important;
        border-radius: 0 !important;
        position: static !important;
    }

    /* در حالت موبایل، پس‌زمینه سفید باشد */
    .offcanvas-lg {
        background-color: white;
    }
}