/* BODY */

body{

font-family:'Inter',sans-serif;
margin:0;
background:#F5F7FB;
color:#1F2933;

}


/* NAVBAR */

.navbar{

display:flex;
justify-content:space-between;
align-items:center;

padding:20px 60px;

background:#1A237E;
color:white;

}


/* navbar links */

.navbar nav a{

color:white;
text-decoration:none;
margin-left:20px;
transition:0.3s;

}


/* hover effect for navbar links */

.navbar nav a:hover{

opacity:0.8;

}


/* nav buttons */

.nav-btn{

padding:8px 14px;
border-radius:6px;
transition:0.3s;

}


/* register button */

.primary{

background:white;
color:#1A237E;

}

.navbar .primary{

color:#1A237E;

}


/* logo text in the navbar (login.html, register.html, verify-email.html) —
   was previously unstyled/tiny; given a real size here, bumped further on
   mobile in the responsive block below */
.logo{
font-size:19px;
font-weight:700;
letter-spacing:0.2px;
}


/* HERO */

.hero{

text-align:center;
padding:120px 20px;
background:white;
animation:fadeIn 1s ease;

}


.hero h1{

font-size:42px;
margin-bottom:20px;

}


.hero p{

max-width:600px;
margin:auto;
color:#6B7280;

}


/* SECTIONS */

.section{

padding:80px 60px;
text-align:center;

}


.grey{

background:#EEF1F7;

}


/* GRID */

.grid-3{

display:grid;
grid-template-columns:repeat(3,1fr);
gap:30px;
margin-top:40px;

}


/* CARDS */

.card{

background:white;
padding:30px;
border-radius:12px;

box-shadow:0 6px 18px rgba(0,0,0,0.06);

transition:all 0.3s ease;

cursor:pointer;

}


.card:hover{

transform:translateY(-8px);

box-shadow:0 16px 32px rgba(0,0,0,0.12);

}


/* BUTTON */

.btn-primary{

background:#1A237E;
color:white;

padding:12px 22px;

border-radius:6px;
text-decoration:none;

display:inline-block;
margin-top:20px;

transition:all 0.3s ease;

}


.btn-primary:hover{

background:#3949AB;
transform:translateY(-2px);

}


/* CTA */

.cta{

padding:100px 20px;
text-align:center;
background:white;

}


/* FOOTER */

footer{

text-align:center;
padding:30px;
background:#1A237E;
color:white;

}


/* FADE ANIMATION */

@keyframes fadeIn{

from{

opacity:0;
transform:translateY(20px);

}

to{

opacity:1;
transform:translateY(0);

}

}

/* FORM SECTION */

.form-section{

display:flex;
justify-content:center;
align-items:center;

padding:120px 20px;

}



/* FORM CARD */

.form-card{

background:white;

padding:45px;

border-radius:14px;

width:420px;

box-shadow:0 15px 40px rgba(0,0,0,0.08);

transition:0.3s;

}


/* FORM CARD HOVER */

.form-card:hover{

transform:translateY(-4px);

}



/* FORM HEADER */

.form-header{

text-align:center;
margin-bottom:25px;

}


.form-header p{

color:#6B7280;
font-size:14px;

}



/* LABEL */

label{

display:block;

margin-top:16px;
margin-bottom:6px;

font-weight:500;

}



/* INPUTS */

input, select{

width:100%;

padding:12px;

border-radius:8px;

border:1px solid #D1D5DB;

font-size:14px;

transition:0.2s;

box-sizing:border-box;

height:44px;

}



/* INPUT FOCUS */

input:focus, select:focus{

outline:none;

border-color:#3949AB;

box-shadow:0 0 0 2px rgba(57,73,171,0.1);

}



/* FORM BUTTON */

.form-btn{

width:100%;
margin-top:20px;

padding:14px;

font-weight:500;

}

/* LOGIN FOOTER TEXT */

.form-footer{

margin-top:18px;

text-align:center;

font-size:14px;

color:#6B7280;

}

.form-footer a{

color:#1A237E;

text-decoration:none;

font-weight:500;

}

.form-footer a:hover{

text-decoration:underline;

}

/* DASHBOARD LAYOUT */

