/* ==========================================================================
   DEAL PLATFORM DESIGN SYSTEM & STYLE MODULES
   ========================================================================== */

/* --- CSS Variables & Color Tokens --- */
:root {
    --bg-dark: #000000;
    --bg-card: #18181b;
    --bg-card-hover: #27272a;
    --border-color: #3f3f46;
    --border-color-focus: #000000;
    
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --primary: #000000;
    --primary-hover: #18181b;
    --primary-glow: rgba(0, 0, 0, 0.15);
    
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.15);
    --amber: #f59e0b;
    --amber-glow: rgba(245, 158, 11, 0.15);
    --danger: #ef4444;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 36px;
    
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    --transition-smooth: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --- Resets & Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background-color: #ffffff;
    color: #111827;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    width: 100%;
}
/* --- Desktop App Screen Layout --- */
.app-screen {
    display: none;
    width: 100%;
    min-height: 100vh;
    background-color: #ffffff;
    color: #111827;
}

.app-screen.active {
    display: block;
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

/* --- High-End Desktop Landing Page --- */
.landing-header {
    width: 100%;
    height: 80px;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.landing-logo {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: #000000;
}

.landing-hero-section {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: auto;
    padding: 60px 40px;
    align-items: center;
    width: 100%;
}

.landing-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.landing-badge {
    background: #000000;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.landing-hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -2px;
    color: #000000;
    margin-bottom: 20px;
}

.landing-hero-content p {
    font-size: 1.15rem;
    color: #18181b;
    line-height: 1.65;
    margin-bottom: 35px;
}

.landing-hero-visual {
    display: flex;
    justify-content: center;
}

.trust-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 420px;
}

.trust-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid #f1f5f9;
}

.trust-header {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid #f1f5f9;
}

.trust-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

/* Split-screen login layouts */
.auth-split-wrapper {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.auth-promo-column {
    flex: 1.2;
    background: #000000;
    color: #ffffff;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-promo-column::before {
    content: '';
    display: none;
}

.promo-brand {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: #ffffff;
}

.auth-promo-column h2 {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: #ffffff;
}

.auth-promo-column p {
    font-size: 1.15rem;
    color: #e4e4e7;
    line-height: 1.6;
    max-width: 500px;
}

.auth-form-column {
    flex: 1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    overflow-y: auto;
    position: relative;
}

.auth-box {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.auth-box h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: #000000;
    margin-bottom: 10px;
}

.role-selection-container {
    width: 100%;
    max-width: 800px;
    margin: auto;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.role-selection-container h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: #000000;
    margin-bottom: 40px;
    text-align: center;
}

.role-options {
    display: flex;
    flex-direction: row;
    gap: 30px;
    width: 100%;
    justify-content: center;
}

.role-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 24px;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 20px;
}

.role-card:hover {
    border-color: #4f46e5;
    box-shadow: 0 20px 40px -15px rgba(79, 70, 229, 0.15);
    transform: translateY(-4px);
}

.role-icon-box {
    margin-bottom: 20px;
    color: #4f46e5;
}

.role-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.auth-container h2 {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #000000;
    margin-bottom: 40px;
    text-align: center;
}

#signup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Inputs & Labels (Styled matching Figma layout) */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.input-group label {
    font-weight: 700;
    font-size: 0.95rem;
    color: #000000;
    padding-left: 2px;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    font-family: var(--font-body);
    background: #ffffff;
    border: 1px solid #d4d4d8;
    border-radius: 14px;
    color: #1c1917;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group input:focus, .input-group textarea:focus {
    border-color: #71717a;
    box-shadow: 0 0 0 3px rgba(113, 113, 122, 0.08);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #a1a1aa;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 25px 0;
    text-transform: uppercase;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e4e4e7;
}

.divider:not(:empty)::before {
    margin-right: .5em;
}

.divider:not(:empty)::after {
    margin-left: .5em;
}

/* Button UI Components */
.btn {
    width: 100%;
    padding: 16px 24px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: #1e1e1e;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #000000;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #f4f4f5;
    color: #1e1e1e;
}

.btn-secondary:hover {
    background-color: #e4e4e7;
}

