﻿
.profile-container {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    min-height: 80vh;
}

/* منوی پروفایل */
.profile-sidebar {
    flex: 0 0 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    height: fit-content;
    position: relative;
    overflow: hidden;
}

    .profile-sidebar::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, #3498db, #2ecc71, #e74c3c, #f39c12);
    }

.profile-info {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
    position: relative;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 40px;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.profile-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #2c3e50;
}

.profile-email {
    color: #666;
    font-size: 14px;
}

.profile-menu {
    list-style: none;
}

    .profile-menu li {
        margin-bottom: 5px;
    }

    .profile-menu a {
        display: flex;
        align-items: center;
        padding: 12px 15px;
        border-radius: 8px;
        color: #555;
        text-decoration: none;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

        .profile-menu a::before {
            content: "";
            position: absolute;
            right: -10px;
            top: 50%;
            transform: translateY(-50%);
            width: 0;
            height: 0;
            border-top: 5px solid transparent;
            border-bottom: 5px solid transparent;
            border-right: 5px solid #3498db;
            opacity: 0;
            transition: all 0.3s ease;
        }

        .profile-menu a:hover, .profile-menu a.active {
            background-color: rgba(52, 152, 219, 0.1);
            color: #3498db;
            transform: translateX(-5px);
        }

            .profile-menu a:hover::before, .profile-menu a.active::before {
                opacity: 1;
                right: 10px;
            }

    .profile-menu i {
        margin-left: 10px;
        width: 20px;
        text-align: center;
    }

/* محتوای پروفایل */
.profile-content {
    flex: 1;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 25px;
    position: relative;
    overflow: hidden;
}

    .profile-content::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, #3498db, #2ecc71, #e74c3c, #f39c12);
    }

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.profile-title {
    font-size: 22px;
    color: #2c3e50;
    position: relative;
    display: inline-block;
}

    .profile-title::after {
        content: "";
        position: absolute;
        bottom: -5px;
        right: 0;
        width: 50%;
        height: 2px;
        background: #3498db;
    }

.edit-profile-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

    .edit-profile-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
    }

    .edit-profile-btn i {
        margin-left: 5px;
    }

/* کارت‌های اطلاعات */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border-left: 4px solid #3498db;
    position: relative;
    overflow: hidden;
}

    .info-card::before {
        content: "";
        position: absolute;
        top: -50%;
        right: -50%;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.1);
        transform: rotate(30deg);
        transition: all 0.5s ease;
    }

    .info-card:hover::before {
        top: 0;
        right: 0;
        transform: rotate(0);
    }

    .info-card:nth-child(1) {
        border-left-color: #3498db;
    }

    .info-card:nth-child(2) {
        border-left-color: #2ecc71;
    }

    .info-card:nth-child(3) {
        border-left-color: #e74c3c;
    }

    .info-card:nth-child(4) {
        border-left-color: #f39c12;
    }

    .info-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

    .info-card i {
        font-size: 32px;
        margin-bottom: 15px;
        display: inline-block;
        transition: all 0.3s ease;
    }

    .info-card:nth-child(1) i {
        color: #3498db;
    }

    .info-card:nth-child(2) i {
        color: #2ecc71;
    }

    .info-card:nth-child(3) i {
        color: #e74c3c;
    }

    .info-card:nth-child(4) i {
        color: #f39c12;
    }

    .info-card:hover i {
        transform: scale(1.2);
    }

    .info-card h3 {
        font-size: 16px;
        margin-bottom: 10px;
        color: #555;
    }

    .info-card p {
        font-size: 28px;
        font-weight: bold;
        color: #2c3e50;
    }

/* نمودارها */
.profile-section {
    margin-bottom: 30px;
    position: relative;
}

.section-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    position: relative;
}

    .section-title::after {
        content: "";
        position: absolute;
        bottom: -1px;
        right: 0;
        width: 100px;
        height: 2px;
        background: #3498db;
    }

.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.chart-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .chart-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

.chart-title {
    font-size: 16px;
    margin-bottom: 15px;
    text-align: center;
    color: #2c3e50;
    position: relative;
    display: inline-block;
    width: 100%;
}

    .chart-title::after {
        content: "";
        position: absolute;
        bottom: -5px;
        right: calc(50% - 25px);
        width: 50px;
        height: 2px;
        background: #3498db;
    }

.chart-container {
    position: relative;
    height: 200px;
    width: 100%;
}

/* جدول سفارشات */
.orders-table {
    width: 100%;
    border-collapse: collapse;
}

    .orders-table th, .orders-table td {
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #eee;
    }

    .orders-table th {
        background-color: #f8f9fa;
        font-weight: bold;
        color: #2c3e50;
    }

    .orders-table tr {
        transition: all 0.3s ease;
    }

        .orders-table tr:hover {
            background-color: #f8f9fa;
            transform: translateX(-5px);
        }

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status-delivered {
    background-color: #d4edda;
    color: #155724;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-processing {
    background-color: #cce7ff;
    color: #004085;
}

/* واکنش‌گرایی */
@media (max-width: 992px) {
    .profile-container {
        flex-direction: column;
    }

    .profile-sidebar {
        flex: 1;
        margin-bottom: 20px;
    }

    .info-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .info-cards {
        grid-template-columns: 1fr;
    }

    .charts-container {
        grid-template-columns: 1fr;
    }

    .orders-table {
        display: block;
        overflow-x: auto;
    }

    .profile-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .edit-profile-btn {
        margin-top: 10px;
    }
}
