/* QRecruitment Frontend Styles */

:root {
    --qr-primary: #2563eb;
    --qr-primary-hover: #1d4ed8;
    --qr-text: #1f2937;
    --qr-text-muted: #6b7280;
    --qr-bg-light: #f3f4f6;
    --qr-border: #e5e7eb;
    --qr-danger: #ef4444;
    --qr-success: #10b981;
    --qr-radius: 8px;
    --qr-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.qr-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: inherit;
    color: var(--qr-text);
}

/* Layout */
.qr-layout-sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.qr-sidebar {
    flex: 1 1 250px;
    max-width: 300px;
}
.qr-main-content {
    flex: 3 1 600px;
}

/* Alerts */
.qr-alert {
    padding: 15px;
    border-radius: var(--qr-radius);
    margin-bottom: 20px;
}
.qr-alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
}
.qr-alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
}
.qr-alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #34d399;
}

/* Job Card */
.qr-job-card {
    background: #fff;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.qr-job-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--qr-shadow);
}
.qr-job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.qr-job-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}
.qr-job-title a {
    color: var(--qr-primary);
    text-decoration: none;
}
.qr-job-title a:hover {
    color: var(--qr-primary-hover);
    text-decoration: underline;
}
.qr-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.875rem;
    color: var(--qr-text-muted);
    margin-bottom: 15px;
}
.qr-job-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.qr-job-meta i {
    width: 16px;
    text-align: center;
}
.qr-job-excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #4b5563;
}
.qr-job-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--qr-border);
    padding-top: 15px;
}
.qr-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--qr-radius);
    text-decoration: none !important;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
    border: none;
}
.qr-btn-primary {
    background-color: var(--qr-primary);
    color: #fff !important;
}
.qr-btn-primary:link,
.qr-btn-primary:visited,
.qr-btn-primary:hover,
.qr-btn-primary:focus,
.qr-btn-primary:active {
    color: #fff !important;
    text-decoration: none !important;
}
.qr-btn-primary:hover,
.qr-btn-primary:focus {
    background-color: var(--qr-primary-hover);
}
.qr-btn-outline {
    background-color: transparent;
    border: 1px solid var(--qr-primary);
    color: var(--qr-primary) !important;
}
.qr-btn-outline:link,
.qr-btn-outline:visited {
    color: var(--qr-primary) !important;
    text-decoration: none !important;
}
.qr-btn-outline:hover,
.qr-btn-outline:focus,
.qr-btn-outline:active {
    background-color: var(--qr-primary);
    color: #fff !important;
    text-decoration: none !important;
}
.qr-btn svg {
    color: currentColor !important;
    stroke: currentColor !important;
}

/* Badges */
.qr-badge {
    padding: 3px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--qr-bg-light);
    color: var(--qr-text-muted);
}
.qr-badge-featured {
    background: #fef3c7;
    color: #d97706;
}
.qr-badge-urgent {
    background: #fee2e2;
    color: #dc2626;
}

/* Pagination */
.qr-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}
.qr-pagination a, .qr-pagination span {
    padding: 8px 12px;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius);
    text-decoration: none;
    color: var(--qr-text);
}
.qr-pagination .current {
    background-color: var(--qr-primary);
    color: #fff;
    border-color: var(--qr-primary);
}
.qr-pagination a:hover {
    background-color: var(--qr-bg-light);
}

/* Filters */
.qr-filters-widget {
    background: #fff;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius);
    padding: 20px;
    margin-bottom: 20px;
}
.qr-filters-widget h3 {
    margin: 0 0 15px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--qr-border);
    padding-bottom: 10px;
}
.qr-filter-group {
    margin-bottom: 15px;
}
.qr-filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.9rem;
}
.qr-filter-group select, .qr-filter-group input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--qr-border);
    border-radius: 4px;
}

/* Detail Page */
.qr-job-detail-header {
    background: #fff;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius);
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}
.qr-job-detail-header h1 {
    margin: 0 0 15px;
    font-size: 2rem;
}
.qr-job-detail-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 1rem;
    color: var(--qr-text-muted);
}
.qr-job-content {
    background: #fff;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius);
    padding: 30px;
    line-height: 1.6;
}
.qr-job-content h2, .qr-job-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.qr-job-structured-content {
    color: #4b5563;
}

.qr-job-desc-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #292d77;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 20px;
}

.qr-job-short-description {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 28px;
}

.qr-job-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.qr-job-section-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 26px 28px;
    margin-bottom: 24px;
}

.qr-job-section-wide {
    background: #fbfaf9;
}

.qr-job-section-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
}

.qr-section-icon {
    color: #c09b62;
    font-size: 15px;
    line-height: 1;
}

.qr-job-section-body {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.75;
}

.qr-job-section-body p:last-child,
.qr-job-short-description p:last-child {
    margin-bottom: 0;
}

.qr-job-section-body ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.qr-job-section-body li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 18px;
}

.qr-job-section-body li::before {
    content: "";
    position: absolute;
    top: 0.75em;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #c09b62;
}

.qr-sidebar-box {
    background: #fcfcfc;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 24px;
}

.qr-hr-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.qr-hr-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.qr-hr-details strong {
    display: block;
    font-size: 16px;
    color: #111827;
}

.qr-hr-details span,
.qr-hr-contact {
    color: #6b7280;
    font-size: 14px;
}

.qr-hr-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.qr-hr-contact svg {
    width: 16px;
    height: 16px;
    color: #6b7280;
}

.qr-hr-contact a {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 767px) {
    .qr-job-section-grid {
        grid-template-columns: 1fr;
    }
}

/* Apply Form */
.qr-apply-form-container {
    background: #fff;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius);
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
}
.qr-form-group {
    margin-bottom: 20px;
}
.qr-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}
.qr-form-group input[type="text"],
.qr-form-group input[type="email"],
.qr-form-group input[type="tel"],
.qr-form-group textarea,
.qr-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--qr-border);
    border-radius: 4px;
    font-family: inherit;
}
.qr-form-group input[type="file"] {
    display: block;
    width: 100%;
    padding: 10px;
    border: 1px dashed var(--qr-border);
    background: var(--qr-bg-light);
    border-radius: 4px;
}

.qr-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Loading Overlay for Form */
.qr-loading-overlay {
    position: relative;
}
.qr-loading-overlay::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.7);
    z-index: 10;
    border-radius: inherit;
}
.qr-spinner {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 30px; height: 30px;
    border: 3px solid var(--qr-border);
    border-top-color: var(--qr-primary);
    border-radius: 50%;
    animation: qr-spin 1s linear infinite;
    z-index: 11;
    display: none;
}
.qr-loading-overlay .qr-spinner {
    display: block;
}
@keyframes qr-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
