/* ==========================================================================
  PEOPLE HR SOLUTIONS INDIA™ - RECRUITER PORTAL CORE STYLES
  ========================================================================== */

:root {
   --canvas-bg: #f8fafc;
   --surface-panel: #ffffff;
   --brand-primary: #0f172a;     
   --brand-accent: #2563eb;      
   --brand-accent-glow: rgba(37, 99, 235, 0.05);
   --success-emerald: #10b981;
   --crimson-signal: #ef4444;    
   --crimson-bg-light: #fef2f2;
   --ink-primary: #0f172a;
   --ink-secondary: #475569;
   --ink-muted: #64748b;
   --structural-border: #cbd5e1;
   --radius-premium: 12px;
   --radius-component: 8px;
   --transition-fluid: all 0.2s ease-in-out;
}

* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   -webkit-font-smoothing: antialiased;
}

body {
   font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
   background-color: var(--canvas-bg);
   color: var(--ink-primary);
   min-height: 100vh;
   line-height: 1.5;
}

/* ==========================================================================
  SHARED FORM INTERFACE & INLINE VALIDATION ENGINE
  ========================================================================== */

.field {
   margin-bottom: 16px;
   display: flex;
   flex-direction: column;
   gap: 6px;
   position: relative;
}

.field label {
   font-size: 13px;
   font-weight: 600;
   color: var(--ink-secondary);
   transition: var(--transition-fluid);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="number"],
.field select,
.field textarea {
   width: 100%;
   padding: 12px 14px;
   font-size: 14px;
   font-family: inherit;
   color: var(--ink-primary);
   background-color: var(--surface-panel);
   border: 1px solid var(--structural-border);
   border-radius: var(--radius-component);
   transition: var(--transition-fluid);
   outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
   border-color: var(--brand-accent);
   box-shadow: 0 0 0 3px var(--brand-accent-glow);
}

.field input[type="file"] {
    padding: 8px 12px;
    font-size: 13px;
    color: var(--ink-secondary);
}

/* Error Dynamic State Subsystem */
.field.error-state label {
   color: var(--crimson-signal);
}

.field.error-state input,
.field.error-state select,
.field.error-state textarea {
   border-color: var(--crimson-signal) !important;
   background-color: var(--crimson-bg-light);
}

.field .error-text {
   font-size: 12px;
   font-weight: 500;
   color: var(--crimson-signal);
   min-height: 16px;
   margin-top: 2px;
   display: block;
}

.form-grid {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 16px;
}

.full-width {
   grid-column: span 2;
}

/* UI Action Components */
.btn-primary {
   background-color: var(--brand-accent);
   color: #ffffff;
   border: none;
   padding: 12px 24px;
   font-size: 14px;
   font-weight: 600;
   border-radius: var(--radius-component);
   cursor: pointer;
   transition: var(--transition-fluid);
}

.btn-primary:hover:not(:disabled) {
   background-color: #1d4ed8;
}

.btn-primary:disabled {
   background-color: var(--structural-border);
   cursor: not-allowed;
   opacity: 0.7;
}

.btn-secondary {
   background-color: transparent;
   color: var(--ink-secondary);
   border: 1px solid var(--structural-border);
   padding: 12px 24px;
   font-size: 14px;
   font-weight: 600;
   border-radius: var(--radius-component);
   cursor: pointer;
   transition: var(--transition-fluid);
}

.btn-secondary:hover:not(:disabled) {
   background-color: #f1f5f9;
   color: var(--ink-primary);
}

.btn-secondary:disabled {
   opacity: 0.4;
   cursor: not-allowed;
}

/* ==========================================================================
  MODULE 2: RECRUITER PROFILE CREATION WIZARD
  ========================================================================== */

.wizard-container {
   max-width: 740px;
   margin: 40px auto;
   padding: 0 20px;
}

.wizard-header {
   text-align: center;
   margin-bottom: 28px;
}

.wizard-header h1 {
   font-size: 24px;
   font-weight: 700;
   color: var(--brand-primary);
   margin-bottom: 6px;
   letter-spacing: -0.5px;
}

.wizard-header p {
   font-size: 14px;
   color: var(--ink-secondary);
}

.progress-section {
   background: var(--surface-panel);
   padding: 18px 24px;
   border-radius: var(--radius-premium);
   border: 1px solid var(--structural-border);
   margin-bottom: 24px;
}

.progress-bar {
   width: 100%;
   height: 6px;
   background-color: #e2e8f0;
   border-radius: 3px;
   overflow: hidden;
   margin-bottom: 10px;
}

