/* AlraisiJobs - Main Stylesheet */

/* Variables */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

/* ==================== RTL Support ==================== */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .navbar-nav {
    flex-direction: row-reverse;
}

[dir="rtl"] .dropdown-menu {
    text-align: right;
}

[dir="rtl"] .form-group,
[dir="rtl"] .form-label {
    text-align: right;
}

[dir="rtl"] input[type="text"],
[dir="rtl"] input[type="email"],
[dir="rtl"] input[type="password"],
[dir="rtl"] input[type="tel"],
[dir="rtl"] input[type="number"],
[dir="rtl"] input[type="search"],
[dir="rtl"] input[type="url"],
[dir="rtl"] textarea,
[dir="rtl"] select {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .btn i + span,
[dir="rtl"] .btn span + i {
    margin-left: 0;
    margin-right: 0.4em;
}

[dir="rtl"] table th,
[dir="rtl"] table td {
    text-align: right;
}

[dir="rtl"] .list-unstyled,
[dir="rtl"] ul,
[dir="rtl"] ol {
    padding-left: 0;
    padding-right: 1.5rem;
}

[dir="rtl"] .breadcrumb {
    direction: rtl;
}

[dir="rtl"] .modal-header .close,
[dir="rtl"] .modal-header .btn-close {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .alert {
    text-align: right;
}

[dir="rtl"] .pagination {
    direction: rtl;
}

[dir="rtl"] .fa-arrow-right,
[dir="rtl"] .fa-arrow-left,
[dir="rtl"] .fa-chevron-right,
[dir="rtl"] .fa-chevron-left,
[dir="rtl"] .fa-sign-out-alt,
[dir="rtl"] .fa-sign-in-alt {
    transform: scaleX(-1);
}

/* Custom Components */
.profile-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.verification-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-verified {
    background-color: #d4edda;
    color: #155724;
}

.badge-pending {
    background-color: #fff3cd;
    color: #856404;
}

.badge-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Tables */
.table-hover tbody tr:hover {
    background-color: rgba(0,0,0,0.02);
}

/* Cards */
.candidate-card, .employer-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.candidate-card:hover, .employer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Arabic Font Support */
[lang="ar"],
[dir="rtl"] {
    font-family: 'Tajawal', 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Custom Utility Classes */
.text-primary-custom {
    color: var(--primary-color);
}

.bg-primary-custom {
    background-color: var(--primary-color);
}

/* Loading Spinner */
.spinner-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* Status Indicators */
.status-available {
    color: #198754;
    font-weight: 600;
}

.status-unavailable {
    color: #dc3545;
    font-weight: 600;
}

/* Job Type Badges */
.job-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    margin: 2px;
}

.job-driver {
    background-color: #e3f2fd;
    color: #1976d2;
}

.job-household {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.job-agriculture {
    background-color: #e8f5e9;
    color: #388e3c;
}

.job-livestock {
    background-color: #fff3e0;
    color: #f57c00;
}
