/**
 * Job Evaluation Platform - Custom Styles
 * Professional Windows-like interface design
 */

/* ===== CSS RESET & BASE STYLES ===== */
:root {
    /* Primary Color Palette - Professional Blue */
    --primary-color: #0078d4;
    --primary-dark: #106ebe;
    --primary-light: #40e0d0;
    
    /* Secondary Colors */
    --secondary-color: #6c757d;
    --success-color: #107c10;
    --warning-color: #ff8c00;
    --danger-color: #d13438;
    --info-color: #0078d4;
    
    /* Neutral Colors - Windows-like */
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f4;
    --gray-200: #e3e6e8;
    --gray-300: #c8cdd1;
    --gray-400: #a0a6ac;
    --gray-500: #6c757d;
    --gray-600: #4a5568;
    --gray-700: #2d3748;
    --gray-800: #1a202c;
    --gray-900: #171923;
    
    /* Typography */
    --font-family-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-family-monospace: 'Consolas', 'Monaco', 'Courier New', monospace;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Border Radius */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 0.75rem;
    
    /* Shadows - Windows 11 Fluent Design */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --fluent-shadow: 0 8px 16px rgba(0, 0, 0, 0.14), 0 0px 2px rgba(0, 0, 0, 0.12);
    --fluent-shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1), 0 0px 1px rgba(0, 0, 0, 0.06);
    
    /* Windows 11 Colors */
    --fluent-bg: #fafafa;
    --fluent-surface: #ffffff;
    --fluent-surface-secondary: #f6f6f6;
    --fluent-border: #e5e5e5;
    --fluent-accent: #005a9e;
    --fluent-accent-light: #0078d4;
    --fluent-text: #323130;
    --fluent-text-secondary: #605e5c;
}

/* ===== GLOBAL STYLES ===== */
body {
    font-family: var(--font-family-primary);
    background-color: var(--fluent-bg);
    color: var(--fluent-text);
    line-height: 1.6;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.fw-bold {
    font-weight: 600 !important;
}

.fw-semibold {
    font-weight: 500 !important;
}

/* ===== NAVBAR STYLES ===== */
.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
    margin: 0 0.25rem;
    transition: all 0.2s ease-in-out;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-lg);
    padding: 0.5rem 0;
}

.navbar-nav .dropdown-item {
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: background-color 0.15s ease-in-out;
}

.navbar-nav .dropdown-item:hover {
    background-color: var(--gray-100);
}

/* ===== CARD STYLES ===== */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* ===== BUTTON STYLES ===== */
.btn {
    font-weight: 500;
    border-radius: var(--border-radius-md);
    padding: 0.5rem 1rem;
    transition: all 0.15s ease-in-out;
    border: 1px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    border-radius: var(--border-radius-lg);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: var(--border-radius-sm);
}

/* ===== FORM STYLES ===== */
.form-control, .form-select {
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-md);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 120, 212, 0.25);
}

.form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    border-radius: var(--border-radius-lg);
}