.progress-fill {
   height: 100%;
   width: 25%;
   background-color: var(--brand-accent);
   transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-meta {
   display: flex;
   justify-content: space-between;
   font-size: 12px;
   font-weight: 600;
   color: var(--ink-secondary);
}

#wizardForm {
   background-color: var(--surface-panel);
   padding: 36px;
   border-radius: var(--radius-premium);
   border: 1px solid var(--structural-border);
   box-shadow: 0 4px 20px rgba(15, 23, 42, 0.01);
}

.step {
   display: none;
}

.step.active-step {
   display: block;
   animation: stepEntrance 0.22s ease-in-out;
}

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

.section-intro {
   margin-bottom: 24px;
   border-bottom: 1px solid #f1f5f9;
   padding-bottom: 14px;
}

.section-intro h2 {
   font-size: 18px;
   font-weight: 600;
   color: var(--brand-primary);
   margin-bottom: 4px;
}

.section-intro p {
   font-size: 13px;
   color: var(--ink-muted);
}

.wizard-buttons {
   display: flex;
   justify-content: space-between;
   margin-top: 24px;
   padding-top: 20px;
   border-top: 1px solid #f1f5f9;
}

/* Checkbox Grid Styles */
.choice-group .group-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-secondary);
    margin-bottom: 8px;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.choice-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    font-size: 13px;
    color: var(--ink-primary);
    cursor: pointer;
}
/*==============================
COMPENSATION SUMMARY
==============================*/
.comp-card{

display:grid;

grid-template-columns:1fr 1fr;

gap:22px;

align-items:stretch;

}
.summary-divider{
    margin:32px 0;
    border:none;
    height:1px;
    background:#e2e8f0;
}
.comp-section{

background:#ffffff;

border:1px solid #e2e8f0;

border-radius:18px;

padding:22px;

box-shadow:0 2px 8px rgba(15,23,42,.04);

}

.comp-title{

font-size:13px;

font-weight:700;

text-transform:uppercase;

color:#64748b;

letter-spacing:.08em;

margin-bottom:10px;

}

.comp-total{

font-size:30px;

font-weight:800;

color:#0f172a;

margin-bottom:18px;

line-height:1.1;

}

.comp-row{

display:flex;

justify-content:space-between;

margin-bottom:10px;

font-size:15px;

}

.comp-row span{

color:#64748b;

}

.comp-row strong{

font-size:15px;

color:#0f172a;

}

.salary-bar{

height:10px;

margin-top:18px;

background:#e5e7eb;

border-radius:50px;

overflow:hidden;

}

.salary-fill{

height:100%;

width:0;

background:linear-gradient(90deg,#2563eb,#3b82f6);

border-radius:50px;

transition:width .6s ease;

}

.expected-fill{

background:linear-gradient(90deg,#10b981,#34d399);

}

.comp-divider{

display:none;

}

.comp-metrics{

grid-column:1 / -1;

display:grid;

grid-template-columns:repeat(4,1fr);

gap:16px;

margin-top:6px;

}

.metric-box{

background:#f8fafc;

border-radius:16px;

padding:18px;

text-align:center;

border:1px solid #e2e8f0;

}

.metric-label{

font-size:12px;

color:#64748b;

text-transform:uppercase;

font-weight:700;

margin-bottom:8px;

}

.metric-value{

font-size:20px;

font-weight:800;

color:#0f172a;

}

@media(max-width:900px){

.comp-card{

grid-template-columns:1fr;

}

.comp-metrics{

grid-template-columns:repeat(2,1fr);

}

}
@media (max-width: 640px) {
   .form-grid { grid-template-columns: 1fr; }
   .full-width { grid-column: span 1; }
   #wizardForm { padding: 20px; }
}

/* Captcha */
.captcha-row {
   display: flex;
   align-items: center;
   gap: 12px;
   margin-bottom: 8px;
}

#captchaQuestion {
    font-size: 16px;
    font-weight: 700;
    background: #f1f5f9;
    padding: 8px 16px;
    border-radius: 6px;
    letter-spacing: 2px;
}

.captcha-refresh {
    background: none;
    border: none;
    color: var(--brand-accent);
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
}

/* System Messages */
.form-message {
    padding: 12px;
    border-radius: var(--radius-component);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    display: none;
}
.form-message[data-type="error"] {
    display: block;
    background-color: var(--crimson-bg-light);
    color: var(--crimson-signal);
    border: 1px solid #fca5a5;
}
.form-message[data-type="success"] {
    display: block;
    background-color: #ecfdf5;
    color: var(--success-emerald);
    border: 1px solid #6ee7b7;
}

/* ==========================================================================
  TERMS MODAL
  ========================================================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: var(--radius-premium);
    padding: 30px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-content h2 {
    color: var(--brand-primary);
    margin-bottom: 16px;
    font-size: 20px;
    border-bottom: 1px solid var(--structural-border);
    padding-bottom: 12px;
}

.modal-scroll {
    max-height: 400px;
    overflow-y: auto;
    margin: 20px 0;
    font-size: 14px;
    color: var(--ink-secondary);
    padding-right: 10px;
}

.modal-scroll h4 {
    color: var(--ink-primary);
    margin-top: 16px;
    margin-bottom: 4px;
}

.modal-actions {
    text-align: right;
    border-top: 1px solid var(--structural-border);
    padding-top: 20px;
}

.terms-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
}

.terms-label a {
    color: var(--brand-accent);
    font-weight: 600;
    text-decoration: none;
}

.terms-label a:hover {
    text-decoration: underline;
}

/* ==========================================================================
  MODULE 3: ENTERPRISE LOGIN PAGE (SPLIT LAYOUT)
  ========================================================================== */

/* Split Layout Architecture */
.auth-layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--canvas-bg);
}