.dashboard-container{

display:flex;
height:100vh;

}



/* SIDEBAR */

.sidebar{

width:230px;
min-width:230px;

background:#1A237E;
color:white;

padding:25px 20px;

display:flex;
flex-direction:column;

}


/* SIDEBAR LOGO */

.sidebar-logo{

font-size:20px;

font-weight:600;

margin-bottom:40px;

}



/* SIDEBAR MENU */

.sidebar-menu a{

display:block;

color:white;

text-decoration:none;

padding:10px 12px;

border-radius:6px;

margin-bottom:6px;

font-size:14px;

transition:0.2s;

}



/* SIDEBAR HOVER */

.sidebar-menu a:hover{

background:#3949AB;

}



/* ACTIVE MENU */

.sidebar-menu .active{

background:#3949AB;

}



/* MAIN AREA */

.main-area{

flex:1;

display:flex;

flex-direction:column;

background:#F5F7FB;

}



/* TOPBAR */

.topbar{

display:flex;

justify-content:space-between;

align-items:center;

background:white;

padding:18px 30px;

border-bottom:1px solid #E5E7EB;

}



/* PROFILE BOX */

.profile-box{

background:#EEF1F7;

padding:8px 14px;

border-radius:6px;

font-size:14px;

}



/* CONTENT AREA */

.dashboard-content{

padding:30px;

}



/* STATS GRID */

.stats-grid{

display:grid;

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

gap:20px;

}



/* STAT CARD */

.stat-card{

background:white;

padding:25px;

border-radius:10px;

box-shadow:0 8px 20px rgba(0,0,0,0.05);

transition:0.3s;

}



/* HOVER EFFECT */

.stat-card:hover{

transform:translateY(-5px);

box-shadow:0 14px 30px rgba(0,0,0,0.08);

}



/* STAT NUMBER */

.stat-card p{

font-size:26px;

font-weight:600;

margin-top:10px;

}

/* RECOMMENDATION SECTION */

.recommend-section{

margin-top:40px;

}


/* SECTION TITLE */

.recommend-section h3{

margin-bottom:20px;

}


/* GRID */

.recommend-grid{

display:grid;

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

gap:20px;

}


/* RECOMMENDATION CARD */

.recommend-card{

background:white;

padding:25px;

border-radius:10px;

box-shadow:0 8px 20px rgba(0,0,0,0.05);

transition:0.3s;

}


.recommend-card:hover{

transform:translateY(-4px);

box-shadow:0 14px 30px rgba(0,0,0,0.08);

}


.recommend-card h4{

margin-bottom:10px;

}

/* PERSONAL INFO FORM GRID */

.form-grid{

display:grid;

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

gap:22px;

margin-top:10px;

}


/* FULL WIDTH INPUT */

.full-width{

grid-column:span 2;

}


/* WIDER FORM FOR PROFILE PAGES */

.personal-card{

width:650px;

}


/* NEXT BUTTON ALIGNMENT */

.next-btn{

display:inline-block;

margin-top:25px;

}

/* PROFILE FORM AREA */

.profile-form{

background:white;

padding:35px;

border-radius:10px;

box-shadow:0 8px 20px rgba(0,0,0,0.05);

max-width:900px;

}


/* DESCRIPTION TEXT */

.form-desc{

color:#6B7280;

margin-bottom:25px;

}


/* GRID LAYOUT */

.form-grid{

display:grid;

grid-template-columns:1fr 1fr;

gap:20px;

}


/* FULL WIDTH FIELDS */

.full-width{

grid-column:1 / -1;

}


/* NEXT BUTTON */

.form-next{

display:inline-block;

margin-top:25px;

}

input{

width:100%;

box-sizing:border-box;

}

/* EDUCATION CARD */

.education-card{

background:#F9FAFB;

padding:25px;

border-radius:8px;

margin-top:20px;

border:1px solid #E5E7EB;

position:relative;

}


/* DELETE BUTTON */

.delete-edu{

position:absolute;

top:10px;

right:10px;

background:#EF4444;

color:white;

border:none;

padding:6px 10px;

border-radius:6px;

cursor:pointer;

font-size:12px;

}


.delete-edu:hover{

background:#DC2626;

}


