/* =========================================
   1. CORE & TYPOGRAPHY
   ========================================= */
.emp-body {
    background-color: #f3f4f6;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
    color: #1f2937;
}

.badge-pro {
    background: #1f2937;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 8px;
    vertical-align: middle;
}

/* =========================================
   2. AUTH LAYOUT (Login/Register)
   ========================================= */
.split-container {
    display: flex;
    min-height: 100vh;
    padding-top: 70px;
}

.split-left {
    flex: 1.2;
    background: #111827;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.split-left::after {
    content: "";
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(227, 145, 60, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.content-wrapper { position: relative; z-index: 2; max-width: 550px; }
.content-wrapper h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; font-weight: 800; }
.content-wrapper h1 span { color: #e3913c; }
.content-wrapper p { color: #9ca3af; font-size: 1.15rem; margin-bottom: 50px; line-height: 1.6; }

.feature-list { display: flex; flex-direction: column; gap: 30px; }
.feature-item { display: flex; align-items: flex-start; gap: 20px; }
.icon-box {
    width: 50px; height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.feature-item h4 { margin: 0 0 5px; font-size: 1.1rem; color: white; }
.feature-item p { margin: 0; font-size: 0.95rem; color: #9ca3af; }

.split-right {
    flex: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow-y: auto; 
}

.auth-card { width: 100%; max-width: 450px; padding: 30px; }
.auth-card h2 { font-size: 2rem; margin-bottom: 10px; color: #111827; }
.auth-card .text-muted { margin-bottom: 30px; display: block; color: #6b7280; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; color: #374151; }
.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    background: #fff;
    transition: 0.2s;
}
.form-group input:focus {
    border-color: #e3913c;
    box-shadow: 0 0 0 3px rgba(227, 145, 60, 0.1);
}

.divider { text-align: center; margin: 25px 0; position: relative; }
.divider::before { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: #e5e7eb; z-index: 1; }
.divider span { background: white; padding: 0 10px; color: #9ca3af; font-size: 0.85rem; position: relative; z-index: 2; }
.switch-text { text-align: center; font-size: 0.95rem; color: #4b5563; }
.switch-text a { color: #e3913c; text-decoration: none; font-weight: 700; }

@media (max-width: 992px) {
    .split-container { flex-direction: column; }
    .split-left { padding: 40px 20px; text-align: center; }
    .feature-list { display: none; } 
    .split-right { padding: 40px 20px; }
}

/* =========================================
   3. DASHBOARD LAYOUT
   ========================================= */
.dash-layout { display: flex; height: 100vh; overflow: hidden; }

/* Sidebar */
.sidebar {
    width: 260px;
    background: white;
    border-right: 1px solid #e5e7eb;
    display: flex; 
    flex-direction: column;
    padding: 20px;
    flex-shrink: 0;
}

.sidebar .brand { 
    display: flex; 
    align-items: center; 
    margin-bottom: 20px; /* Adjusted margin */
    order: 1; /* Order for sidebar layout */
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.sidebar .brand img, .nav-logo-img, .dash-logo, .auth-logo { 
    max-width: 200px;
    max-height: 80px;
    height: auto; 
    width: auto; 
    margin-right: 0; 
    object-fit: contain;
    background: transparent; 
    display: block; 
}

/* Login Page Navbar */
.emp-nav {
    background: #fff;
    padding: 12px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.emp-nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* User Profile */
.user-profile-mini {
    display: flex; align-items: center; gap: 10px;
    padding: 15px; background: #f9fafb; border-radius: 8px; margin-bottom: 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    order: 3; /* Order for sidebar layout */
}
.user-profile-mini:hover { background: #e5e7eb; }
.avatar-circle {
    width: 40px; height: 40px; background: #111827; color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold;
}
.user-info h4 { margin: 0; font-size: 0.9rem; color: #111827; }
.user-info p { margin: 0; font-size: 0.8rem; color: #6b7280; }

/* Enhanced Credit Widget */
.credit-widget {
    background: white; 
    border: 1px solid #e5e7eb;
    border-radius: 30px;
    padding: 8px 20px;
    margin: 0;
    color: #374151;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    gap: 15px;
    width: auto;
}
.cw-item { display: flex; align-items: center; gap: 8px; }
.cw-icon { width: 16px; height: 16px; color: #e3913c; }
.cw-divider { width: 1px; height: 18px; background: #e5e7eb; }
.cw-text strong { color: #111827; font-weight: 700; }

/* Low Credit Warning */
.low-credits-text { color: #ef4444 !important; }
.cw-warning-icon { color: #ef4444; width: 16px; height: 16px; margin-left: 8px; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

.side-nav { display: flex; flex-direction: column; gap: 5px; order: 4; flex-grow: 1; }
.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 15px; border-radius: 8px; border: none;
    background: transparent; color: #4b5563;
    font-size: 0.95rem; cursor: pointer; text-align: left; transition: 0.2s;
}
.nav-item:hover { background: #f3f4f6; color: #111827; }
.nav-item.active { background: #fff7ed; color: #e3913c; font-weight: 600; }
.nav-item.logout { margin-top: auto; color: #ef4444; }

/* Main Content Area */
.main-content { 
    flex: 1; 
    padding: 40px 50px; 
    overflow-y: auto; 
    background: #f9fafb; 
}

/* Global Top Bar (Persistent Credits) */
.global-top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: sticky;
    top: 0;
    background: #f9fafb; /* Matches main content background */
    z-index: 90;
    min-height: 50px;
}

.view-section {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.top-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.top-header h2 { font-size: 1.5rem; color: #111827; margin: 0; }

/* Stats & Cards */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.stat-card { background: white; padding: 20px; border-radius: 12px; border: 1px solid #e5e7eb; }
.stat-card h3 { font-size: 2rem; margin: 0 0 5px; color: #111827; }

/* =========================================
   4. JOB POSTING FORM & DROPDOWNS
   ========================================= */
.form-container-pro { max-width: 850px; margin: 0 auto; padding-bottom: 50px; }
.card-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.section-title {
    font-size: 1rem; color: #6b7280; text-transform: uppercase;
    border-bottom: 1px solid #f3f4f6; padding-bottom: 10px; margin-bottom: 20px; font-weight: 700;
}

.input-pro {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    background: #fff;
    transition: 0.2s;
}
.input-pro:focus { border-color: #e3913c; box-shadow: 0 0 0 3px rgba(227, 145, 60, 0.1); }
.req { color: #dc2626; }

.form-row-pro { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.salary-row { display: flex; align-items: center; gap: 15px; }

/* Pills & Radios */
.pill-group { display: flex; gap: 10px; flex-wrap: wrap; }
.pill-btn {
    background: white; border: 1px solid #d1d5db; padding: 8px 18px;
    border-radius: 20px; cursor: pointer; color: #4b5563; font-size: 0.9rem; transition: 0.2s;
}
.pill-btn:hover { background: #f9fafb; border-color: #9ca3af; }
.pill-btn.active { background: #fff7ed; border-color: #e3913c; color: #e3913c; font-weight: 700; }

.radio-group { display: flex; gap: 20px; }
.radio-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.radio-label input { accent-color: #e3913c; width: 18px; height: 18px; }

.form-footer {
    display: flex; justify-content: flex-end; gap: 15px;
    position: sticky; bottom: 0; background: #f9fafb; padding: 15px 0; z-index: 10;
    border-top: 1px solid #e5e7eb;
}

/* Tom Select & Quill Fixes */
.ts-wrapper { width: 100%; display: block; }
.ts-control {
    padding: 0 15px !important; border-radius: 8px !important; border: 1px solid #d1d5db !important;
    font-size: 0.95rem !important; box-shadow: none !important; background-color: #fff !important;
    min-height: 45px !important; display: flex !important; align-items: center !important; 
}
.ts-control input { height: 100% !important; margin: 0 !important; }
.ts-control:focus-within { border-color: #e3913c !important; box-shadow: 0 0 0 3px rgba(227, 145, 60, 0.1) !important; }
.ql-toolbar { background: #f9fafb; border-color: #d1d5db !important; }
.ql-container { border-color: #d1d5db !important; background: white; font-size: 1rem; min-height: 150px; }

/* Salary Breakup */
.salary-breakup-box {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
    padding: 15px; margin-top: 15px; animation: fadeIn 0.3s ease-in-out;
}
.salary-breakup-box h5 { margin: 0 0 10px 0; font-size: 0.9rem; color: #64748b; text-transform: uppercase; font-weight: 700; }
.sb-row { display: flex; justify-content: space-between; font-size: 0.95rem; color: #334155; margin-bottom: 6px; }
.sb-row.total { border-top: 1px dashed #cbd5e1; padding-top: 10px; margin-top: 10px; font-weight: 700; color: #0f172a; font-size: 1rem; }

input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* =========================================================
   🚀 MODERN TALENT SEARCH & FILTERS
   ========================================================= */

/* --- 1. SEARCH BAR CONTAINER --- */
.ts-search-container { margin-bottom: 25px; }

.ts-search-bar {
    display: flex;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    height: 55px;
    overflow: visible !important; 
    position: relative;
    z-index: 50; 
    align-items: center;
}

.ts-search-bar .input-wrap {
    flex: 1;
    display: flex; align-items: center; padding: 0 15px; position: relative;
    overflow: visible; 
}

.ts-search-bar .input-wrap i { color: #94a3b8; width: 20px; height: 20px; }

/* --- FIX: TOMSELECT INSIDE SEARCH BAR --- */
#ts-location + .ts-wrapper {
    width: 100%;
    height: 100%;
    border: none;
    box-shadow: none;
}

#ts-location + .ts-wrapper .ts-control {
    border: none !important;
    box-shadow: none !important;
    padding-left: 10px !important;
    background: transparent !important;
    min-height: auto !important;
    height: 100% !important;
    display: flex;
    align-items: center;
}

#ts-location + .ts-wrapper .ts-control input {
    font-size: 1rem !important;
    color: #1e293b !important;
}

/* --- FIX: SEARCH BAR DROPDOWN --- */
.ts-dropdown {
    margin-top: 8px !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e2e8f0 !important;
    z-index: 1000 !important; 
}

.ts-dropdown .option {
    padding: 10px 15px !important;
    font-size: 0.95rem !important;
}

.ts-dropdown .active {
    background-color: #fff7ed !important; 
    color: #e3913c !important;
    font-weight: 600;
}

.ts-search-bar input {
    width: 100%; border: none; outline: none; font-size: 1rem; padding-left: 12px; color: #1e293b;
}
.ts-search-bar .border-left { border-left: 1px solid #e2e8f0; height: 60%; }

.btn-search {
    background: #e3913c; color: white; border: none; padding: 0 35px;
    font-weight: 600; cursor: pointer; font-size: 1rem; transition: 0.2s;
    height: 100%;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}
.btn-search:hover { background: #d97706; }

/* --- 2. LAYOUT --- */
.ts-layout { display: flex; gap: 25px; align-items: flex-start; }

/* --- 3. FILTER SIDEBAR - MINIMAL DESIGN --- */
.filter-sidebar {
    width: 290px;
    background: transparent;
    border-radius: 0;
    border: none;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    height: calc(100vh - 40px);
    display: flex; 
    flex-direction: column;
    padding: 0 20px 0 0;
}

.filter-header {
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    background: transparent; 
    z-index: 2; 
    border-radius: 0;
}

.filter-header h3 { 
    margin: 0; 
    font-size: 1.05rem; 
    font-weight: 700; 
    color: #111827;
}

.btn-clear { 
    background: none; 
    border: none; 
    color: #6366f1; 
    font-size: 0.85rem; 
    font-weight: 600; 
    cursor: pointer;
    transition: color 0.2s;
}

.btn-clear:hover {
    color: #4f46e5;
}

/* Scrollable Area */
.filter-scroll-area { 
    overflow-y: auto; 
    flex: 1; 
    padding: 0;
}

.filter-scroll-area::-webkit-scrollbar { width: 4px; }
.filter-scroll-area::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 10px; }

/* Static Section */
.filter-static-section { 
    padding: 0 0 16px 0; 
    border-bottom: 1px solid #e5e7eb; 
    background: transparent;
}

.filter-search-input {
    width: 100%; 
    padding: 10px 12px 10px 36px; 
    border: 1px solid #e5e7eb; 
    border-radius: 6px; 
    font-size: 0.9rem; 
    outline: none; 
    background: white; 
    margin-top: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 14px;
    padding-left: 36px;
    box-sizing: border-box;
}

.filter-search-input:focus { 
    border-color: #9ca3af;
    outline: none;
}

.filter-group label { 
    font-size: 0.9rem; 
    font-weight: 600; 
    color: #374151;
}

/* Accordion Styles - Minimal & Clean */
.filter-accordion { 
    border-bottom: 1px solid #e5e7eb; 
    background: transparent;
}

.fa-header {
    padding: 16px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    transition: color 0.2s;
    background: transparent;
}

.fa-header:hover {
    color: #111827;
    background: transparent;
}

.fa-header i {
    width: 18px;
    height: 18px;
    color: #6b7280;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.filter-accordion.open .fa-header i {
    transform: rotate(180deg);
    color: #1f2937;
}

.fa-body {
    display: none;
    padding: 12px 0 16px 0;
    background: transparent;
}

.filter-accordion.open .fa-body {
    display: flex;
    flex-direction: column;
}

/* Scrollable Items Container */
.filter-items-container {
    max-height: 280px;
    overflow-y: auto;
    padding: 8px 0;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f9fafb;
    margin-top: 8px;
}

.filter-items-container::-webkit-scrollbar {
    width: 6px;
}

.filter-items-container::-webkit-scrollbar-track {
    background: transparent;
}

.filter-items-container::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.filter-items-container::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Filter Search Input - Subtle */
.filter-search-wrap {
    padding: 0 0 12px 0;
}

.filter-search-mini {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    background: white;
    box-sizing: border-box;
    color: #374151;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 14px;
    transition: all 0.2s;
}

.filter-search-mini:focus {
    border-color: #9ca3af;
    outline: none;
    box-shadow: none;
}

.filter-search-mini::placeholder {
    color: #9ca3af;
}

/* Show More Button - Hidden (Deprecated) */
.filter-show-more {
    display: none !important;
}

/* Filter Widgets - Minimal */
.checkbox-list, .radio-list { 
    display: flex; 
    flex-direction: column; 
    gap: 12px;
    margin: 0;
    padding: 0 8px;
}

/* Professional Filter Item Styling - Clean */
.custom-check, .custom-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 0.95rem;
    color: #374151;
    transition: color 0.2s;
    user-select: none;
    background: transparent;
}

.custom-check:hover, .custom-radio:hover {
    color: #111827;
}



.custom-check input[type="checkbox"],
.custom-radio input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: #3b82f6;
    flex-shrink: 0;
}

.custom-check span, .custom-radio span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.custom-check input, .custom-radio input { 
    accent-color: #3b82f6; width: 16px; height: 16px; margin-right: 10px; cursor: pointer; 
}
.badge-hot { 
    background: #fee2e2; color: #ef4444; font-size: 0.65rem; padding: 1px 6px; 
    border-radius: 10px; margin-left: 6px; font-weight: 700; text-transform: uppercase; 
}

/* Range Inputs */
.range-row { display: flex; align-items: center; gap: 8px; }
.range-input { width: 100%; padding: 6px; border: 1px solid #e2e8f0; border-radius: 4px; font-size: 0.85rem; text-align: center; }
.range-to { font-size: 0.8rem; color: #64748b; }

/* Pills (Gender) - Minimal & Clean */
.pill-group-filter { 
    display: flex; 
    gap: 12px;
    padding: 8px 0;
    margin: 8px 0 0 0;
    border-radius: 0; 
    flex-wrap: wrap;
    background: transparent;
}

.f-pill {
    padding: 8px 20px; 
    font-size: 0.9rem; 
    cursor: pointer; 
    border-radius: 20px; 
    color: #6b7280; 
    font-weight: 500; 
    transition: all 0.2s;
    border: 1px solid #d1d5db;
    background: white;
    white-space: nowrap;
}

.f-pill:hover {
    border-color: #9ca3af;
    color: #374151;
}

.f-pill.active { 
    background: #3b82f6; 
    color: white; 
    border-color: #3b82f6;
    box-shadow: none; 
}

/* --- 4. RESULTS AREA --- */
.results-area { flex: 1; }

.results-header {
    display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 15px;
}
.rh-left h4 { margin: 0; font-size: 1.1rem; color: #1e293b; font-weight: 700; }
.sort-select { padding: 6px 12px; border: 1px solid #cbd5e1; border-radius: 6px; color: #475569; outline: none; cursor: pointer; background: white; }

.bulk-toolbar {
    background: white; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 20px;
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.select-all-wrap { font-weight: 600; font-size: 0.9rem; color: #334155; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.select-all-wrap input { width: 16px; height: 16px; accent-color: #3b82f6; }

.bt-actions { display: flex; gap: 10px; }
.btn-bulk {
    border: none; padding: 8px 16px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; 
    cursor: pointer; display: flex; align-items: center; gap: 6px; color: white; transition: 0.2s;
}
.btn-bulk:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.btn-bulk i { width: 14px; height: 14px; }
.btn-bulk-blue { background: #3b82f6; }
.btn-bulk-blue:hover:not(:disabled) { background: #2563eb; }
.btn-bulk-green { background: #22c55e; }
.btn-bulk-green:hover:not(:disabled) { background: #16a34a; }

/* --- 5. COMPACT CANDIDATE CARD (Modern) --- */
.talent-card-stack { display: flex; flex-direction: column; gap: 12px; }

.t-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    overflow: hidden;
    transition: all 0.2s ease-in-out;
    margin-bottom: 16px;
}

.t-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.t-body {
    display: flex;
    padding: 16px;
    gap: 20px;
}

.t-identity-col {
    flex-shrink: 0;
    width: 220px;
    border-right: 1px solid #f3f4f6;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
}

.t-head-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.t-avatar {
    width: 42px; height: 42px;
    background: #f1f5f9; color: #475569;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem; flex-shrink: 0;
}

.t-name-info h4 {
    margin: 0 0 4px 0; font-size: 1rem; font-weight: 600; color: #111827;
    display: flex; align-items: center; gap: 4px; line-height: 1.2;
}

.verified-tick { width: 14px; height: 14px; color: #10b981; fill: #dcfce7; }

.t-meta-line {
    margin: 0; font-size: 0.8rem; color: #64748b; display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
}
.t-sep { color: #cbd5e1; font-size: 0.7rem; }

.t-status-active {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.7rem; background: #ecfdf5; color: #059669;
    padding: 2px 8px; border-radius: 4px; font-weight: 600;
    margin-top: auto; align-self: flex-start;
}

.t-details-col {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* =========================================
   14. MODERN COMPACT JOB CARD (My Jobs)
   ========================================= */
.job-card-modern {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
    position: relative;
}

.job-card-modern:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.jcm-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.jcm-title-group h3 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.jcm-company {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.jcm-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.jcm-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: #475569;
}

.jcm-meta-item { display: flex; align-items: center; gap: 6px; }
.jcm-meta-item i, .jcm-meta-item svg { width: 14px; height: 14px; color: #94a3b8; }

.jcm-stats-bar {
    display: flex;
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 16px;
    border: 1px solid #f1f5f9;
    justify-content: space-between;
    align-items: center;
}

.jcm-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    border-right: 1px solid #e2e8f0;
}
.jcm-stat:last-child { border-right: none; }

.jcm-stat-val { font-weight: 700; color: #0f172a; font-size: 1rem; }
.jcm-stat-label { font-size: 0.75rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

.jcm-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}

.btn-jcm { padding: 8px 16px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s; border: 1px solid transparent; display: flex; align-items: center; }
.btn-jcm-ghost { background: transparent; color: #64748b; }
.btn-jcm-ghost:hover { background: #f1f5f9; color: #334155; }

.btn-jcm-primary { background: #eef2ff; color: #4f46e5; border-color: #e0e7ff; }
.btn-jcm-primary:hover { background: #4f46e5; color: white; border-color: #4f46e5; }

.t-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px 16px;
    margin-bottom: 12px;
}

.t-datum { display: flex; flex-direction: column; }

.t-d-label {
    font-size: 0.75rem; color: #94a3b8; margin-bottom: 2px; display: flex; align-items: center; gap: 4px;
}
.t-d-icon { width: 12px; height: 12px; }

.t-d-value {
    font-size: 0.9rem; font-weight: 500; color: #334155;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.t-skills-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.t-skills-label { font-size: 0.75rem; color: #94a3b8; font-weight: 600; }

.t-skill-tag {
    font-size: 0.75rem; padding: 2px 8px; border-radius: 4px;
    background: #f8fafc; color: #475569; border: 1px solid #e2e8f0;
}
.t-skill-tag.prime { background: #eff6ff; color: #2563eb; border-color: #dbeafe; }

.t-footer {
    background: #fcfcfc;
    border-top: 1px solid #f3f4f6;
    padding: 10px 16px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-c-whatsapp {
    background: #25D366; color: white; border: none;
    padding: 6px 16px; border-radius: 6px; font-size: 0.85rem; font-weight: 600;
    display: flex; align-items: center; gap: 6px; cursor: pointer; text-decoration: none; transition: background 0.2s;
}
.btn-c-whatsapp:hover { background: #1da851; color: white; }

.btn-c-primary {
    background: #10b981; color: white; border: none;
    padding: 6px 16px; border-radius: 6px; font-size: 0.85rem; font-weight: 600;
    display: flex; align-items: center; gap: 6px; cursor: pointer; transition: background 0.2s;
}
.btn-c-primary:hover { background: #059669; }

.btn-c-secondary {
    background: white; color: #475569; border: 1px solid #d1d5db;
    padding: 6px 12px; border-radius: 6px; font-size: 0.85rem; font-weight: 500;
    display: flex; align-items: center; gap: 6px; cursor: pointer; transition: all 0.2s;
}
.btn-c-secondary:hover { background: #f1f5f9; border-color: #9ca3af; }

@media (max-width: 768px) {
    .t-body { flex-direction: column; gap: 16px; }
    .t-identity-col { width: 100%; border-right: none; border-bottom: 1px solid #f3f4f6; padding-bottom: 16px; padding-right: 0; }
    .t-info-grid { grid-template-columns: 1fr 1fr; }
    .t-footer { justify-content: space-between; }
    .btn-c-primary, .btn-c-secondary, .btn-c-whatsapp { flex: 1; justify-content: center; }
}

/* Utility class to hide Degree section initially if needed */
.hidden {
    display: none !important;
}

/* Empty State */
.empty-state {
    text-align: center; padding: 60px; background: white;
    border-radius: 16px; border: 1px dashed #e5e7eb;
}
.empty-icon { font-size: 4rem; margin-bottom: 20px; display: block; opacity: 0.5; }

/* =========================================
   7. QUALIFICATION TABLE STYLES
   ========================================= */
.table-responsive {
    overflow-x: auto;
}

.qual-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.qual-table thead {
    background-color: #f9fafb;
}

.qual-table th {
    padding: 12px 15px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5563;
    border-bottom: 1px solid #e5e7eb;
}

.qual-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.qual-table tr:last-child td {
    border-bottom: none;
}

.qual-table .input-pro {
    padding: 8px 10px;
    font-size: 0.9rem;
    margin: 0; /* Override any default margin */
}

.qual-table select.input-pro {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.btn-delete-row {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete-row:hover {
    background-color: #fee2e2;
}

.btn-delete-row i {
    width: 16px;
    height: 16px;
}

.mt-3 { margin-top: 1rem; }

/* =========================================
   8. ENHANCED PROFESSIONAL FILTERS
   ========================================= */

/* Scrollable Filter Container */
.filter-sidebar {
    max-height: calc(100vh - 200px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.filter-scroll-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 10px;
    margin-right: -10px;
}

/* Custom Scrollbar for Filter Area */
.filter-scroll-area::-webkit-scrollbar {
    width: 6px;
}

.filter-scroll-area::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.filter-scroll-area::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
    transition: background 0.2s;
}

.filter-scroll-area::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Accordion Filter Sections */
.filter-accordion-container {
    padding: 0 10px;
    margin-right: -10px;
}

.filter-accordion {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fafbfc;
    transition: all 0.2s ease;
}

.filter-accordion:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.filter-accordion.open {
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.fa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #f8fafc;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s;
    user-select: none;
}

.filter-accordion.open .fa-header {
    background: #f0f4f8;
    border-bottom-color: #e5e7eb;
}

.fa-header:hover {
    background: #f0f4f8;
}

.fa-header i {
    width: 16px;
    height: 16px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #6b7280;
}

.filter-accordion.open .fa-header i {
    transform: rotate(180deg);
    color: #2563eb;
}

.fa-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
}

.filter-accordion.open .fa-body {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 14px;
}

.fa-body::-webkit-scrollbar {
    width: 4px;
}

.fa-body::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.fa-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.fa-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Enhanced Mini Search in Filters */
.mini-search-wrap {
    position: relative;
    margin-bottom: 10px;
    width: 100%;
}

.mini-search {
    width: 100%;
    padding: 8px 8px 8px 32px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    outline: none;
    transition: all 0.2s;
    background: #fff;
    box-sizing: border-box;
    color: #374151;
}

.mini-search::placeholder {
    color: #a0aec0;
}

.mini-search:focus {
    border-color: #e3913c;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(227, 145, 60, 0.1);
}

.search-icon-mini {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    width: 14px;
    height: 14px;
    pointer-events: none;
}

/* Scrollable Lists in Filters */
.checkbox-list, .radio-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 6px;
    margin-right: -6px;
}

.checkbox-list::-webkit-scrollbar,
.radio-list::-webkit-scrollbar {
    width: 4px;
}

.checkbox-list::-webkit-scrollbar-track,
.radio-list::-webkit-scrollbar-track {
    background: transparent;
}

.checkbox-list::-webkit-scrollbar-thumb,
.radio-list::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 2px;
}

.checkbox-list::-webkit-scrollbar-thumb:hover,
.radio-list::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* Filter Item Styling */
.custom-check, .custom-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s;
    user-select: none;
    font-size: 0.9rem;
    color: #475569;
}

.custom-check:hover, .custom-radio:hover {
    background: #f0f4f8;
}

.custom-check input, .custom-radio input {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: #2563eb;
}

.custom-check span, .custom-radio span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Hidden Filter Items (when search filters them) */
.checkbox-list label[style*="display: none"],
.radio-list label[style*="display: none"] {
    height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    gap: 0;
}

/* Pill Group Styling */
.pill-group-filter {
    display: flex;
    gap: 8px;
    background: white;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.f-pill {
    flex: 1;
    text-align: center;
    padding: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 4px;
    color: #475569;
    font-weight: 500;
    transition: all 0.2s;
    background: transparent;
    border: 1px solid transparent;
}

.f-pill:hover {
    background: #f0f4f8;
    border-color: #e2e8f0;
}

.f-pill.active {
    background: #fff7ed;
    color: #e3913c;
    border-color: #e3913c;
    font-weight: 600;
}

/* Badge Styling */
.badge-hot {
    display: inline-flex;
    align-items: center;
    background: #fee2e2;
    color: #ef4444;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 4px;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* =========================================
   9. MODERN TOM-SELECT OVERRIDES
   ========================================= */

/* Style for single-select Job Title to look like plain text */
.ts-wrapper.ts-single-select .ts-control .item {
    background: none;
    padding: 0;
    font-weight: 500;
    color: #1f2937;
}

/* Modern styling for selected skill pills */
.ts-control .skill-item-pro {
    display: inline-flex;
    align-items: center;
    background-color: #eef2ff; /* Lighter Indigo */
    color: #4338ca; /* Darker Indigo */
    border: 1px solid #c7d2fe;
    border-radius: 6px;
    padding: 5px 10px;
    margin: 3px 5px 3px 0;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
}

/* Styling for the remove button on skill pills */
.ts-control .skill-item-pro .remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: #c7d2fe;
    color: #4338ca;
    border-radius: 50%;
    margin-left: 8px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s;
    opacity: 0.8;
}

.ts-control .skill-item-pro .remove:hover {
    background-color: #a5b4fc;
    color: #3730a3;
    opacity: 1;
}

/* Modern styling for selected asset pills */
.ts-control .asset-item-pro {
    display: inline-flex;
    align-items: center;
    background-color: #ecfdf5; /* Lighter Green */
    color: #047857; /* Darker Green */
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    padding: 5px 10px;
    margin: 3px 5px 3px 0;
    font-size: 0.875rem;
    font-weight: 600;
}

.ts-control .asset-item-pro .remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: #a7f3d0;
    color: #047857;
    border-radius: 50%;
    margin-left: 8px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    opacity: 0.8;
}

.ts-control .asset-item-pro .remove:hover {
    background-color: #6ee7b7;
    color: #065f46;
    opacity: 1;
}

/* =========================================
   10. MY JOBS EXTENDED DETAILS
   ========================================= */

.job-details-extended {
    border-top: 1px solid #f3f4f6;
    margin-top: 20px;
    padding-top: 20px;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.jd-section {
    margin-bottom: 20px;
}

.jd-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #e5e7eb;
}

.jd-desc-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #374151;
}
.jd-desc-content p { margin: 0 0 10px 0; }
.jd-desc-content ul, .jd-desc-content ol { padding-left: 20px; margin: 10px 0; }

.jd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px 20px;
    font-size: 0.95rem;
}
.jd-grid > div {
    color: #374151;
}
.jd-grid > div strong {
    color: #1f2937;
    display: block;
    margin-bottom: 4px;
}

.jd-tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}

.jd-tag {
    background-color: #eef2ff;
    color: #4338ca;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.jd-tag.asset {
    background-color: #ecfdf5;
    color: #047857;
}

.jd-list {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
    font-size: 0.95rem;
    color: #374151;
}
.jd-list li {
    margin-bottom: 5px;
}

.btn-outline-secondary {
    background-color: transparent;
    border: 1px solid #d1d5db;
    color: #4b5563;
    transition: all 0.2s;
}
.btn-outline-secondary:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}
.btn-outline-secondary.active {
    background-color: #f3f4f6;
    border-color: #6b7280;
    color: #1f2937;
}

/* =========================================
   11. PROFILE VIEW STYLES
   ========================================= */
.profile-upload-container {
    display: flex;
    gap: 40px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.profile-upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.preview-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.preview-box img { width: 100%; height: 100%; object-fit: cover; }

.preview-box.rect { width: 180px; height: 80px; border-radius: 8px; }
.preview-box.rect img { object-fit: contain; }

.preview-box.circle { width: 100px; height: 100px; border-radius: 50%; }

/* =========================================
   12. CROPPER MODAL STYLES
   ========================================= */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}
.modal-content-cropper {
    background: white; width: 90%; max-width: 500px;
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: modalFadeIn 0.3s ease-out;
}
.modal-header {
    padding: 15px 20px; border-bottom: 1px solid #e5e7eb;
    display: flex; justify-content: space-between; align-items: center;
}
.modal-header h3 { margin: 0; font-size: 1.1rem; color: #1f2937; }
.close-modal { font-size: 24px; cursor: pointer; color: #6b7280; }
.cropper-container {
    height: 350px; background: #f8fafc;
    display: flex; align-items: center; justify-content: center;
}
.modal-footer {
    padding: 15px 20px; border-top: 1px solid #e5e7eb;
    display: flex; justify-content: flex-end; gap: 10px;
}
@keyframes modalFadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* =========================================
   13. MODERN PROFILE UI (Redesign)
   ========================================= */
.profile-modern-container { max-width: 850px; margin: 0 auto; padding-bottom: 40px; }

.profile-header-card {
    background: #f8fafc; border-radius: 12px; overflow: hidden;
    border: 1px solid #e5e7eb; margin-bottom: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: relative;
}
.profile-cover-bg {
    height: 180px;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), linear-gradient(135deg, #1e293b 0%, #334155 100%);
    position: relative;
}
.profile-info-row {
    padding: 0 20px 30px;
    margin-top: -75px;
    position: relative;
    z-index: 2;
    text-align: center;
}
.profile-avatar-group {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 15px;
    cursor: pointer;
}
.profile-avatar-group img {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
    border: 5px solid white; background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.avatar-edit-overlay {
    position: absolute; inset: 0; border-radius: 50%;
    background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center;
    color: white; opacity: 0; transition: opacity 0.2s;
    border: 5px solid white; /* Match image border */
}
.profile-avatar-group:hover .avatar-edit-overlay { opacity: 1; }

.profile-text-info { padding-bottom: 0; }
.profile-text-info h2 { margin: 0; font-size: 2rem; color: #111827; font-weight: 800; }
.profile-text-info p { margin: 4px 0 0 0; color: #64748b; font-size: 1.1rem; font-weight: 500; }

.profile-form-card {
    background: white; border-radius: 12px; border: 1px solid #e5e7eb;
    padding: 30px; box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.form-section-header { margin-bottom: 25px; border-bottom: 1px solid #f1f5f9; padding-bottom: 15px; }
.form-section-header h3 { margin: 0 0 5px 0; font-size: 1.1rem; color: #1f2937; }
.form-section-header p { margin: 0; color: #64748b; font-size: 0.9rem; }

.form-footer-modern {
    margin-top: 30px; padding-top: 20px; border-top: 1px solid #f1f5f9;
    display: flex; justify-content: space-between; align-items: center;
}
.text-muted-sm { font-size: 0.85rem; color: #94a3b8; margin: 0; }

@media (max-width: 640px) {
    .profile-info-row { margin-top: -65px; }
    .form-footer-modern { flex-direction: column; gap: 15px; text-align: center; }
}

/* --- EMPLOYER PROFILE STYLES --- */
.emp-profile-container { max-width: 1000px; margin: 0 auto; font-family: 'Inter', sans-serif; }

.emp-header-card { 
    background: white; border-radius: 16px; 
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1); margin-bottom: 30px; 
    border: 1px solid #e2e8f0;
    overflow: visible; /* CRITICAL FIX: Ensures avatar isn't cut off */
}
.emp-cover { 
    height: 150px; 
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); 
    border-radius: 16px 16px 0 0;
}
.emp-profile-row { 
    display: flex; align-items: flex-end; padding: 0 30px 30px 30px; 
    margin-top: -60px; position: relative; 
}

.emp-avatar-wrapper { 
    width: 120px; height: 120px; 
    border-radius: 16px; /* Square with rounded corners for companies */
    border: 4px solid white; 
    background: white; 
    position: relative; 
    flex-shrink: 0; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 2;
}
.emp-avatar-img { 
    width: 100%; height: 100%; 
    object-fit: cover; 
    border-radius: 12px;
    display: block;
    cursor: zoom-in;
}
.emp-avatar-placeholder {
    width: 100%; height: 100%; border-radius: 12px;
    background: #f1f5f9; color: #64748b;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; font-weight: 700;
}

.emp-profile-info { margin-left: 25px; flex-grow: 1; padding-bottom: 5px; }
.emp-name-row { display: flex; align-items: center; gap: 12px; margin-bottom: 5px; }
.emp-name-row h2 { margin: 0; font-size: 1.75rem; color: #1e293b; font-weight: 800; letter-spacing: -0.5px; }
.emp-badge { background: #dbeafe; color: #1e40af; padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

.emp-role { margin: 0 0 4px 0; color: #475569; font-size: 1rem; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.emp-loc { margin: 0; color: #64748b; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }

.emp-actions { margin-left: auto; padding-bottom: 10px; }
.credit-balance { text-align: center; background: #fff7ed; border: 1px solid #ffedd5; padding: 10px 20px; border-radius: 10px; }
.cb-label { display: block; font-size: 0.75rem; color: #9a3412; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; }
.cb-val { display: block; font-size: 1.5rem; font-weight: 800; color: #c2410c; line-height: 1; }

.emp-card { background: white; border-radius: 16px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); overflow: hidden; margin-bottom: 30px; border: 1px solid #f1f5f9; }
.emp-card-header { padding: 20px 25px; border-bottom: 1px solid #f1f5f9; background: #fff; }
.emp-card-header h3 { margin: 0; font-size: 1.1rem; color: #1e293b; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.emp-card-body { padding: 25px; }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group-clean label { display: block; font-size: 0.85rem; font-weight: 600; color: #64748b; margin-bottom: 6px; }
.form-group-clean input { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 0.95rem; transition: 0.2s; }
.form-group-clean input:focus { border-color: #2563eb; outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }

.btn-emp-primary { background: #2563eb; color: white; border: none; padding: 10px 24px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.btn-emp-primary:hover { background: #1d4ed8; }

.btn-edit-avatar {
    position: absolute; bottom: -10px; right: -10px;
    background: #0f172a; color: white;
    border: 3px solid white;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.2s;
    z-index: 10; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.btn-edit-avatar:hover { background: #2563eb; transform: scale(1.1); }

@media (max-width: 768px) {
    .emp-profile-row { flex-direction: column; align-items: center; text-align: center; margin-top: 0; padding-top: 0; }
    .emp-avatar-wrapper { margin-top: -60px; margin-bottom: 15px; }
    .emp-profile-info { margin-left: 0; width: 100%; }
    .emp-name-row { justify-content: center; }
    .emp-role, .emp-loc { justify-content: center; }
    .emp-actions { margin: 20px 0 0 0; width: 100%; }
    .form-grid-2 { grid-template-columns: 1fr; }
}