﻿/* ===== تعریف فونت Vazirmatn ===== */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* اعمال فونت به کل صفحه */
body {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    margin-bottom: 60px;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* بهبود کیفیت نمایش فونت */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

::-webkit-input-placeholder {
    color: #e8a7be !important;
}

:-moz-placeholder {
    color: #e8a7be !important;
}

::-moz-placeholder {
    color: #e8a7be !important;
}

:-ms-input-placeholder {
    color: #e8a7be !important;
}

/* استایل های مربوط به صفحه جزئیات مثل پیمانکار جزء */
.personal-info-container {
    margin-bottom: 15px;
}

.details-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #ccc;
}

.contractor-image {
    object-fit: cover;
    border-radius: 10px;
}

/* استایل برای موبایل (صفحه‌های کوچک) */
@media (max-width: 767px) {
    .personal-info-container {
        direction: ltr;
        display: grid;
        grid-template-columns: 70% 30%;
        grid-template-rows: repeat(5, auto);
        grid-template-areas:
            "row1 image"
            "row2 image"
            "row3 image"
            "row4 row4"
            "row5 row5";
        gap: 10px;
    }

    .details-row {
        display: flex;
        justify-content: space-between;
        padding: 10px 0;
        border-bottom: 1px dashed #ccc;
        direction: rtl;
    }

    .personal-info {
        display: contents;
    }

    .profile-image {
        grid-area: image;
    }

    .personal-info .details-row:nth-child(1) {
        grid-area: row1;
    }

    .personal-info .details-row:nth-child(2) {
        grid-area: row2;
    }

    .personal-info .details-row:nth-child(3) {
        grid-area: row3;
    }

    .personal-info .details-row:nth-child(4) {
        grid-area: row4;
    }

    .personal-info .details-row:nth-child(5) {
        grid-area: row5;
    }

    .contractor-image {
        width: 100%;
        height: 100%;
    }
}

/* استایل برای دسکتاپ (صفحه‌های بزرگ) */
@media (min-width: 768px) {
    .personal-info-container {
        display: flex;
        flex-direction: row-reverse;
        gap: 20px;
    }

    .personal-info {
        flex: 1;
    }

    .profile-image {
        width: 225px;
        height: 225px;
    }

    .contractor-image {
        width: 100%;
        height: 100%;
    }
}