.form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.invalid-feedback {
    font-size: 0.875rem;
    color: var(--danger-color);
    margin-top: 0.25rem;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===== ALERT STYLES ===== */
.alert {
    border: none;
    border-radius: var(--border-radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-success {
    background-color: rgba(16, 124, 16, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: rgba(209, 52, 56, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background-color: rgba(255, 140, 0, 0.1);
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background-color: rgba(0, 120, 212, 0.1);
    color: var(--info-color);
    border-left: 4px solid var(--info-color);
}

/* ===== TABLE STYLES ===== */
.table {
    background-color: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table th {
    background-color: var(--gray-100);
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-200);
    padding: 1rem;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: var(--gray-50);
}

/* ===== BADGE STYLES ===== */
.badge {
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: var(--border-radius-md);
}

.bg-success {
    background-color: var(--success-color) !important;
}

.bg-warning {
    background-color: var(--warning-color) !important;
}

.bg-danger {
    background-color: var(--danger-color) !important;
}

/* ===== UTILITY CLASSES ===== */
.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

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

.bg-light {
    background-color: var(--gray-50) !important;
}

.border-radius-lg {
    border-radius: var(--border-radius-lg) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-md {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* ===== ANIMATION UTILITIES ===== */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== LOADING STATES ===== */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.625rem 1.25rem;
        font-size: 1rem;
    }
    
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ===== DASHBOARD SPECIFIC STYLES ===== */
.stats-card {
    transition: transform 0.2s ease-in-out;
}

.stats-card:hover {
    transform: translateY(-2px);
}

.stats-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.25rem;
}

/* ===== HERO SECTION STYLES ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: center;
    color: white;
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius-xl);
    background: white;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

/* ===== FOOTER STYLES ===== */
footer {
    background-color: var(--gray-800) !important;
    color: var(--gray-300);
    margin-top: auto;
}

footer h6 {
    color: white;
}

.footer-link {
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
    color: #40e0d0 !important;
    text-decoration: underline !important;
}

/* ===== COMPLIANCE BADGES ===== */
.compliance-badge {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    border: 2px solid rgba(64, 224, 208, 0.3);
    border-radius: 12px;
    padding: 8px 12px;
    min-width: 120px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.compliance-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(64, 224, 208, 0.1), transparent);
    transition: left 0.5s ease;
}

.compliance-badge:hover::before {
    left: 100%;
}

.compliance-badge:hover {
    transform: translateY(-2px);
    border-color: #40e0d0;
    box-shadow: 0 8px 25px rgba(64, 224, 208, 0.2);
}

.badge-icon {
    font-size: 1.5rem;
    color: #40e0d0;
    margin-right: 8px;
    flex-shrink: 0;
}

.badge-text {
    text-align: left;
    line-height: 1.2;
}

.badge-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.badge-subtitle {
    font-size: 0.65rem;
    color: #a0aec0;
    font-weight: 400;
}

/* Mobile responsive badges */
@media (max-width: 768px) {
    .compliance-badge {
        min-width: 110px;
        padding: 6px 10px;
    }
    
    .badge-icon {
        font-size: 1.2rem;
        margin-right: 6px;
    }
    
    .badge-title {
        font-size: 0.75rem;
    }
    
    .badge-subtitle {
        font-size: 0.6rem;
    }
}

/* ===== SCROLLBAR STYLING (WEBKIT) ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .btn,
    .alert {
        display: none !important;
    }
    
    .card {
        border: 1px solid var(--gray-300) !important;
        box-shadow: none !important;
    }
}

/* ===== HIGH CONTRAST MODE SUPPORT ===== */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066cc;
        --gray-300: #999999;
        --gray-700: #333333;
    }
}

/* ===== REDUCED MOTION SUPPORT ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== WINDOWS 11 FLUENT DESIGN COMPONENTS ===== */

/* Fluent Design Cards */
.fluent-card {
    background: var(--fluent-surface);
    border: 1px solid var(--fluent-border);
    border-radius: 8px;
    box-shadow: var(--fluent-shadow-light);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.fluent-card:hover {
    box-shadow: var(--fluent-shadow);
    transform: translateY(-1px);
}

.fluent-card-header {
    background: linear-gradient(135deg, var(--fluent-accent) 0%, var(--fluent-accent-light) 100%);
    color: white;
    padding: 16px 20px;
    border-bottom: none;
    font-weight: 600;
}

.fluent-card-body {
    padding: 20px;
    background: var(--fluent-surface);
}

/* Fluent Design Sections */
.fluent-section {
    background: var(--fluent-surface);
    border: 1px solid var(--fluent-border);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--fluent-shadow-light);
}

.fluent-section-header {
    background: var(--fluent-surface-secondary);
    padding: 12px 16px;
    border-bottom: 1px solid var(--fluent-border);
    font-weight: 600;
    color: var(--fluent-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fluent-section-content {
    padding: 16px;
}

/* Fluent Design Question Cards */
.fluent-question {
    background: var(--fluent-surface);
    border: 1px solid var(--fluent-border);
    border-radius: 6px;
    margin-bottom: 12px;
    transition: all 0.15s ease;
}

.fluent-question:hover {
    border-color: var(--fluent-accent-light);
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.1);
}

.fluent-question-header {
    padding: 12px 16px;
    background: var(--fluent-surface-secondary);
    border-bottom: 1px solid var(--fluent-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fluent-question-content {
    padding: 16px;
}

/* Fluent Design Badges */
.fluent-badge {
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 120, 212, 0.3);
    border: none;
}

.fluent-badge-light {
    background: #0078d4;
    color: white;
    border: none;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 120, 212, 0.3);
}

.fluent-badge-success {
    background: linear-gradient(135deg, #107c10 0%, #16a085 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(16, 124, 16, 0.3);
}

.fluent-badge-info {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.3);
}

.fluent-badge-warning {
    background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(253, 126, 20, 0.3);
}

/* Fluent Design Option Items */
.fluent-option {
    background: var(--fluent-surface-secondary);
    border: 1px solid var(--fluent-border);
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    transition: all 0.15s ease;
}

.fluent-option:hover {
    background: rgba(0, 120, 212, 0.05);
    border-color: var(--fluent-accent-light);
}

.fluent-option-score {
    background: var(--fluent-accent);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    margin-right: 12px;
    min-width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.fluent-option-text {
    color: var(--fluent-text);
    line-height: 1.4;
    flex: 1;
}

/* Windows 11 Typography */
.fluent-title {
    color: var(--fluent-text);
    font-weight: 600;
    margin-bottom: 8px;
}

.fluent-subtitle {
    color: var(--fluent-text-secondary);
    font-weight: 500;
    margin-bottom: 16px;
}

.fluent-text {
    color: var(--fluent-text);
    line-height: 1.5;
}

.fluent-text-secondary {
    color: var(--fluent-text-secondary);
    line-height: 1.4;
}

/* Windows 11 Buttons */
.fluent-btn {
    background: var(--fluent-accent);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.fluent-btn:hover {
    background: var(--fluent-accent-light);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.3);
}

/* Fluent Design Icons */
.fluent-icon {
    margin-right: 8px;
    opacity: 0.8;
}