.btn-dark {
    background-color: #4b4b4b; /* Solid charcoal button from figma mockup */
    color: #ffffff;
    font-size: 1.05rem;
    padding: 12px 24px;
    max-width: 160px;
    margin: 15px auto 0;
    border-radius: 10px;
}

.btn-dark:hover {
    background-color: #3f3f46;
    transform: scale(1.02);
}

.btn-outline-google {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #d4d4d8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    font-size: 0.95rem;
    padding: 14px 20px;
    border-radius: 12px;
}

.btn-outline-google:hover {
    background-color: #fafafa;
    border-color: #a1a1aa;
}

.google-icon {
    margin-right: 5px;
}

.btn-block {
    width: 100% !important;
    max-width: 100% !important;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* --- 3. ROLE SELECTION SCREEN STYLING --- */
#screen-role-select {
    padding: 80px 25px 40px;
    background: #ffffff;
    justify-content: center;
}

.role-selection-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 45px;
}

.role-selection-container h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    color: #000000;
    line-height: 1.3;
}

.role-options {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 280px;
}

.role-card {
    background: #ffffff;
    border: 2px solid #000000; /* Bold black borders matching Figma */
    border-radius: 24px;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 20px;
}

.role-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -10px rgba(0,0,0,0.15);
    background-color: #fafafa;
}

.role-icon-box {
    margin-bottom: 15px;
    color: #4b5563;
}

.role-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: #000000;
    text-align: center;
}

/* --- 4. DASHBOARD GENERAL STYLING --- */
.dashboard-screen {
    background-color: #f8fafc; /* Standard clean workspace background */
}

.app-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 20px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-greeting {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-display-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
}

.logout-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.logout-btn:hover {
    color: #ef4444;
    background: #f1f5f9;
}

/* Dashboard Navigation Tabs */
.dashboard-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 24px;
    gap: 15px;
    flex-shrink: 0;
}

.tab-link {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 10px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: var(--transition-smooth);
}

.dashboard-tabs > .tab-link:first-child {
    justify-content: flex-start;
}

.dashboard-tabs > .tab-link:nth-child(2) {
    justify-content: center;
}

.dashboard-tabs > .tab-link:last-child {
    justify-content: flex-end;
}

.tab-link svg {
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.tab-link:hover {
    color: #0f172a;
}

.tab-link.active {
    color: #4f46e5;
    font-weight: 700;
}

.tab-link.active svg {
    color: #4f46e5;
    opacity: 1;
}

.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    height: 3.5px;
    background-color: #4f46e5;
    border-radius: 10px 10px 0 0;
    width: 60px;
}

.dashboard-tabs > .tab-link:first-child.active::after {
    left: 0;
}

.dashboard-tabs > .tab-link:nth-child(2).active::after {
    left: 50%;
    transform: translateX(-50%);
}

.dashboard-tabs > .tab-link:last-child.active::after {
    right: 0;
}

/* Dashboard Scroll Body */
.dashboard-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Tab Panels Visibility */
.tab-pane {
    display: none;
    width: 100%;
}

.tab-pane.active {
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: fadeIn 0.3s ease;
}

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

/* --- JOB BOARD MODULE --- */
.search-bar-container {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

#job-search {
    width: 100%;
    padding: 12px 15px 12px 42px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: var(--transition-smooth);
    background-color: #ffffff;
}

#job-search:focus {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.job-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
}

.job-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.job-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.job-company {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.job-pay-badge {
    background-color: #f1f5f9;
    color: #0f172a;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
}

.job-details-row {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: #64748b;
}

.job-location {
    display: flex;
    align-items: center;
    gap: 4px;
}

.compliance-status-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
}

.label-verified {
    background-color: #ecfdf5;
    color: #047857;
}

/* --- COMPLIANCE VAULT & DOCUMENTS --- */
.section-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01);
}

.section-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.text-secondary {
    color: #64748b;
    font-size: 0.85rem;
}

.document-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background-color: #fafafa;
    transition: var(--transition-smooth);
}

.document-item:hover {
    background-color: #f1f5f9;
}