/* ADD EDUCATION BUTTON */

.add-edu{

margin-top:20px;

border:none;

cursor:pointer;

}

.skill-list{
display:flex;
flex-wrap:wrap;
gap:10px;
margin-top:10px;
}

/* SKILL TAGS */

/* SKILL TAG CONTAINER */

#selected-skills{
display:flex;
flex-wrap:wrap;
gap:12px;
margin-top:20px;
}

/* SKILL TAG */

.skill-tag{
background:#eef2ff;
padding:6px 12px;
border-radius:20px;
font-size:14px;
display:flex;
align-items:center;
gap:8px;
}

.remove-skill{
cursor:pointer;
font-weight:bold;
color:#444;
}

/* PROJECT TEXTAREA */

textarea.project-desc{

width:100%;
min-height:90px;

padding:10px;

border-radius:6px;

border:1px solid #ddd;

resize:vertical;

font-family:inherit;
}

/* EXPERIENCE CARD */

.experience-card{

background:white;

padding:20px;

border-radius:8px;

box-shadow:0 2px 8px rgba(0,0,0,0.05);

margin-bottom:20px;

position:relative;

}

/* REMOVE BUTTON */

.remove-job{

position:absolute;

top:10px;

right:10px;

background:#ef4444;

color:white;

border:none;

border-radius:50%;

width:24px;

height:24px;

cursor:pointer;

}

.doc-item{
margin-bottom:15px;
}

.skill-card {
  position: relative;
}

.card-header {
  position: absolute;
  top: 10px;
  right: 10px;
}

.remove-btn {
  background: red;
  color: white;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 4px;
}

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

.proj-desc {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  font-size: 14px;
  padding: 8px;
}


/* ===== UPLOAD ZONE STYLES ===== */
.upload-zone {
  border: 2px dashed #C7D2FE;
  border-radius: 10px;
  padding: 18px 14px;
  text-align: center;
  background: #F5F7FB;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.upload-zone.drag-over {
  border-color: #1A237E;
  background: #EEF1F7;
}

.upload-zone.uploaded {
  border-color: #22C55E;
  background: #F0FDF4;
}

.upload-zone .zone-icon {
  font-size: 22px;
}

.upload-zone .zone-label {
  font-size: 12px;
  color: #6B7280;
  line-height: 1.4;
}

.upload-zone .zone-status {
  font-size: 12px;
  font-weight: 500;
  color: #22C55E;
  word-break: break-all;
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
}

.upload-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.upload-btn-sm {
  background: white;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: 0.2s;
  color: #374151;
  position: relative;
  z-index: 1; /* sit above file input overlay */
}

.upload-btn-sm:hover {
  border-color: #1A237E;
  color: #1A237E;
}

.doc-label {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 8px;
  display: block;
}

.doc-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #EEF1F7;
  color: #1A237E;
}

