@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --dark-color: #0f172a;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-main);
    line-height: 1.6;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--dark-color);
}

/* Page Header / Process Background Overrides */
.process-bg h1 {
    color: var(--dark-color) !important;
}

.process-bg-has-img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}

.process-bg-has-img::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba(255, 255, 255, 0.85); */
    z-index: -1;
}

/* Modern Header / Navbar */
.header-main {
    background: #0f172a !important;
    /* Deep navy/dark background as requested */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0;
    /* Reduced height */
    position: sticky !important;
    top: 0;
    z-index: 1050;
    transition: all 0.3s ease;
}

/* Blue top-bar removed as requested */

.navbar-nav .nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 0.5rem 1.25rem !important;
    transition: all 0.2s ease;
    border-radius: 8px;
    font-size: 0.95rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
}

/* Modern Dropdown Styling for Dark Header */
.dropdown-menu {
    background: #1e293b;
    /* Slightly lighter than header */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
}

.dropdown-divider {
    border-top-color: rgba(255, 255, 255, 0.05);
}

/* Custom Header Search & Auth Buttons */
.header-search-bar {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 50px;
    padding: 4px;
    margin: 0 1.5rem;
    flex: 1;
    max-width: 500px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.header-search-bar:focus-within {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-input-group {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0 12px;
    border-right: 1px solid #e2e8f0;
}

.search-input-group:last-child {
    border-right: none;
}

.header-search-bar input {
    border: none;
    background: transparent;
    padding: 6px 4px;
    width: 100%;
    font-size: 0.875rem;
    outline: none;
    color: var(--dark-color);
}

.header-search-bar i {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn-search-header {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-search-header:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

/* Auth Buttons */
.btn-auth {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-candidate-login {
    background: #2563eb;
    color: white !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    border: 1px solid transparent;
}

.btn-candidate-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    background: #1d4ed8;
}

.btn-candidate-login i {
    font-size: 0.9rem;
    color: #fff;
    opacity: 0.8;
}

.btn-company-login {
    background: rgba(255, 255, 255, 0.05);
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-company-login:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-company-login i {
    color: rgba(255, 255, 255, 0.8);
}

.btn-auth:active {
    transform: translateY(0) scale(0.98);
    opacity: 0.9;
}

/* Soft Utility Backgrounds */
.bg-primary-soft {
    background-color: rgba(37, 99, 235, 0.1) !important;
}

.bg-danger-soft {
    background-color: rgba(239, 68, 68, 0.1) !important;
}

.bg-success-soft {
    background-color: rgba(16, 185, 129, 0.1) !important;
}

/* Interactive Input States */
.header-search-bar input:focus {
    color: var(--primary-color);
}

.header-search-bar:focus-within i {
    color: var(--primary-color);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.nav-btn {
    background: var(--primary-color);
    color: white !important;
    border-radius: var(--radius-md);
    padding: 0.5rem 1.5rem !important;
}

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

/* Modern Card Design (Job Portal Style) */
.job-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1.5rem;
    display: block;
    text-decoration: none !important;
    color: inherit !important;
}

.job-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.job-card .company-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    object-fit: contain;
    background: #f1f5f9;
    padding: 8px;
}

.job-card .job-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.job-card .company-name {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.job-card .job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.job-card .job-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-type-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-full-time {
    background: #dcfce7;
    color: #166534;
}

.badge-part-time {
    background: #fef9c3;
    color: #854d0e;
}

.badge-wfh {
    background: #dbeafe;
    color: #1e40af;
}

.badge-intern {
    background: #f3e8ff;
    color: #6b21a8;
}

/* Sidebar Filter Styling */
.filter-sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

.filter-section {
    margin-bottom: 2rem;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-size: 0.875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: block;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: 0.75rem;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    gap: 0.75rem;
    transition: color 0.2s;
}

.custom-checkbox:hover {
    color: var(--primary-color);
}

.custom-checkbox input {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 4px;
    border: 2px solid var(--border-color);
    cursor: pointer;
}

.count-badge {
    margin-left: auto;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}

/* Modern Multi-step Registration / Forms */
.form-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.form-control {
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    border: 2px solid #f1f5f9;
    background: #f8fafc;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.btn-primary-modern {
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    border: none;
    transition: all 0.3s;
}

.btn-primary-modern:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.4);
}

/* Dashboard Styles */
.dashboard-nav {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.dashboard-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-main);
    text-decoration: none !important;
    transition: all 0.2s;
    border-left: 4px solid transparent;
}

.dashboard-nav-item:hover,
.dashboard-nav-item.active {
    background: #f1f5f9;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.dashboard-stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

/* Footer Section */
.footer-main {
    background: var(--dark-color);
    color: #94a3b8;
    padding: 4rem 0 2rem;
}

.footer-main h5 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-main a {
    color: #94a3b8;
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

.footer-main a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: #1e293b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #fff 0%, #eff6ff 100%);
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive tweaks */
/* Responsive tweaks */
/* Modern Job Application Modal Styling */
.apply-popup {
    background: #ffffff !important;
    padding: 0 !important;
    text-align: left;
    max-width: 700px; /* Slightly wider for better breathing room */
    margin: 40px auto;
    position: relative;
    border-radius: 1.25rem !important;
    overflow: hidden !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    display: block !important;
}

.small-dialog-headline {
    background: #1e293b !important;
    padding: 2.5rem 2rem !important;
    color: #ffffff !important;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.small-dialog-headline h2 {
    color: #ffffff !important;
    font-size: 1.85rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
}

.job-opening-badge {
    display: inline-block !important;
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
    padding: 6px 16px !important;
    border-radius: 50px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    margin-top: 0.75rem !important;
}

.job_apply_main {
    background: #ffffff !important;
    padding: 2.5rem !important;
}

.input-group-modern {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-group-modern i {
    position: absolute;
    left: 1.25rem;
    color: #64748b;
    pointer-events: none;
    transition: all 0.2s;
    z-index: 20;
    font-size: 1.1rem;
}

.input-group-modern .form-control {
    padding-left: 3.5rem !important;
    height: 56px !important;
    background: #f8fafc !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 0.85rem !important;
    font-size: 1rem !important;
    color: #1e293b !important;
    width: 100% !important;
}

.input-group-modern textarea.form-control {
    height: auto !important;
    min-height: 120px !important;
    padding-top: 1rem !important;
}

.input-group-modern .form-control:focus {
    background: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
    outline: none !important;
}

.input-group-modern .form-control:focus + i,
.input-group-modern:focus-within i {
    color: #3b82f6 !important;
}

/* Modern File Upload Zone */
.modern-file-upload {
    position: relative;
    width: 100%;
}

.upload-zone {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-zone:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-2px);
}

.upload-icon-wrapper {
    width: 56px;
    height: 56px;
    background: #ffffff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.upload-icon-wrapper i {
    font-size: 1.5rem;
    color: #3b82f6;
}

.upload-text-wrapper span:first-child {
    font-size: 1rem;
    color: #1e293b;
}

.btn-primary-modern {
    background: #3b82f6 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0.85rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    padding: 1rem 2rem !important;
    width: 100% !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-primary-modern:hover {
    background: #2563eb !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3) !important;
}

.btn-primary-modern:active {
    transform: translateY(0) !important;
}

/* Magnific Popup Structural Fixes */
.mfp-hide {
    display: none !important;
}

.mfp-content {
    vertical-align: middle !important;
}

.mfp-close {
    color: #ffffff !important;
    background: rgba(255,255,255,0.1) !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    margin: 20px !important;
    transition: all 0.2s !important;
}

.mfp-close:hover {
    background: rgba(255,255,255,0.2) !important;
}

.mfp-fade.mfp-bg {
    opacity: 0;
    transition: all 0.3s ease-out;
    background: #0f172a;
}
.mfp-fade.mfp-bg.mfp-ready {
    opacity: 0.9;
}
.mfp-fade.mfp-bg.mfp-removing {
    opacity: 0;
}

.mfp-fade.mfp-wrap .mfp-content {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
    opacity: 1;
    transform: scale(1);
}
.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
    opacity: 0;
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .apply-popup {
        margin: 10px;
        max-width: 95%;
    }
    .job_apply_main {
        padding: 1.5rem !important;
    }
    .small-dialog-headline {
        padding: 1.5rem !important;
    }
}
/* Remove underlines from all frontend pagination */
.pagination a, 
.pagination-list a, 
.dataTables_paginate a, 
.page-link {
    text-decoration: none !important;
}

/* --- Global Share Dropdown Styles --- */
.share-btn-group { position: relative; display: inline-block; }
.share-toggle {
    background: #f8fafc;
    color: #64748b;
    width: 38px; height: 38px;
    display: flex;
    align-items: center; justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}
.share-toggle:hover, .share-btn-group.active .share-toggle { 
    background: #2563eb; 
    color: #fff;
    border-color: #2563eb;
    transform: rotate(15deg);
}

.share_dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
    border-radius: 12px;
    padding: 10px;
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-top: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    pointer-events: none;
}

/* Hover bridge to prevent losing hover between toggle and dropdown */
.share_dropdown::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
}

.share-btn-group:hover .share_dropdown,
.share-btn-group.active .share_dropdown { 
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: all;
    display: block !important;
}

.share_dropdown a {
    display: flex !important;
    align-items: center;
    padding: 10px 14px !important;
    font-size: 14px !important;
    color: #475569 !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    text-align: left !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
}
.share_dropdown a:hover { 
    background: #f1f5f9 !important; 
    color: #2563eb !important; 
    transform: translateX(5px);
}
.share_dropdown i { margin-right: 12px !important; width: 18px !important; font-size: 16px !important; transition: transform 0.2s; }
.share_dropdown a:hover i { transform: scale(1.2); }

.share_dropdown a.fb i { color: #1877f2 !important; }
.share_dropdown a.tw i { color: #1da1f2 !important; }
.share_dropdown a.in i { color: #0a66c2 !important; }
.share_dropdown a.pinterest i { color: #E60023 !important; }
.share_dropdown a.whatsapp-share i { color: #25d366 !important; }
