/*
 * RAMZ Recruitment Report Generator Stylesheet
 * Brand Colors:
 * - Deep Navy: #0f243e
 * - Saudi Emerald/Green: #007a48
 * - Soft Accent Gold: #c5a059
 * - Background Light: #f4f6f8
 */

:root {
    --primary-color: #0f243e;
    --primary-hover: #17375c;
    --secondary-color: #007a48;
    --secondary-hover: #006038;
    --accent-color: #c5a059;
    --accent-hover: #b08d48;
    --bg-light: #f4f6f8;
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    --border-radius: 12px;
}

body {
    background-color: var(--bg-light);
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
}

.brand-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3c61 100%);
    color: #fff;
    padding: 30px 20px;
    border-bottom: 4px solid var(--accent-color);
}

.brand-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    background-color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 20px;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 20px;
}

.btn-success:hover, .btn-success:focus {
    background-color: var(--secondary-hover);
    border-color: var(--secondary-hover);
}

/* Step Wizard Progress Bar */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 40px;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #e2e8f0;
    z-index: 1;
    transform: translateY(-50%);
}

.wizard-step {
    position: relative;
    z-index: 2;
    background-color: #fff;
    border: 3px solid #e2e8f0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #718096;
    transition: all 0.3s ease;
}

.wizard-step.active {
    border-color: var(--secondary-color);
    background-color: var(--secondary-color);
    color: #fff;
}

.wizard-step.completed {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: #fff;
}

.wizard-label {
    position: absolute;
    top: 55px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    color: #718096;
}

.wizard-step.active + .wizard-label {
    color: var(--secondary-color);
}

/* Drag and Drop Zone styling */
.upload-drag-zone {
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    background-color: #fcfcfc;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.upload-drag-zone:hover, .upload-drag-zone.dragover {
    border-color: var(--secondary-color);
    background-color: #f0fdf4;
}

/* Sortable lists styling */
.sortable-item {
    cursor: grab;
    padding: 12px 18px;
    border: 1px solid #e2e8f0;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s ease;
}

.sortable-item:active {
    cursor: grabbing;
}

.sortable-item:hover {
    background-color: #f7fafc;
}

.sortable-ghost {
    opacity: 0.4;
    background-color: #edf2f7 !important;
    border: 1px dashed var(--secondary-color);
}

/* Footer Section */
.footer-section {
    background-color: var(--primary-color);
    color: #a0aec0;
    padding: 30px 0;
    border-top: 4px solid var(--accent-color);
    font-size: 14px;
}

.footer-section a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

/* Arabic translation utility classes */
[dir="rtl"] {
    text-align: right;
}

/* Document Discrepancy Box */
.discrepancy-card {
    border-left: 4px solid #e53e3e;
    background-color: #fff5f5;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.alert-expiry {
    border-left: 4px solid #dd6b20;
    background-color: #fffaf0;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Processing Overlay Screen */
.processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 36, 62, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.processing-box {
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.spinner-logo {
    font-size: 4rem;
    color: var(--accent-color);
    animation: rotate 3s linear infinite;
    margin-bottom: 25px;
}

.processing-stage {
    font-size: 18px;
    font-weight: 600;
    color: #cbd5e0;
    margin-top: 15px;
    height: 30px;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