/* Add/Remove buttons for work doc section */
.add-doc-btn {
  background: #1A237E;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
  margin-left: 10px;
  vertical-align: middle;
  transition: 0.2s;
}
.add-doc-btn:hover { background: #3949AB; }

.remove-doc-btn {
  position: absolute;
  top: 0;
  right: 0;
  background: #EF4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
}
.remove-doc-btn:hover { background: #DC2626; }

/* Fix upload zone alignment in grid */
[id^="wrapper-"] {
  align-self: start;
}

.profile-widget {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1A237E 0%, #3949AB 100%);
  color: white;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(26,35,126,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-widget:hover .profile-avatar {
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(26,35,126,0.45);
}

.profile-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.profile-info .p-name {
  font-size: 14px;
  font-weight: 600;
  color: #1F2933;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-info .p-role {
  font-size: 11px;
  font-weight: 500;
  color: white;
  background: #1A237E;
  padding: 1px 7px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 2px;
  text-transform: capitalize;
  letter-spacing: 0.3px;
}

.profile-chevron {
  font-size: 10px;
  color: #6B7280;
  transition: transform 0.2s ease;
}

.profile-widget.open .profile-chevron {
  transform: rotate(180deg);
}

/* ===== DROPDOWN ===== */
.profile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.14);
  border: 1px solid #E5E7EB;
  overflow: hidden;
  z-index: 1000;
  animation: dropIn 0.18s ease;
}

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

.profile-widget.open .profile-dropdown {
  display: block;
}

.dropdown-header {
  padding: 16px;
  background: linear-gradient(135deg, #1A237E 0%, #3949AB 100%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.dropdown-header .dh-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  color: white;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dropdown-header .dh-info .dh-name {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 2px;
}

.dropdown-header .dh-info .dh-email {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  word-break: break-all;
}

.dropdown-divider {
  height: 1px;
  background: #F3F4F6;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 13px;
  color: #374151;
  text-decoration: none;
  transition: background 0.15s;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.dropdown-item:hover {
  background: #F9FAFB;
}

.dropdown-item.danger {
  color: #EF4444;
}

.dropdown-item.danger:hover {
  background: #FEF2F2;
}

.dropdown-item .di-icon {
  font-size: 15px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* ===== PROGRESS BAR in stat card ===== */
.completion-bar-wrap {
  background: #EEF1F7;
  border-radius: 20px;
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
}

.completion-bar {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, #1A237E, #3949AB);
  transition: width 0.8s ease;
  width: 0%;
}

.stat-card p {
  font-size: 26px;
  font-weight: 700;
  margin-top: 8px;
  color: #1A237E;
}

/* Zone click area — takes up the interactive part of the zone */
.zone-click-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 14px 12px;
  cursor: pointer;
  width: 100%;
}

/* Status row sits cleanly below the click area */
.zone-status {
  width: 100%;
}

/* =============================================================
   EMPLOYER CSS ADDITIONS
   Append these to the bottom of frontend/css/style.css
   ============================================================= */

/* ===== FORM ELEMENTS (shared — textarea, hints, req marker) ===== */

.form-textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #D1D5DB;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  resize: vertical;
  min-height: 90px;
  box-sizing: border-box;
  transition: 0.2s;
  line-height: 1.5;
}
.form-textarea:focus {
  outline: none;
  border-color: #3949AB;
  box-shadow: 0 0 0 2px rgba(57,73,171,0.1);
}
.tall-textarea {
  min-height: 160px;
}

.req {
  color: #EF4444;
  font-size: 13px;
  margin-left: 2px;
}
.field-hint {
  color: #9CA3AF;
  font-size: 11px;
  font-weight: 400;
  margin-left: 4px;
}
.optional-badge {
  background: #F3F4F6;
  color: #6B7280;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ===== FORM SECTION DIVIDER ===== */
.form-section-divider {
  font-size: 13px;
  font-weight: 600;
  color: #1A237E;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #EEF1F7;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== CHARACTER COUNTER ===== */
.char-counter {
  font-size: 11px;
  color: #9CA3AF;
  text-align: right;
  margin-top: 4px;
}

/* ===== BTN SECONDARY ===== */
.btn-secondary {
  background: white;
  color: #1A237E;
  border: 2px solid #1A237E;
  padding: 11px 22px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  background: #EEF1F7;
}

/* ===== OWNER CARD (like education-card) ===== */
.owner-card {
  background: #F9FAFB;
  padding: 24px;
  border-radius: 10px;
  border: 1px solid #E5E7EB;
  margin-top: 20px;
  position: relative;
}
.owner-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.owner-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1A237E;
}
.add-owner-btn {
  margin-top: 20px;
  border: none;
  cursor: pointer;
}

/* ===== FACILITY CHECKBOX GRID ===== */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}
.facility-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  transition: 0.15s;
  user-select: none;
}
.facility-item:hover {
  border-color: #1A237E;
  background: #EEF1F7;
}
.facility-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  min-width: 15px;
  cursor: pointer;
  accent-color: #1A237E;
  margin: 0;
  padding: 0;
  border: none;
  box-shadow: none;
}
.facility-item input[type="checkbox"]:focus {
  outline: none;
  box-shadow: none;
  border: none;
}

/* ===== TOGGLE SWITCH (travel / accommodation) ===== */
.toggle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 14px 16px;
  gap: 16px;
}
.toggle-label-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: #1F2933;
}
.toggle-switch-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  border: none;
  box-shadow: none;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  background: #D1D5DB;
  border-radius: 24px;
  transition: 0.25s;
}
.toggle-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.25s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider {
  background: #1A237E;
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}
.toggle-value-label {
  font-size: 13px;
  font-weight: 600;
  color: #6B7280;
  min-width: 24px;
}
.toggle-details-box {
  background: #EEF1F7;
  border: 1px solid #C7D2FE;
  border-radius: 8px;
  padding: 14px;
  margin-top: 8px;
}
.toggle-details-box label {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 13px;
}

