/* =========================
     Profile Form
  ========================= */

.profile-form-wrapper {
    direction: rtl;
    max-width: 950px;
    margin: 40px auto;
    padding: 0 15px;
}

.profile-form-card {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 10px 40px rgba(50, 40, 90, .08);
    border: 1px solid #eeeaf7;
    overflow: hidden;
}

/* Header */

.profile-form-header {
    padding: 30px 35px;
    background: linear-gradient(
            135deg,
            #f7f4ff,
            #ffffff
    );

    border-bottom: 1px solid #eeeaf7;
}

.profile-form-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #45346d;
}

.profile-form-header p {
    margin: 10px 0 0;
    color: #888;
    font-size: 14px;
}

/* Body */

.profile-form-body {
    padding: 35px;
}

/* Sections */

.form-section {
    margin-bottom: 35px;
}

.form-section:last-child {
    margin-bottom: 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 22px;
    padding-bottom: 12px;

    border-bottom: 1px solid #eee;

    color: #55417f;
    font-size: 17px;
    font-weight: 800;
}

.section-icon {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f1edff;
    border-radius: 10px;

    font-size: 18px;
}

/* Fields */

.profile-form .form-group {
    margin-bottom: 20px;
}

.profile-form label {
    display: block;

    margin-bottom: 8px;

    color: #555;
    font-size: 14px;
    font-weight: 700;
}

.profile-form .form-control,
.profile-form select {
    min-height: 48px;

    border: 1px solid #e3deed;
    border-radius: 12px;

    padding: 10px 15px;

    background: #faf9fc;

    color: #444;

    transition: all .2s ease;
}

.profile-form .form-control:focus,
.profile-form select:focus {

    border-color: #8b6bd9;

    background: #fff;

    box-shadow:
            0 0 0 4px rgba(139, 107, 217, .10);

}

/* Radio */

.profile-form .radio {
    margin: 0;
}

.profile-form .radio label {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-left: 20px;

    padding: 10px 16px;

    background: #faf9fc;

    border: 1px solid #e3deed;

    border-radius: 10px;

    cursor: pointer;

    font-weight: 600;

    transition: .2s;
}

.profile-form .radio label:hover {
    background: #f3efff;
    border-color: #a78ce5;
}

.profile-form .radio input {
    margin: 0;
}

/* Grid */

.form-row {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}

/* Save Button */

.form-submit {
    margin-top: 35px;

    padding-top: 25px;

    border-top: 1px solid #eee;

    text-align: center;
}

.btn-save-profile {

    min-width: 180px;

    padding: 13px 30px;

    border: none;

    border-radius: 12px;

    background: linear-gradient(
            135deg,
            #7657d9,
            #6244c5
    );

    color: #fff;

    font-size: 15px;

    font-weight: 700;

    box-shadow:
            0 8px 20px rgba(118, 87, 217, .25);

    transition: all .2s ease;
}

.btn-save-profile:hover {

    color: #fff;

    transform: translateY(-2px);

    box-shadow:
            0 12px 25px rgba(118, 87, 217, .35);
}

/* Error */

.profile-form .has-error .form-control {
    border-color: #dc3545;
}

.profile-form .help-block {
    margin-top: 6px;
    font-size: 12px;
}

/* Responsive */

