/* ===================================================================
   JobMitra / Modern Job Portal - Custom Stylesheet
   Design Inspiration: Naukri.com, Indeed.com & Modern SaaS Dashboards
   Palette: Professional Enterprise Blue & Clean Crisp White
   =================================================================== */

:root {
    --primary: #0a66c2;
    --primary-hover: #084e96;
    --primary-light: #ebf3ff;
    --primary-subtle: #d0e4ff;
    --secondary: #1e293b;
    --accent: #2563eb;
    --accent-orange: #f59e0b;
    --accent-green: #10b981;
    --accent-purple: #8b5cf6;
    --accent-red: #ef4444;
    
    --bg-light: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --border-subtle: #f1f5f9;
    
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 14px 28px rgba(10, 102, 194, 0.12);
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Base & Typography */
body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--secondary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

/* Navbar */
.navbar-custom {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.45rem;
    color: #0a66c2 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.03em;
}

.navbar-brand i {
    font-size: 1.7rem;
    color: #0a66c2;
}

.nav-link {
    font-weight: 500;
    color: #334155 !important;
    padding: 0.5rem 0.9rem !important;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
    background-color: var(--primary-light);
}

/* Custom Buttons */
.btn-primary-custom {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff !important;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 4px rgba(10, 102, 194, 0.2);
    transition: all 0.2s ease;
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(10, 102, 194, 0.3);
}

.btn-outline-custom {
    color: var(--primary) !important;
    border: 1.5px solid var(--primary);
    background: transparent;
    font-weight: 600;
    padding: 0.55rem 1.3rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.btn-outline-custom:hover {
    background-color: var(--primary);
    color: #fff !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0a3d62 0%, #0a66c2 60%, #1e88e5 100%);
    color: white;
    padding: 4.5rem 0 5.5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--bg-light);
    transform: skewY(-1deg);
    pointer-events: none;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
    margin-bottom: 2.2rem;
}

/* Hero Search Box (Indeed / Naukri Inspired) */
.hero-search-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    color: var(--text-main);
}

.search-input-group {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.85rem;
    transition: border-color 0.2s;
}

.search-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.15);
}

.search-input-group i {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-right: 0.75rem;
}

.search-input-group input, .search-input-group select {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.95rem;
    color: var(--text-main);
    background: transparent;
}

.search-input-group input::placeholder {
    color: var(--text-light);
}

/* Quick Search Tags */
.quick-tags {
    margin-top: 1rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
}

.quick-tag-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin: 0 4px;
    font-size: 0.82rem;
    text-decoration: none;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}

.quick-tag-pill:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* Job Cards (Modern Naukri / Indeed Style) */
.job-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

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

.job-card.featured-job {
    border-left: 4px solid var(--primary);
}

.company-logo-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
}

.job-title-link {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.3;
    display: block;
    margin-bottom: 0.25rem;
}

.job-title-link:hover {
    color: var(--primary);
}

.company-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 5px;
}

.job-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin: 0.85rem 0;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.job-meta-item i {
    color: var(--text-light);
    font-size: 0.95rem;
}

.badge-tag {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    background-color: #f1f5f9;
    color: #475569;
}

.badge-type-fulltime {
    background-color: #ecfdf5;
    color: #065f46;
}

.badge-type-parttime {
    background-color: #eff6ff;
    color: #1e40af;
}

.badge-type-remote {
    background-color: #fdf4ff;
    color: #86198f;
}

.badge-type-internship {
    background-color: #fffbeb;
    color: #92400e;
}

.job-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.82rem;
    color: var(--text-light);
}

/* Category Cards */
.category-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    text-align: center;
    transition: all 0.25s ease;
    display: block;
    color: var(--secondary);
}

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

.category-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon-box {
    background-color: var(--primary);
    color: #fff;
}

.category-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.category-count {
    font-size: 0.84rem;
    color: var(--text-muted);
}

/* Feature & Step Cards */
.step-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    height: 100%;
    position: relative;
}

.step-number {
    position: absolute;
    top: 15px;
    right: 18px;
    font-size: 2rem;
    font-weight: 900;
    color: #e2e8f0;
}

.step-icon-wrap {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.25rem auto;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: var(--radius-lg);
    padding: 3rem;
    color: #fff;
    box-shadow: var(--shadow-lg);
}

/* Footer */
.footer-main {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 4rem 0 1.5rem 0;
    font-size: 0.92rem;
}