/* ===== POSTING SELECTOR BOX ===== */
.posting-selector-box {
  margin-bottom: 0;
}
.selected-posting-banner {
  margin-bottom: 8px;
}

/* ===== JOB POSTING CARD (dashboard list) ===== */
.job-posting-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 14px;
  transition: box-shadow 0.2s ease;
}
.job-posting-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.07);
}
.jpc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.jpc-title {
  font-size: 16px;
  font-weight: 600;
  color: #1F2933;
  margin-bottom: 5px;
}
.jpc-meta {
  font-size: 13px;
  color: #6B7280;
}
.jpc-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid #F3F4F6;
  padding-top: 12px;
}
.jpc-salary {
  font-size: 14px;
  font-weight: 600;
  color: #1A237E;
}
.jpc-actions {
  display: flex;
  gap: 8px;
}
.jpc-btn {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #D1D5DB;
  color: #374151;
  background: white;
  cursor: pointer;
  transition: 0.15s;
}
.jpc-btn:hover {
  border-color: #1A237E;
  color: #1A237E;
}
.jpc-btn.primary {
  background: #1A237E;
  color: white;
  border-color: #1A237E;
}
.jpc-btn.primary:hover {
  background: #3949AB;
}

/* ===== STATUS BADGES ===== */
.posting-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-active  { background: #DCFCE7; color: #15803D; }
.badge-draft   { background: #F3F4F6; color: #6B7280; }
.badge-paused  { background: #FEF9C3; color: #92400E; }
.badge-closed  { background: #FEE2E2; color: #DC2626; }

/* ===== QUICK ACTIONS (employer dashboard) ===== */
.quick-actions {
  margin-top: 30px;
  margin-bottom: 30px;
}
.quick-actions h3 {
  margin-bottom: 14px;
  font-size: 15px;
  color: #374151;
}
.action-btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  text-decoration: none;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  transition: 0.2s;
  cursor: pointer;
}
.action-btn:hover {
  border-color: #1A237E;
  color: #1A237E;
  box-shadow: 0 2px 8px rgba(26,35,126,0.08);
}
.action-btn.primary-action {
  background: #1A237E;
  color: white;
  border-color: #1A237E;
}
.action-btn.primary-action:hover {
  background: #3949AB;
}

/* ===== POSTINGS SECTION (employer dashboard) ===== */
.postings-section {
  margin-top: 10px;
}
.postings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.postings-header h3 {
  margin: 0;
  font-size: 16px;
}
.empty-state {
  background: white;
  border: 1px dashed #D1D5DB;
  border-radius: 10px;
  padding: 40px 24px;
  text-align: center;
  color: #6B7280;
}

/* =============================================================
   KKHOJI PANNDIT — CSS ADDITIONS
   Append everything below to the bottom of frontend/css/style.css
   ============================================================= */


/* ===== SHARED FORM ELEMENTS ===== */

.form-textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #D1D5DB;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  resize: vertical;
  min-height: 90px;
  box-sizing: border-box;
  transition: border-color 0.2s;
  line-height: 1.5;
}
.form-textarea:focus {
  outline: none;
  border-color: #3949AB;
  box-shadow: 0 0 0 2px rgba(57,73,171,0.1);
}
.tall-textarea { min-height: 160px; }

.req {
  color: #EF4444;
  font-size: 13px;
  margin-left: 2px;
}
.field-hint {
  color: #9CA3AF;
  font-size: 11px;
  font-weight: 400;
  margin-left: 4px;
}
.optional-badge {
  background: #F3F4F6;
  color: #6B7280;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
}
.char-counter {
  font-size: 11px;
  color: #9CA3AF;
  text-align: right;
  margin-top: 4px;
}

/* ===== FORM SECTION DIVIDER ===== */
.form-section-divider {
  font-size: 13px;
  font-weight: 600;
  color: #1A237E;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #EEF1F7;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== SECONDARY BUTTON ===== */
.btn-secondary {
  background: white;
  color: #1A237E;
  border: 2px solid #1A237E;
  padding: 11px 22px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 20px;
}
.btn-secondary:hover { background: #EEF1F7; }

/* ===== OWNER CARD ===== */
.owner-card {
  background: #F9FAFB;
  padding: 24px;
  border-radius: 10px;
  border: 1px solid #E5E7EB;
  margin-top: 20px;
  position: relative;
}
.owner-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.owner-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1A237E;
}

/* ===== FACILITY / ROUND TYPE CHECKBOX GRID ===== */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}
.facility-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}
.facility-item:hover {
  border-color: #1A237E;
  background: #EEF1F7;
}
.facility-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  min-width: 15px;
  cursor: pointer;
  accent-color: #1A237E;
  margin: 0;
  padding: 0;
  border: none;
  box-shadow: none;
}
.facility-item input[type="checkbox"]:focus {
  outline: none;
  box-shadow: none;
}