.doc-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.doc-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-icon.visa { background: rgba(79, 70, 229, 0.1); color: #4f46e5; }
.doc-icon.work { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.doc-icon.resume { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.doc-meta h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
}

.status-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-top: 2px;
}

.status-badge.uploaded {
    color: #10b981;
}

.status-badge.verified {
    color: #4f46e5;
    font-weight: 700;
}

.btn-file-upload {
    background-color: #0f172a;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.btn-file-upload:hover {
    background-color: #000000;
}

.btn-file-upload input[type="file"] {
    display: none;
}

/* --- TRACKER / APPLICATION PROGRESS --- */
.tracker-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tracker-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.tracker-card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
}

/* Stepper progress */
.stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 25px;
    margin-bottom: 10px;
}

.stepper::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 20px;
    right: 20px;
    height: 3px;
    background-color: #e2e8f0;
    z-index: 1;
}

.step-indicator {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.step-node {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 3px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
    transition: var(--transition-smooth);
}

.step-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
}

/* Active State Stepper */
.step-indicator.active .step-node {
    border-color: #4f46e5;
    color: #4f46e5;
}

.step-indicator.active .step-label {
    color: #4f46e5;
    font-weight: 700;
}

/* Complete State Stepper */
.step-indicator.complete .step-node {
    background-color: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
}

.step-indicator.complete .step-label {
    color: #0f172a;
}

/* Contract Execution Action Card */
.action-box {
    margin-top: 10px;
    padding: 15px;
    background-color: #fdfdfd;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: 4px solid #4f46e5;
}

.action-box h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
}

.action-box p {
    font-size: 0.8rem;
    color: #64748b;
}

/* --- BUSINESS PORTAL: APPLICANT PIPELINE --- */
.applicant-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: var(--transition-smooth);
}

.applicant-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.applicant-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.applicant-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.applied-role {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 2px;
}

.applicant-docs-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
}

.doc-verification-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.doc-status-icon {
    font-weight: 600;
}

