/* ===================================================== */
/* ✅ استایل‌های مشترک پنل ادمین */
/* ===================================================== */

/* ===== فرم و جدول ===== */
.form-legal-row {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-legal-item {
    margin-bottom: 15px;
}

.form-legal-item label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

/* ===== فیلدهای ورودی ===== */
.input-name-first {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: #fff;
    height: 42px;
}

.input-name-first:focus {
    border-color: #EF394E;
    outline: none;
    box-shadow: 0 0 0 3px rgba(239, 57, 78, 0.1);
}

/* ===== دکمه‌ها ===== */
.dk-btn {
    background: #EF394E;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dk-btn:hover {
    background: #d32f44;
}

.dk-btn i {
    margin-left: 6px;
}

.btn-default {
    padding: 8px 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    color: #6c757d;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-default:hover {
    color: #EF394E;
    border-color: #EF394E;
}

/* ===== هدر پروفایل ===== */
.profile-navbar {
    margin-bottom: 20px;
}

.profile-navbar-back-alignment {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.edit-personal {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
}

/* ===== جدول ===== */
.table th {
    background: #f8f9fa;
    font-weight: 600;
    padding: 12px;
    text-align: center;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    text-align: center;
    vertical-align: middle;
    padding: 12px;
}

.table-hover tbody tr:hover {
    background: #f0f2ff;
    transition: all 0.3s ease;
}

/* ===== بج (Badge) ===== */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.badge.bg-warning {
    background: #ffc107 !important;
    color: #212529 !important;
}

.badge.bg-success {
    background: #28a745 !important;
    color: white !important;
}

.badge.bg-danger {
    background: #dc3545 !important;
    color: white !important;
}

.badge.bg-info {
    background: #17a2b8 !important;
    color: white !important;
}

.badge.bg-secondary {
    background: #6c757d !important;
    color: white !important;
}

/* ===== دکمه‌های کوچک جدول ===== */
.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-sm.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-sm.btn-success {
    background: #28a745;
    color: white;
}

.btn-sm.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-sm.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-sm.btn-outline-danger {
    border: 1px solid #dc3545;
    color: #dc3545;
    background: transparent;
}

.btn-sm.btn-outline-danger:hover {
    background: #dc3545;
    color: white;
}

.btn-sm.btn-outline-success {
    border: 1px solid #28a745;
    color: #28a745;
    background: transparent;
}

.btn-sm.btn-outline-success:hover {
    background: #28a745;
    color: white;
}

/* ===== متن‌ها ===== */
.text-muted {
    color: #6c757d !important;
}

.text-primary {
    color: #EF394E !important;
}

.text-justify {
    text-align: justify;
}

.required-star {
    color: #EF394E !important;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 768px) {
    .col-lg-3,
    .col-lg-9 {
        width: 100%;
        float: none !important;
    }

    .form-legal-row {
        padding: 15px;
    }

    .profile-navbar-back-alignment {
        flex-direction: column;
        align-items: flex-start;
    }

    .d-flex.gap-2 {
        flex-direction: column;
        width: 100%;
        align-items: stretch !important;
    }

    .d-flex.gap-2 a,
    .d-flex.gap-2 form,
    .d-flex.gap-2 button {
        width: 100%;
        justify-content: center;
    }

    .table-responsive {
        overflow-x: auto;
    }

    .dk-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}