/* applicant-form.css - استایل‌های اختصاصی فرم درخواست استخدام */

.applicant-form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.applicant-form-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 3px solid #2c7be5;
}

.applicant-form-header h1 {
    color: #1a1a2e;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.applicant-form-header .text-muted {
    color: #6c757d;
    font-size: 15px;
}

.applicant-form-section {
    background: #f8f9fc;
    border-radius: 10px;
    padding: 25px 20px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.applicant-form-section:hover {
    border-color: #2c7be5;
    box-shadow: 0 2px 12px rgba(44, 123, 229, 0.08);
}

.applicant-form-section-title {
    color: #1a1a2e;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px dashed #dee2e6;
    position: relative;
}

.applicant-form-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 60px;
    height: 2px;
    background: #2c7be5;
}

.applicant-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
}

.applicant-form-col {
    flex: 1;
    min-width: 200px;
}

.applicant-form-col-full {
    flex: 0 0 100%;
}

.applicant-form-label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
    margin-bottom: 6px;
}

.applicant-form-input,
.applicant-form-input[type="text"],
.applicant-form-input[type="number"],
.applicant-form-input[type="tel"],
.applicant-form-input select,
.applicant-form-input textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1a202c;
    background: #ffffff;
    transition: all 0.3s ease;
    font-family: inherit;
}

.applicant-form-input:focus {
    outline: none;
    border-color: #2c7be5;
    box-shadow: 0 0 0 4px rgba(44, 123, 229, 0.12);
    background: #ffffff;
}

.applicant-form-input:hover {
    border-color: #a0aec0;
}

.applicant-form-input::placeholder {
    color: #a0aec0;
    font-size: 13px;
}

.applicant-form-input select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a5568' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 36px;
    cursor: pointer;
}

.applicant-form-input textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.applicant-form-error {
    color: #e53e3e;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.applicant-form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 2px solid #e9ecef;
}

.applicant-form-submit {
    padding: 12px 45px;
    background: linear-gradient(135deg, #2c7be5, #1a5fc7);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.applicant-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 123, 229, 0.35);
    background: linear-gradient(135deg, #1a5fc7, #0d4a9e);
}

.applicant-form-submit:active {
    transform: translateY(0px);
}

.applicant-form-cancel {
    padding: 12px 35px;
    background: #edf2f7;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.applicant-form-cancel:hover {
    background: #e2e8f0;
    border-color: #cbd5e0;
    color: #2d3748;
    text-decoration: none;
}

/* استایل برای فیلدهای اجباری */
.applicant-form-label.required::after {
    content: ' *';
    color: #e53e3e;
    font-weight: 700;
}

/* واکنش‌گرا (Responsive) */
@media (max-width: 768px) {
    .applicant-form-container {
        padding: 15px 10px;
    }

    .applicant-form-col {
        flex: 0 0 100%;
        min-width: unset;
    }

    .applicant-form-section {
        padding: 18px 14px;
    }

    .applicant-form-header h1 {
        font-size: 22px;
    }

    .applicant-form-actions {
        flex-direction: column;
        align-items: center;
    }

    .applicant-form-submit,
    .applicant-form-cancel {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .applicant-form-container {
        padding: 10px 6px;
    }

    .applicant-form-section {
        padding: 14px 10px;
    }

    .applicant-form-input,
    .applicant-form-input[type="text"],
    .applicant-form-input[type="number"],
    .applicant-form-input[type="tel"],
    .applicant-form-input select,
    .applicant-form-input textarea {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* استایل برای تاریخ‌پیکر (در صورت استفاده) */
.datepicker {
    direction: ltr;
    text-align: left;
}
/* تغییر رنگ چک‌باکس به مشکی */
.position-checkbox {
    border: 2px solid #000000;
}
.label-blue {
    color: #0066cc !important;
}
/* positions-index.css - استایل‌های مستقل صفحه موقعیت‌های شغلی */

/* کانتینر اصلی */
.positions-index {
    padding: 20px 0;
}

/* عنوان صفحه */
.positions-index .page-title {
    color: #1a1a2e;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #2c7be5;
}

/* دکمه‌های بالای صفحه */
.positions-index .top-buttons {
    margin-bottom: 25px;
}

.positions-index .top-buttons .btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.positions-index .top-buttons .btn-primary {
    background: #2c7be5;
    border: none;
    color: #ffffff;
}

.positions-index .top-buttons .btn-primary:hover {
    background: #1a5fc7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 123, 229, 0.35);
}

.positions-index .top-buttons .btn-success {
    background: #28a745;
    border: none;
    color: #ffffff;
}

.positions-index .top-buttons .btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.35);
}

/* کارت‌های موقعیت شغلی */
.positions-index .position-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    background: #ffffff;
    height: 100%;
    overflow: hidden;
}

.positions-index .position-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: #2c7be5;
}

.positions-index .position-card .card-body {
    padding: 22px 20px;
}

.positions-index .position-card .card-title {
    color: #1a1a2e;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.4;
}

.positions-index .position-card .card-text {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 0;
}

.positions-index .position-card .card-text strong {
    color: #2d3748;
    font-weight: 600;
}

.positions-index .position-card .card-text .badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: #ebf4ff;
    color: #2c7be5;
}