.doc-status-icon.verified { color: #10b981; }
.doc-status-icon.pending { color: #f59e0b; }
.doc-status-icon.missing { color: #ef4444; }

.pipeline-actions {
    display: flex;
    gap: 10px;
}

/* --- COMPLIANCE STATS GRID --- */
.metric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 15px;
}

.metric-card {
    background-color: #fafafa;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.metric-val {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
}

.metric-lbl {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-top: 4px;
}

.text-success { color: #10b981; }
.text-amber { color: #f59e0b; }

.compliance-logs {
    background-color: #1e293b;
    color: #cbd5e1;
    border-radius: 8px;
    padding: 15px;
    font-family: monospace;
    font-size: 0.75rem;
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.log-entry {
    line-height: 1.4;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 4px;
}

.log-entry.system { color: #38bdf8; }
.log-entry.verify { color: #4ade80; }
.log-entry.warning { color: #fbbf24; }

.flex-row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- MODAL DIALOGS --- */
.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: none;
    align-items: flex-end; /* Modern bottom-sheet style on mobile */
    justify-content: center;
}

.modal-backdrop.active {
    display: flex;
}

.modal-box {
    width: 100%;
    background-color: #ffffff;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 24px;
    max-height: 80%;
    overflow-y: auto;
    animation: slideUp 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.1);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: #0f172a;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.company-tag {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4f46e5;
}

.job-meta-row {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #64748b;
}

.compliance-badge-row {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.badge-success { background-color: #ecfdf5; color: #047857; }
.badge-blue { background-color: #eff6ff; color: #1d4ed8; }

.modal-bullet-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-bullet-list li {
    font-size: 0.85rem;
    color: #64748b;
    position: relative;
    padding-left: 15px;
}

.modal-bullet-list li::before {
    content: '•';
    position: absolute;
    left: 2px;
    color: #4f46e5;
    font-weight: bold;
}

/* --- TOAST NOTIFICATIONS --- */
#toast-container {
    position: absolute;
    top: 50px;
    left: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    z-index: 200;
}

.toast {
    background-color: #0f172a;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), toastOut 0.3s 2.7s forwards;
    border-left: 4px solid #10b981;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
    to { opacity: 0; transform: translateY(-15px); }
}

/* --- DESKTOP PREVIEW ADAPTATIONS --- */
@media (min-width: 860px) {
    #app-container {
        grid-template-columns: 1.2fr 1fr;
        padding: 40px;
    }
    
    .desktop-info {
        display: flex;
        flex-direction: column;
    }
    
    .phone-mockup {
        margin-right: 0;
    }
}

/* ==========================================================================
   JOB POSTING RICH FORM & DETAIL MODAL STYLES
   ========================================================================== */

/* Taller Modal for rich forms */
.modal-box-tall {
    max-height: 92% !important;
}

/* 2-Column Form Grid */
.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Select field styling */
.input-group select {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    background: #ffffff;
    border: 1px solid #d4d4d8;
    border-radius: 14px;
    color: #1c1917;
    outline: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    transition: border-color 0.2s ease;
}

.input-group select:focus {
    border-color: #71717a;
    box-shadow: 0 0 0 3px rgba(113, 113, 122, 0.08);
}

/* Photo Upload Zone (in posting form) */
.photo-upload-zone {
    width: 100%;
    height: 150px;
    background-color: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    margin-bottom: 4px;
    position: relative;
}

.photo-upload-zone:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
}

#photo-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    pointer-events: none;
}

/* Workplace photo displayed in job details modal */
.job-photo-container {
    width: 100%;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    background-color: #f1f5f9;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.job-photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Large job title in details modal */
.modal-job-title-big {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 4px;
    margin-bottom: 12px;
    line-height: 1.2;
}

/* Info Pill Row */
.job-info-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.info-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
}

.location-pill { background: #f1f5f9; color: #475569; }
.pay-pill      { background: #ecfdf5; color: #047857; }
.schedule-pill { background: #eff6ff; color: #1d4ed8; }
.duration-pill { background: #fef9c3; color: #a16207; }

/* Job card photo thumbnail strip */
.job-card-photo {
    width: 100%;
    height: 110px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f1f5f9;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.job-card-photo .no-photo {
    font-size: 0.75rem;
    color: #cbd5e1;
    font-weight: 600;
}

/* ==========================================================================
   BUSINESS PROFILES & SHIFTER REVIEWS
   ========================================================================== */

/* Profile Edit Section */
.profile-photo-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Business Profile View Modal */
.biz-profile-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.biz-profile-avatar-view {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}

.biz-profile-avatar-view img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Rating Summary */
.rating-summary-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 12px;
    margin-top: 8px;
}

.rating-stars-big {
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: #f59e0b;
}

.avg-rating-display {
    font-size: 0.85rem;
    font-weight: 700;
    color: #f59e0b;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Star Rating Selector */
.star-rating-selector {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 16px 0;
}

.star-rating-selector .star {
    font-size: 2.2rem;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.star-rating-selector .star:hover,
.star-rating-selector .star.active {
    color: #f59e0b;
    transform: scale(1.15);
}

/* Review Cards */
.review-card {
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 10px;
    background: #ffffff;
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.reviewer-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #0f172a;
}

.review-stars {
    color: #f59e0b;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.review-text {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.6;
}

.review-date {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 6px;
}

/* View Employer link in job details */
.view-employer-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #4f46e5;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
    transition: all 0.2s ease;
    border: none;
    background: none;
    padding: 0;
}

.view-employer-link:hover {
    color: #4338ca;
    text-decoration: underline;
}

/* ==========================================================================
   DESKTOP RESPONSIVE LAYOUT (PC VIEW) - FULL SCREEN VERSION
   ========================================================================== */

@media (min-width: 1024px) {
    body {
        background-color: #f8fafc;
        display: block;
        padding: 0;
        margin: 0;
        width: 100vw;
        height: 100vh;
        overflow: hidden;
    }

    #app-container {
        width: 100vw;
        height: 100vh;
        max-width: 100%;
        margin: 0;
        padding: 0;
        gap: 0;
        display: block;
    }

    .desktop-info {
        display: none !important;
    }

    .phone-mockup {
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        max-width: 100%;
        margin: 0;
        padding: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: #f8fafc;
        overflow: hidden;
    }

    .phone-camera-island {
        display: none !important;
    }

    .phone-screen-content {
        border-radius: 0;
        width: 100vw;
        height: 100vh;
        background-color: #f8fafc;
    }

    /* Centered login wrapper for desktop */
    #screen-role-select {
        background: #ffffff;
    }
    
    #screen-role-select {
        justify-content: center;
        padding: 40px;
    }

    .role-selection-container {
        gap: 30px;
    }
    
    .role-options {
        flex-direction: row;
        max-width: 100%;
        justify-content: center;
        gap: 20px;
    }

    .role-card {
        width: 160px;
        height: 160px;
    }

    /* Dashboards expand to full width and height */
    .dashboard-screen {
        max-width: 100vw;
        width: 100%;
        height: 100vh;
    }

    /* Tabs Navbar Layout */
    .dashboard-tabs {
        padding: 0 40px;
        gap: 20px;
    }

    .tab-link {
        flex: none;
        flex-direction: row;
        gap: 8px;
        padding: 20px 30px;
        font-size: 0.95rem;
    }

    .tab-link.active::after {
        left: 0;
        width: 100%;
        height: 4px;
    }

    /* Dashboard Header */
    .app-header {
        padding: 24px 40px;
    }

    .user-display-name {
        font-size: 1.5rem;
    }

    /* Dashboard scroll body spacing */
    .dashboard-body {
        padding: 40px;
        gap: 30px;
        max-width: 1400px;
        margin: 0 auto;
        width: 100%;
    }

    /* Grids for listings */
    .jobs-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
        gap: 24px;
    }

    .candidates-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
        gap: 24px;
    }
    
    /* Document vault upload container */
    .document-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 24px;
    }

    /* Compliance logs metrics spacing */
    .metric-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* Larger, wider modal boxes for desktop */
    .modal-box {
        max-width: 650px;
        border-radius: 24px;
        padding: 35px;
    }

    .modal-box-tall {
        max-width: 900px;
    }
}

/* Animations for Splash Screen */
@keyframes logoPulse {
    0% { transform: scale(1); box-shadow: 0 0 40px rgba(79, 70, 229, 0.4); }
    50% { transform: scale(1.08); box-shadow: 0 0 60px rgba(79, 70, 229, 0.6); }
    100% { transform: scale(1); box-shadow: 0 0 40px rgba(79, 70, 229, 0.4); }
}
@keyframes textFade {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes barStretch {
    0% { width: 10px; }
    50% { width: 50px; }
    100% { width: 10px; }
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE REFS
   ========================================================================== */

@media (max-width: 1023px) {
    .landing-header {
        padding: 0 24px;
        height: 70px;
    }

    .landing-logo {
        font-size: 1.8rem;
    }

    .landing-hero-section {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 24px;
        text-align: center;
    }

    .landing-hero-content {
        align-items: center;
    }

    .landing-hero-content h1 {
        font-size: 2.4rem;
        letter-spacing: -1px;
    }

    .landing-hero-content p {
        font-size: 1rem;
    }

    /* Auth Split Layout stacks on mobile */
    .auth-split-wrapper {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    .auth-promo-column {
        padding: 40px 24px;
        text-align: center;
        align-items: center;
        flex: none;
    }

    .auth-promo-column h2 {
        font-size: 2rem;
    }

    .auth-form-column {
        padding: 40px 24px;
        flex: none;
    }

    /* Role selection stacks on mobile */
    .role-selection-container {
        height: auto;
        min-height: 100vh;
        padding: 60px 24px;
    }

    .role-options {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    /* Dashboard adjustments */
    .dashboard-tabs {
        padding: 0 10px;
        overflow-x: auto;
        white-space: nowrap;
    }

    .tab-link {
        padding: 14px 16px;
        font-size: 0.85rem;
    }

    .app-header {
        padding: 16px 20px;
    }

    .dashboard-body {
        padding: 20px;
    }
}

/* ==========================================================================
   ADMIN DASHBOARD & AUTH TABS STYLING
   ========================================================================== */

.auth-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.auth-tab-btn {
    transition: all 0.2s ease;
}

.auth-tab-btn:hover {
    color: #0f172a !important;
}

.admin-table-container {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.admin-table th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}


/* ==========================================================================
   GOOGLE PLACES AUTOCOMPLETE & SEARCHABLE COUNTRY DROPDOWN STYLING
   ========================================================================== */

.places-autocomplete-wrap {
    position: relative;
    width: 100%;
}

.places-suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    border: 1.5px solid #000000;
    border-radius: 12px;
    margin-top: 6px;
    max-height: 260px;
    overflow-y: auto;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    list-style: none;
    padding: 6px 0;
}

.places-suggestion-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid #f1f5f9;
}

.places-suggestion-item:last-child {
    border-bottom: none;
}

.places-suggestion-item:hover,
.places-suggestion-item.active {
    background: #f8fafc;
}

.places-suggestion-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.places-suggestion-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #000000;
}

.places-suggestion-subtitle {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 2px;
}

.places-validated-badge {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

/* Searchable Country Select */
.country-select-dropdown {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.95rem;
    background: #ffffff;
    color: #0f172a;
    font-weight: 500;
}

/* Structured Day Selector Chips */
.day-chip {
    flex: 1;
    min-width: 44px;
    padding: 10px 4px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    transition: all 0.15s ease;
    text-align: center;
}

.day-chip:hover {
    border-color: #000000;
}

.day-chip.active {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   MOBILE RESPONSIVE SYSTEM (IPHONE & ANDROID OPTIMIZED)
   ========================================================================== */

@media (max-width: 640px) {
    /* 1. Prevent iOS Auto-Zoom on Input Focus */
    input, select, textarea {
        font-size: 16px !important; /* Prevents iOS WebKit zoom on input tap */
    }

    /* 2. Modals as Bottom Sheets */
    .modal-backdrop {
        align-items: flex-end;
        padding: 0;
    }

    .modal-box, .modal-box-tall {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 92vh !important;
        border-radius: 24px 24px 0 0 !important;
        padding: 20px 16px 28px !important;
        margin: 0 !important;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2) !important;
        animation: slideUpMobile 0.25s ease-out;
    }

    @keyframes slideUpMobile {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    .modal-header {
        padding-bottom: 12px;
        margin-bottom: 12px;
    }

    .modal-body {
        max-height: calc(92vh - 70px) !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* 3. Stacking 2-Column Forms */
    .form-row-2col {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    /* 4. Touch-Friendly Action Buttons */
    .btn, .btn-primary, .btn-dark, .btn-secondary {
        min-height: 48px;
        font-size: 0.95rem !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* 5. Mobile Day Selector Grid */
    .days-selector-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
    }

    .day-chip {
        min-width: unset !important;
        padding: 12px 2px !important;
        font-size: 0.82rem !important;
    }

    /* 6. Mobile Job Cards & Cards */
    .job-card, .applicant-card, .tracker-card {
        padding: 16px !important;
        border-radius: 14px !important;
    }

    .job-card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .job-pay-badge {
        align-self: flex-start !important;
    }

    .job-details-row {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    /* 7. Landing & Auth Screens */
    .auth-split-wrapper {
        flex-direction: column !important;
        min-height: 100vh;
    }

    .auth-promo-column {
        padding: 36px 20px !important;
        min-height: 220px !important;
    }

    .auth-promo-column h2 {
        font-size: 1.6rem !important;
    }

    .auth-form-column {
        padding: 24px 18px 40px !important;
        width: 100% !important;
    }

    .auth-box {
        max-width: 100% !important;
    }

    /* 8. Dashboard Layout */
    .dashboard-screen {
        height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .app-header {
        padding: 14px 16px !important;
    }

    .dashboard-tabs {
        padding: 6px 10px !important;
        gap: 4px !important;
    }

    .tab-link {
        flex: 1;
        justify-content: center;
        padding: 12px 8px !important;
        font-size: 0.8rem !important;
    }

    .dashboard-body {
        padding: 16px !important;
        flex: 1;
    }

    /* 9. Image Gallery Carousel on Mobile */
    #gallery-image-view {
        height: 220px !important;
    }

    /* 10. Search Filters Row */
    .search-filters-row {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .filter-item, .filter-item-checkbox {
        width: 100% !important;
        min-width: 100% !important;
    }
}

/* High-Contrast Touch-Friendly Close Button */
.close-btn {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    flex-shrink: 0 !important;
}

.close-btn:hover, .close-btn:active {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}


