/* Custom Styles for Recruitment Portal */

:root {
    --primary-color: #FFA500;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

/* Bootstrap Primary Color Overrides */
.bg-primary {
    background-color: #ffffff !important;
}

.btn-primary {
    background-color: #FFA500 !important;
    border-color: #FFA500 !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #FF8C00 !important;
    border-color: #FF8C00 !important;
}

.btn-outline-primary {
    color: #FFA500 !important;
    border-color: #FFA500 !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: #FFA500 !important;
    border-color: #FFA500 !important;
    color: white !important;
}

.text-primary {
    color: #FFA500 !important;
}

.border-primary {
    border-color: #FFA500 !important;
}

.badge.bg-primary {
    background-color: #FFA500 !important;
}

/* Navbar Styles for White Background */
.navbar.bg-primary {
    border-bottom: 1px solid #dee2e6 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.navbar.bg-primary .navbar-brand {
    color: #212529 !important;
    font-weight: 600;
}

.navbar.bg-primary .navbar-brand:hover,
.navbar.bg-primary .navbar-brand:focus {
    color: #FFA500 !important;
}

.navbar.bg-primary .navbar-text {
    color: #6c757d !important;
}

.navbar.bg-primary .nav-link {
    color: #212529 !important;
}

.navbar.bg-primary .nav-link:hover,
.navbar.bg-primary .nav-link:focus {
    color: #FFA500 !important;
}

.navbar-dark .navbar-brand:hover,
.navbar-dark .navbar-brand:focus {
    color: rgba(255, 255, 255, 0.9) !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Hero Section */
.hero-section {
    background: url('');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 200px;
    max-height: 550px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    color: white;
    font-weight: 700;
}

.hero-content p {
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
    color: white;
    font-weight: 500;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Hero Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-content .d-flex {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 10%, #0056b3 100%);
}

/* Cards */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

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

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}

/* Navigation */
.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

/* Dashboard Styles */
.dashboard-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Job Cards */
.job-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.job-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

/* Profile Picture */
.profile-picture {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
}

/* Company Logo */
.company-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 10px;
}

/* Status Badges */
.status-pending {
    background-color: var(--warning-color);
    color: #000;
}

.status-approved {
    background-color: var(--success-color);
}

.status-rejected {
    background-color: var(--danger-color);
}

.status-active {
    background-color: var(--success-color);
}

.status-closed {
    background-color: var(--secondary-color);
}

.status-applied {
    background-color: var(--info-color);
    color: #000;
}

.status-shortlisted {
    background-color: var(--warning-color);
    color: #000;
}

.status-interviewed {
    background-color: #6f42c1;
}

.status-hired {
    background-color: var(--success-color);
}

/* Tables */
.table thead th {
    background-color: var(--light-color);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
}

/* Sidebar */
.sidebar {
    background-color: #f8f9fa;
    min-height: calc(100vh - 76px);
    padding: 1rem 0;
}

.sidebar .nav-link {
    color: #495057;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    margin-bottom: 0.25rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

/* CV Builder */
.cv-section {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: white;
}

.cv-section h4 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Interview Scheduling */
.interview-card {
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0 8px 8px 0;
}

/* Custom Utilities */
.min-vh-75 {
    min-height: 75vh;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 4rem 0;
        min-height: 70vh;
        background-attachment: scroll; /* Better performance on mobile */
    }
    
    .hero-content h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-content p {
        font-size: 1.2rem !important;
    }
    
    .min-vh-75 {
        min-height: 60vh;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .profile-picture {
        width: 100px;
        height: 100px;
    }
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* File Upload */
.file-upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s ease;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
}

.file-upload-area.dragover {
    border-color: var(--primary-color);
    background-color: #f8f9fa;
}

/* Alerts */
.alert {
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Custom Utilities */
.text-primary-custom {
    color: var(--primary-color) !important;
}

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

.border-primary-custom {
    border-color: var(--primary-color) !important;
}