@media (max-width: 700px) {

    .profile-form-body {
        padding: 25px 18px;
    }

    .profile-form-header {
        padding: 25px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

}


/* =====================================================
       Profile View
       تمام کلاس‌ها اختصاصی این صفحه هستند
       Prefix: pv-
    ====================================================== */

.pv-page {
    direction: rtl;
    width: 100%;
    max-width: 1000px;
    margin: 35px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* =========================
   Main Card
========================== */

.pv-card {
    background: #ffffff;
    border: 1px solid #eeeaf5;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 45px rgba(55, 40, 90, 0.08);
}

/* =========================
   Header
========================== */

.pv-header {
    padding: 30px 35px;
    background: linear-gradient(
            135deg,
            #f7f3ff 0%,
            #ffffff 100%
    );

    border-bottom: 1px solid #eeeaf5;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.pv-header-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pv-avatar {
    width: 58px;
    height: 58px;

    flex: 0 0 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: #eee8ff;

    font-size: 27px;
}

.pv-header-title {
    margin: 0;

    color: #403261;

    font-size: 22px;
    font-weight: 800;
}

.pv-header-subtitle {
    margin: 7px 0 0;

    color: #999;

    font-size: 13px;
}

/* =========================
   Edit Button
========================== */

.pv-edit-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 11px 20px;

    border-radius: 11px;

    background: #7657d9;

    color: #ffffff !important;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    white-space: nowrap;

    transition: all .2s ease;
}

.pv-edit-btn:hover {
    background: #6244c5;

    transform: translateY(-2px);

    box-shadow:
            0 8px 20px rgba(118, 87, 217, .25);
}

/* =========================
   Body
========================== */

.pv-body {
    padding: 35px;
}

/* =========================
   Section
========================== */

.pv-section {
    margin-bottom: 35px;
}

.pv-section:last-child {
    margin-bottom: 0;
}

.pv-section-title {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 20px;
    padding-bottom: 12px;

    border-bottom: 1px solid #eeeeee;

    color: #514071;

    font-size: 17px;
    font-weight: 800;
}

.pv-section-icon {
    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #f1edff;

    font-size: 17px;
}

/* =========================
   Information Grid
========================== */

.pv-info-grid {
    display: grid;

    grid-template-columns:
            repeat(2, minmax(0, 1fr));

    gap: 13px;
}

.pv-info-item {
    min-width: 0;

    padding: 17px 18px;

    background: #faf9fc;

    border: 1px solid #eeeaf4;

    border-radius: 13px;

    transition: all .2s ease;
}

.pv-info-item:hover {
    background: #f7f4ff;

    border-color: #ddd4f2;

    transform: translateY(-1px);
}

.pv-info-label {
    display: block;

    margin-bottom: 7px;

    color: #999;

    font-size: 12px;
    font-weight: 600;
}

.pv-info-value {
    display: block;

    color: #403b4d;

    font-size: 15px;
    font-weight: 700;

    word-break: break-word;
}

/* =========================
   Status
========================== */

.pv-status {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 5px 11px;

    border-radius: 20px;

    font-size: 12px;
    font-weight: 700;
}

.pv-status-active {
    background: #e8f8ef;
    color: #239957;
}

.pv-status-inactive {
    background: #fff0f0;
    color: #d94b4b;
}

.pv-status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: currentColor;
}

/* =========================
   Contact / Social
========================== */

.pv-social-item {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding: 14px 17px;

    background: #faf9fc;

    border: 1px solid #eeeaf4;

    border-radius: 12px;
}

.pv-social-name {
    color: #777;

    font-size: 13px;
}

.pv-social-value {
    color: #443b59;

    font-size: 14px;
    font-weight: 700;

    direction: ltr;

    text-align: left;

    word-break: break-word;
}

/* =========================
   Location
========================== */

.pv-location {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 15px;
}

.pv-location-item {
    padding: 20px;

    border-radius: 14px;

    background: linear-gradient(
            135deg,
            #faf8ff,
            #ffffff
    );

    border: 1px solid #ebe5f7;
}

.pv-location-icon {
    font-size: 22px;

    margin-bottom: 8px;
}

.pv-location-label {
    display: block;

    color: #999;

    font-size: 12px;

    margin-bottom: 5px;
}

.pv-location-value {
    color: #463866;

    font-size: 15px;

    font-weight: 800;
}

/* =========================
   Date Information
========================== */

.pv-date {
    direction: rtl;

    font-family: Tahoma, Arial, sans-serif;

    color: #555;
}

/* =========================
   Empty Value
========================== */

.pv-empty {
    color: #dc3545 !important;
    font-weight: 600;
    font-size: 13px;
}

/* =========================
   Mobile
========================== */

@media (max-width: 700px) {

    .pv-page {
        margin: 20px auto;
        padding: 0 10px;
    }

    .pv-header {
        padding: 23px 20px;

        flex-direction: column;

        align-items: stretch;
    }

    .pv-header-info {
        width: 100%;
    }

    .pv-edit-btn {
        width: 100%;
    }

    .pv-body {
        padding: 25px 18px;
    }

    .pv-info-grid {
        grid-template-columns: 1fr;
    }

    .pv-location {
        grid-template-columns: 1fr;
    }

}

/* =========================
   Small Mobile
========================== */

@media (max-width: 420px) {

    .pv-header-title {
        font-size: 18px;
    }

    .pv-avatar {
        width: 50px;
        height: 50px;

        flex-basis: 50px;

        font-size: 23px;
    }

    .pv-section-title {
        font-size: 15px;
    }

    .pv-info-item {
        padding: 14px;
    }

}