/* Left Sidebar (Branding) */
.auth-sidebar {
    display: none; 
    flex: 1;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #1e1e2f 100%);
    color: #ffffff;
    padding: 48px;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 900px) {
    .auth-sidebar { display: flex; }
}

.sidebar-content { 
    max-width: 480px; 
    margin: 0 auto; 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
}

.brand { display: flex; align-items: center; gap: 12px; margin-bottom: auto; }
.brand-logo { width: 40px; height: auto; border-radius: var(--radius-component); }
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; }

.sidebar-text h2 { 
    font-size: 40px; 
    font-weight: 700; 
    margin-bottom: 16px; 
    line-height: 1.2; 
    letter-spacing: -1px; 
}

.sidebar-text p { font-size: 18px; color: #94A3B8; }
.sidebar-footer { margin-top: auto; color: var(--ink-muted); font-size: 14px; }

/* Right Main Area (Form) */
.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: var(--surface-panel);
}

.auth-container { width: 100%; max-width: 400px; }

.mobile-brand { display: flex; justify-content: center; margin-bottom: 32px; }
.mobile-logo { width: 48px; height: auto; }
@media (min-width: 900px) { .mobile-brand { display: none; } }

.auth-header { margin-bottom: 32px; text-align: left; }
.auth-header h1 { 
    font-size: 30px; 
    font-weight: 700; 
    letter-spacing: -0.5px; 
    margin-bottom: 8px; 
    color: var(--brand-primary);
}
.auth-header p { color: var(--ink-secondary); font-size: 16px; }

/* SSO Buttons */
.sso-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.btn-sso {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; padding: 12px;
    background: var(--surface-panel); 
    border: 1px solid var(--structural-border);
    border-radius: var(--radius-component); 
    font-size: 15px; font-weight: 600;
    color: var(--ink-primary); cursor: pointer; transition: var(--transition-fluid);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.btn-sso:hover { background: var(--canvas-bg); border-color: var(--ink-muted); }

/* Divider */
.divider {
    display: flex; align-items: center; text-align: center; margin-bottom: 24px; color: var(--ink-muted); font-size: 14px;
}
.divider::before, .divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--structural-border); }
.divider span { padding: 0 16px; }

/* Form Specific Enhancements */
.password-wrapper { position: relative; width: 100%; }
.password-wrapper input { width: 100%; padding-right: 40px; }
.password-wrapper button {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--ink-muted); cursor: pointer; padding: 4px; display: flex;
}
.password-wrapper button:hover { color: var(--ink-primary); }

.login-options { 
    display: flex; justify-content: space-between; align-items: center; 
    margin-bottom: 24px; font-size: 14px; 
}
.text-link { color: var(--brand-accent); text-decoration: none; font-weight: 600; }
.text-link:hover { text-decoration: underline; }

.checkbox-container { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; color: var(--ink-secondary); }
.checkbox-container input { cursor: pointer; width: 16px; height: 16px; accent-color: var(--brand-accent); }

/* Primary Button Enhancements for Login */
#loginBtn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.auth-footer { margin-top: 32px; text-align: center; font-size: 14px; color: var(--ink-secondary); }

/* Loading Spinner */
.spinner { animation: rotate 2s linear infinite; width: 20px; height: 20px; stroke: white; }
.spinner .path { stroke: white; stroke-linecap: round; animation: dash 1.5s ease-in-out infinite; }
@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes dash {
  0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
  100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

/* Sidebar Logo Container */
.brand { 
    display: flex; 
    align-items: center; 
    gap: 16px; 
    margin-bottom: auto; 
}

.brand-logo { 
    width: 120px;  /* Increased size for better visibility */
    height: auto;  /* Maintains aspect ratio */
    object-fit: contain; 
    background: transparent; /* Removes the white background box */
    padding: 0;              /* Removes the border-like padding */
    border: none;            /* Ensures no border is rendered */
    border-radius: 0;        /* Removes the rounded container shape */
}

/* Mobile Logo Container */
.mobile-logo { 
    width: 120px;  /* Increased size for mobile */
    height: auto;
    border: none;
    background: transparent;
    padding: 0;
}

/* ==========================================================================
  MODULE 4: RECRUITER DASHBOARD & POST JOB FORM (NEW ADDITIONS ONLY)
  ========================================================================== */

/* 1. Base Dashboard Structure */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background-color: var(--canvas-bg);
}