.footer-main h5 {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

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

.footer-link-list li {
    margin-bottom: 0.65rem;
}

.footer-link-list a {
    color: #94a3b8;
    transition: color 0.2s;
}

.footer-link-list a:hover {
    color: #ffffff;
    padding-left: 3px;
}

.footer-bottom {
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #1e293b;
    font-size: 0.85rem;
}

/* Dashboard Shell (Seeker, Employer, Admin) */
.dashboard-wrapper {
    display: flex;
    min-height: calc(100vh - 72px);
    background-color: #f8fafc;
}

.dashboard-sidebar {
    width: 270px;
    background-color: #ffffff;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.dashboard-sidebar.sidebar-dark {
    background-color: #0f172a;
    border-right: 1px solid #1e293b;
    color: #cbd5e1;
}

.sidebar-dark .sidebar-brand {
    color: #fff !important;
    border-bottom: 1px solid #1e293b;
}

.sidebar-dark .sidebar-menu-link {
    color: #94a3b8;
}

.sidebar-dark .sidebar-menu-link:hover,
.sidebar-dark .sidebar-menu-link.active {
    background-color: #1e293b;
    color: #60a5fa;
}

.sidebar-brand-box {
    padding: 1.4rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-user-card {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background-color: #f8fafc;
}

.sidebar-dark .sidebar-user-card {
    background-color: #1e293b;
    border-bottom: 1px solid #334155;
}

.sidebar-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0.85rem;
    margin: 0;
    flex-grow: 1;
}

.sidebar-menu-item {
    margin-bottom: 0.3rem;
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: #475569;
    font-weight: 500;
    font-size: 0.93rem;
    transition: all 0.2s;
}

.sidebar-menu-link i {
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
}

.sidebar-menu-link:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.sidebar-menu-link.active {
    background-color: var(--primary);
    color: #ffffff;
    font-weight: 600;
}

.sidebar-menu-link.active i {
    color: #ffffff;
}

.dashboard-main-content {
    flex-grow: 1;
    padding: 2rem;
    overflow-x: hidden;
}

/* Dashboard Metric Stat Cards */
.stat-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.stat-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon-blue {
    background-color: #ebf3ff;
    color: #0a66c2;
}

.stat-icon-green {
    background-color: #ecfdf5;
    color: #10b981;
}

.stat-icon-amber {
    background-color: #fffbeb;
    color: #f59e0b;
}

.stat-icon-purple {
    background-color: #f5f3ff;
    color: #8b5cf6;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.1;
    margin: 0.35rem 0 0.15rem 0;
}

.stat-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Modern Card Shell */
.card-shell {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.card-shell-header {
    padding: 1.15rem 1.4rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-shell-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

.card-shell-body {
    padding: 1.4rem;
}

/* Status Badges */
.badge-status {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-status-applied {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.badge-status-shortlisted {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.badge-status-rejected {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.badge-status-active {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.badge-status-pending {
    background-color: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.badge-status-closed {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

/* Form Styles */
.form-label-custom {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}

.form-control-custom, .form-select-custom {
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.95rem;
    font-size: 0.94rem;
    color: var(--text-main);
    background-color: #fff;
    transition: all 0.2s;
}

.form-control-custom:focus, .form-select-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.15);
    outline: none;
}

/* Upload Dropzone */
.upload-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-md);
    background-color: #f8fafc;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-dropzone:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.upload-dropzone i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

/* Responsive Table */
.table-custom {
    margin-bottom: 0;
}

.table-custom thead th {
    background-color: #f8fafc;
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.85rem 1rem;
    border-bottom: 1.5px solid var(--border-color);
}

.table-custom tbody td {
    padding: 1rem;
    vertical-align: middle;
    font-size: 0.92rem;
    color: #334155;
    border-bottom: 1px solid var(--border-color);
}

.table-custom tbody tr:hover {
    background-color: #f8fafc;
}

/* Mobile Sidebar Overlay Drawer Behavior */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

.sidebar-backdrop.show {
    display: block;
    opacity: 1;
}

body.sidebar-open {
    overflow: hidden !important;
}

.sidebar-toggle-btn {
    padding: 0.25rem 0.5rem;
    line-height: 1;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Breakpoints */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .dashboard-wrapper {
        min-height: 100vh;
        position: relative;
    }
    
    /* Offcanvas drawer on mobile */
    .dashboard-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 280px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        z-index: 1050 !important;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-right: 1px solid var(--border-color);
        border-bottom: none !important;
    }
    
    .dashboard-sidebar.show {
        transform: translateX(0) !important;
        box-shadow: 0 0 35px rgba(0, 0, 0, 0.35) !important;
    }
    
    .dashboard-main-content {
        width: 100% !important;
        padding: 1rem !important;
        flex-grow: 1;
    }
}