/* ===== TOGGLE SWITCH (travel / accommodation) ===== */
.toggle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 14px 16px;
  gap: 16px;
}
.toggle-label-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: #1F2933;
}
.toggle-switch-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  border: none;
  box-shadow: none;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  background: #D1D5DB;
  border-radius: 24px;
  transition: 0.25s;
}
.toggle-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.25s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider { background: #1A237E; }
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}
.toggle-value-label {
  font-size: 13px;
  font-weight: 600;
  color: #6B7280;
  min-width: 24px;
}
.toggle-details-box {
  background: #EEF1F7;
  border: 1px solid #C7D2FE;
  border-radius: 8px;
  padding: 14px;
  margin-top: 8px;
}
.toggle-details-box label {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 13px;
}

/* ===== POSTING SELECTOR ===== */
.posting-selector-box  { margin-bottom: 0; }
.selected-posting-banner { margin-bottom: 8px; }

/* ===== JOB POSTING CARDS (employer dashboard) ===== */
.job-posting-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 14px;
  transition: box-shadow 0.2s ease;
}
.job-posting-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.07);
}
.jpc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.jpc-title {
  font-size: 16px;
  font-weight: 600;
  color: #1F2933;
  margin-bottom: 5px;
}
.jpc-meta { font-size: 13px; color: #6B7280; }
.jpc-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid #F3F4F6;
  padding-top: 12px;
}
.jpc-salary {
  font-size: 14px;
  font-weight: 600;
  color: #1A237E;
}
.jpc-actions { display: flex; gap: 8px; }
.jpc-btn {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #D1D5DB;
  color: #374151;
  background: white;
  cursor: pointer;
  transition: 0.15s;
}
.jpc-btn:hover { border-color: #1A237E; color: #1A237E; }
.jpc-btn.primary {
  background: #1A237E;
  color: white;
  border-color: #1A237E;
}
.jpc-btn.primary:hover { background: #3949AB; }

/* ===== STATUS BADGES ===== */
.posting-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-active  { background: #DCFCE7; color: #15803D; }
.badge-draft   { background: #F3F4F6; color: #6B7280; }
.badge-paused  { background: #FEF9C3; color: #92400E; }
.badge-closed  { background: #FEE2E2; color: #DC2626; }

/* ===== QUICK ACTIONS (employer dashboard) ===== */
.quick-actions { margin-top: 30px; margin-bottom: 30px; }
.quick-actions h3 { margin-bottom: 14px; font-size: 15px; color: #374151; }
.action-btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  text-decoration: none;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  transition: 0.2s;
  cursor: pointer;
}
.action-btn:hover {
  border-color: #1A237E;
  color: #1A237E;
  box-shadow: 0 2px 8px rgba(26,35,126,0.08);
}
.action-btn.primary-action {
  background: #1A237E;
  color: white;
  border-color: #1A237E;
}
.action-btn.primary-action:hover { background: #3949AB; }

/* ===== POSTINGS SECTION ===== */
.postings-section { margin-top: 10px; }
.postings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.postings-header h3 { margin: 0; font-size: 16px; }
.empty-state {
  background: white;
  border: 1px dashed #D1D5DB;
  border-radius: 10px;
  padding: 40px 24px;
  text-align: center;
  color: #6B7280;
}

/* ===== SIDEBAR DANGER ZONE ===== */
.sidebar-danger-zone {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.sidebar-delete-btn {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(239,68,68,0.5);
  color: rgba(239,68,68,0.85);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
  text-align: left;
}
.sidebar-delete-btn:hover {
  background: rgba(239,68,68,0.1);
  border-color: #EF4444;
  color: #EF4444;
}

/* ===== DELETE ACCOUNT MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  backdrop-filter: blur(2px);
}
.modal-box {
  background: white;
  border-radius: 14px;
  padding: 36px 32px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: modalIn 0.2s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-icon {
  font-size: 36px;
  text-align: center;
  margin-bottom: 12px;
}
.modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #1F2933;
  text-align: center;
  margin: 0 0 16px;
}
.modal-subtitle {
  font-size: 14px;
  color: #6B7280;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.5;
}
.modal-warning-box {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 13px;
  color: #7F1D1D;
  line-height: 1.6;
  margin-bottom: 24px;
}
.modal-warning-box p { margin: 0; }
.modal-warning-box ul { margin: 6px 0 0; padding-left: 18px; }
.modal-input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #D1D5DB;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
  margin-bottom: 8px;
  transition: border-color 0.2s;
}
.modal-input:focus {
  outline: none;
  border-color: #3949AB;
  box-shadow: 0 0 0 2px rgba(57,73,171,0.1);
}
.modal-error {
  color: #DC2626;
  font-size: 13px;
  margin: 0 0 12px;
  font-weight: 500;
}
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.modal-btn-cancel {
  background: white;
  color: #374151;
  border: 1px solid #D1D5DB;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.15s;
  font-family: 'Inter', sans-serif;
}
.modal-btn-cancel:hover { background: #F9FAFB; }
.modal-btn-danger {
  background: #DC2626;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  font-family: 'Inter', sans-serif;
}
.modal-btn-danger:hover  { background: #B91C1C; }
.modal-btn-danger:disabled {
  background: #FCA5A5;
  cursor: not-allowed;
}

/* ===== MOBILE NAV — hamburger toggle + backdrop (Session 9) ===== */
/* Hidden on desktop; shown only inside the mobile media query below. */
.mobile-nav-toggle {
  display: none;
  background: rgba(255,255,255,0.14);
  border: none;
  color: white;
  font-size: 20px;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mobile-nav-toggle:active { background: rgba(255,255,255,0.24); }

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.5);
  z-index: 499;
}
.mobile-nav-overlay.visible { display: block; }

/* ===== RESPONSIVE — MOBILE (v3 — hamburger slide-out drawer, Session 9) =====
   Replaces the old horizontal-scrolling pill row, which looked broken
   (overflowed off-screen with no visual cue that it scrolled). Sidebar is
   now a proper off-canvas drawer toggled by #mobileNavToggle, wired up by
   js/mobileNav.js on any page that includes it. */
@media (max-width: 768px) {

  .dashboard-container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    max-width: 80vw;
    height: 100vh;
    z-index: 500;
    transition: left 0.25s ease;
    overflow-y: auto;
    padding: 20px 0;
    box-shadow: 4px 0 24px rgba(0,0,0,0.25);
    display: block !important;
  }

  .sidebar.mobile-open {
    left: 0;
  }

  .sidebar-logo {
    margin: 0 20px 20px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.2px;
  }

  .sidebar-menu {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    overflow-x: visible;
    gap: 2px;
    padding: 0 12px;
  }

  .sidebar-menu a {
    flex: none;
    white-space: normal;
    padding: 12px 14px;
    font-size: 14px;
    margin-bottom: 0;
    border-radius: 8px;
    background: transparent;
  }

  .sidebar-menu .active {
    background: #3949AB;
  }

  .sidebar-danger-zone {
    padding: 12px;
  }

  .main-area {
    width: 100%;
  }

  .topbar {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    background: #1A237E;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }

  .mobile-nav-toggle {
    display: flex;
    order: -1;
  }

  .topbar h2, .topbar h3 {
    font-size: 15px;
    margin: 0;
    color: white;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .profile-widget {
    order: 2;
    background: rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 4px 10px 4px 4px;
  }

  .profile-avatar {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .profile-info .p-name { color: white; font-size: 12px; }
  .p-role { font-size: 10px; }

  .dashboard-content {
    padding: 16px !important;
  }

  .profile-form {
    max-width: 100% !important;
    padding: 0 !important;
  }

  h2 {
    font-size: 19px;
  }

  /* ===== FORM GRID — was staying 2 columns on mobile, squeezing
     document-upload cards (icon + drag&drop text + 3 buttons + filename)
     into columns too narrow to fit, causing the text to get cut off at
     the screen edge instead of wrapping. Also affects personal-info.html's
     form fields, which benefit from stacking too. ===== */
  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

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

/* ===== RESPONSIVE — MOBILE STAT CARDS (fixes horizontal overflow) ===== */
@media (max-width: 768px) {
  .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-card {
    width: auto;
    min-width: 0;
    padding: 16px;
  }

  .stat-card h3 {
    font-size: 12px;
  }

  .stat-card p {
    font-size: 22px;
  }
}

/* ===== RESPONSIVE — plain .navbar (login.html, register.html,
   verify-email.html) — was overflowing sideways with no wrap ===== */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    padding: 16px 20px;
    row-gap: 10px;
  }

  .navbar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    justify-content: flex-start;
  }

  .navbar nav a {
    margin-left: 0;
  }

  .logo {
    font-size: 22px;
  }
}


/* ===== SPONSOR AD SLIDER (Session 9) =====
   Compulsory element on both dashboard.html and employer-dashboard.html.
   Built as real text (not a flat image) specifically so it stays sharp
   and legible at every screen size — clamp() below scales font sizes
   smoothly between mobile and desktop instead of jumping at breakpoints. */
#sponsorSlider {
  margin-top: 20px;
  margin-bottom: 4px;
}

.sponsor-slide {
  border-radius: 14px;
  overflow: hidden;
  min-height: 210px;
  display: flex;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  position: relative;
}

.sponsor-bg-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.sponsor-slide-inner {
  padding: clamp(18px, 4vw, 32px) clamp(20px, 5vw, 40px);
  width: 100%;
  position: relative;
  z-index: 1;
}

.sponsor-badge {
  display: inline-block;
  font-size: clamp(10px, 1.6vw, 12px);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid;
  margin-bottom: 12px;
}

.sponsor-title {
  color: #FFFFFF;
  font-weight: 700;
  font-size: clamp(19px, 3.4vw, 26px);
  line-height: 1.25;
  margin-bottom: 8px;
}

.sponsor-body {
  color: rgba(255,255,255,0.85);
  font-size: clamp(13px, 2vw, 15px);
  line-height: 1.55;
  max-width: 640px;
  margin-bottom: 14px;
}

.sponsor-contact-line {
  color: rgba(255,255,255,0.75);
  font-size: clamp(12px, 1.8vw, 13px);
  margin-bottom: 14px;
}

.sponsor-cta {
  display: inline-block;
  color: #0A0E1A;
  font-weight: 700;
  font-size: clamp(12px, 1.8vw, 13px);
  padding: 9px 18px;
  border-radius: 8px;
  text-decoration: none;
}

.sponsor-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  padding: 0 4px;
}

.sponsor-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sponsor-dot-group {
  display: flex;
  gap: 5px;
}

.sponsor-dot-sep {
  width: 1px;
  height: 12px;
  background: #E5E7EB;
  margin: 0 2px;
}

.sponsor-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #D1D5DB;
  cursor: pointer;
  transition: transform 0.15s;
}

.sponsor-dot.active {
  transform: scale(1.3);
}

.sponsor-advertise-link {
  font-size: 12px;
  color: #6B7280;
  text-decoration: none;
  font-weight: 500;
}

.sponsor-advertise-link:hover {
  color: #1A237E;
  text-decoration: underline;
}

@media (max-width: 480px) {
  .sponsor-slide { min-height: 240px; }
  .sponsor-footer-row { flex-direction: column; align-items: flex-start; }
}