.sidebar {
    width: 260px;
    background-color: var(--brand-primary);
    color: #ffffff;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0; /* Prevents sidebar from collapsing */
}

.sidebar .brand {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.sidebar .brand h2 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.sidebar .brand span {
    font-size: 11px;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.sidebar-nav a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: var(--radius-component);
    transition: var(--transition-fluid);
}

.sidebar-nav a:hover, 
.sidebar-nav a.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
}

.sidebar-nav .logout-link {
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    color: #f87171;
}

.main-content {
    flex: 1; /* Takes all remaining space to the right */
    padding: 40px;
    height: 100vh;
    overflow-y: auto;
}

/* 2. Form Container & Headers */
.form-header-context {
    margin-bottom: 32px;
}

.form-header-context h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.form-header-context p {
    font-size: 15px;
    color: var(--ink-secondary);
}

#postJobForm {
    background-color: var(--surface-panel);
    padding: 40px;
    border-radius: var(--radius-premium);
    border: 1px solid var(--structural-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
    max-width: 1050px;
}

#postJobForm .section-intro {
    margin-top: 36px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

#postJobForm .section-intro:first-of-type {
    margin-top: 0;
}

#postJobForm .section-intro h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 4px;
}

/* 3. Fixing Input Field Edge Cases (Date & File specific to this form) */
#postJobForm .field input[type="date"] {
   width: 100%;
   padding: 12px 14px;
   font-size: 14px;
   font-family: inherit;
   color: var(--ink-primary);
   background-color: var(--surface-panel);
   border: 1px solid var(--structural-border);
   border-radius: var(--radius-component);
   transition: var(--transition-fluid);
   outline: none;
}

#postJobForm .field input[type="date"]:focus {
   border-color: var(--brand-accent);
   box-shadow: 0 0 0 3px var(--brand-accent-glow);
}

#postJobForm .field input[type="file"] {
    padding: 10px 12px;
    font-size: 13px;
    color: var(--ink-secondary);
    border: 1px dashed var(--structural-border);
    background-color: #f8fafc;
    border-radius: var(--radius-component);
    cursor: pointer;
    width: 100%;
}

/* 4. Specialized Containers (Phone & Salary) */
.phone-input-group {
    display: flex;
    gap: 12px;
    width: 100%;
}

.phone-input-group select {
    width: 130px !important; /* Fixed width so phone number input can stretch */
    flex-shrink: 0;
}

.salary-card-box {
    background-color: #f8fafc;
    border: 1px solid var(--structural-border);
    border-radius: var(--radius-premium);
    padding: 24px;
    margin-bottom: 24px;
}

.salary-footer-option {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

/* 5. Mobile Responsiveness specific to Dashboard */
@media (max-width: 992px) {
    .dashboard-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        padding: 20px;
    }
    .main-content {
        padding: 20px;
        height: auto;
        overflow-y: visible;
    }
    #postJobForm {
        padding: 24px;
    }
    .phone-input-group {
        flex-direction: column;
    }
    .phone-input-group select {
        width: 100% !important;
    }
}

/* ==================================================
   MANAGE APPLICANTS WORKFLOW
================================================== */

.workflow-bar{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:20px;
}

.workflow-stage{
  padding:8px 14px;
  border-radius:999px;
  background:#f1f5f9;
  color:#64748b;
  font-size:13px;
  font-weight:600;
}

.workflow-stage.completed{
  background:#dcfce7;
  color:#166534;
}

.workflow-stage.active{
  background:#2563eb;
  color:#ffffff;
}

.workflow-stage.rejected{
  background:#fee2e2;
  color:#991b1b;
  border-color:#fecaca;
}

.workflow-stage.hold{
  background:#fef3c7;
  color:#92400e;
  border-color:#fde68a;
}

.workflow-actions{
  margin-top:16px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.workflow-actions button{
  padding:10px 18px;
  border:none;
  border-radius:10px;
  background:#2563eb;
  color:#fff;
  font-weight:600;
  cursor:pointer;
}

.workflow-actions button:hover{
  opacity:.9;
}

.workflow-stage.future{

    opacity:.35;

    filter:grayscale(1);

}

.workflow-stage.hold{

    background:#fff7ed;

    border-color:#f59e0b;

}

.workflow-stage.rejected{

    background:#fef2f2;

    border-color:#dc2626;

}

.workflow-stage.locked{

    opacity:.35;

    pointer-events:none;

    filter:grayscale(.6);

}