/* صفحه‌بندی */
.positions-index .pagination-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.positions-index .pagination {
    gap: 5px;
}

.positions-index .pagination .page-link {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #4a5568;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: #ffffff;
}

.positions-index .pagination .page-link:hover {
    background: #2c7be5;
    color: #ffffff;
    border-color: #2c7be5;
}

.positions-index .pagination .active .page-link {
    background: #2c7be5;
    border-color: #2c7be5;
    color: #ffffff;
}

.positions-index .pagination .disabled .page-link {
    color: #adb5bd;
    cursor: not-allowed;
}

/* پیام خالی بودن */
.positions-index .empty-alert {
    border-radius: 12px;
    padding: 30px 20px;
    background: #f8f9fc;
    border: 2px dashed #dee2e6;
    color: #4a5568;
    font-size: 16px;
}

.positions-index .empty-alert i {
    color: #2c7be5;
    margin-left: 10px;
    font-size: 20px;
}

/* واکنش‌گرا */
@media (max-width: 768px) {
    .positions-index {
        padding: 10px 0;
    }

    .positions-index .page-title {
        font-size: 22px;
    }

    .positions-index .top-buttons .btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
    }

    .positions-index .top-buttons .col-md-6 {
        margin-bottom: 10px;
    }

    .positions-index .position-card .card-body {
        padding: 18px 16px;
    }

    .positions-index .position-card .card-title {
        font-size: 16px;
    }

    .positions-index .pagination .page-link {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .positions-index .position-card .card-body {
        padding: 14px 12px;
    }

    .positions-index .position-card .card-title {
        font-size: 15px;
    }

    .positions-index .position-card .card-text {
        font-size: 13px;
    }
}
/* کارت‌های موقعیت شغلی - با حاشیه آبی ثابت */
.positions-index .position-card {
    border: 1px solid #2c7be5; /* حاشیه آبی ثابت */
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(44, 123, 229, 0.10); /* سایه آبی ملایم */
    background: #ffffff;
    height: 100%;
    overflow: hidden;
}

.positions-index .position-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 1px 30px rgba(44, 123, 229, 0.25); /* سایه آبی بیشتر در هاور */
    border-color: #1a5fc7; /* آبی تیره‌تر در هاور (اختیاری) */
}
/* استایل برای بج وضعیت */
.positions-index .position-card .badge.bg-success {
    background-color: #28a745 !important;
    color: #ffffff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.positions-index .position-card .badge.bg-danger {
    background-color: #dc3545 !important;
    color: #ffffff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.positions-index .position-card .badge.bg-secondary {
    background-color: #6c757d !important;
    color: #ffffff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.positions-index .position-card .badge {
    background-color: #ebf4ff;
    color: #2c7be5;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
/* استایل برای عنوان و وضعیت */
.positions-index .position-card .card-title {
    color: #1a1a2e;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    flex: 1;
}

.positions-index .position-card .badge-status {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    margin-right: 8px;
}

.positions-index .position-card .badge-status.bg-success {
    background-color: #28a745 !important;
    color: #ffffff;
}

.positions-index .position-card .badge-status.bg-danger {
    background-color: #dc3545 !important;
    color: #ffffff;
}

.positions-index .position-card .badge-status.bg-secondary {
    background-color: #6c757d !important;
    color: #ffffff;
}
