/* =========================================================
   ReRoute Global Styles — MOBILE-READY NAV + MENU
   ---------------------------------------------------------
    What changed (Aug 11, 2025):
   1) Added CSS vars for navbar heights and content safe-area offsets
   2) Fixed dropdown positioning (removed hard-coded left:725px)
   3) Clean mobile breakpoints (<= 768px) for nav, profile button, menu
   4) Larger tap targets + focus states for accessibility
   5) Flash messages + main content no longer sit under the fixed navbar
   --------------------------------------------------------- */

:root {
  --primary-blue: #006da0;
  --secondary-indigo: #5B21B6;
  --accent-cyan: #00beb8;
  --contrast-navy: #0F172A;
  --neutral-gray: #F3F4F6;

  /* NEW: Navbar dimensions */
  --nav-h: 72px;     /* desktop navbar height */
  --nav-h-sm: 60px;  /* mobile navbar height */
}

/* ========== RESET ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body { font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; background: #f4f4f4; color: #333; }

.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.content { flex: 1; /* NEW: keep content under fixed navbar */ padding-top: var(--nav-h); }
@media (max-width: 768px) { .content { padding-top: var(--nav-h-sm); } }

/* Flash messages: keep clear of fixed navbar */
.flash-messages { margin-top: 8px; }

/* ========== BODY BASE STYLES ========== */
.site-footer {
  background: #111;
  color: #fff;
  padding: 2rem;
}


/* ========== NAVBAR ========== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex; align-items: center; gap: 1rem;
  background: #111; color: #fff;
  padding: 0 1rem; /* tighter, consistent padding */
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: 0.3s ease;
}

.navbar-logo { display: flex; align-items: center; flex-shrink: 0; }
.navbar-logo img { height: 48px; object-fit: contain; }

.navbar-links-container { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 1rem; }

.nav-links { display: flex; align-items: center; gap: 1.25rem; list-style: none; }
.nav-links a {
  color: #fff; text-decoration: none; font-weight: 600; line-height: 1;
  padding: 0.5rem 0.25rem; /* larger tap target */
  border-radius: 4px;
  transition: color 0.3s;
}
.nav-links a:hover, .nav-links a:focus { outline: none; background: rgba(255,255,255,0.08); }

/* CTA or special link behavior, if any */
.cta-button { transition: color .3s, background .3s; }
.cta-button:hover { color: #6495ED; background: #fff; }

.alert {
  position: relative;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.alert.success {
  background-color: #e6ffed;
  color: #276749;
}

.alert.warning {
  background-color: #fff3cd;
  color: #856404;
}

.alert.error {
  background-color: #f8d7da;
  color: #721c24;
}

.close-btn {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  font-weight: bold;
  color: inherit;
  cursor: pointer;
  padding: 0;
  margin-left: 1rem;
}


/* ========== USER MENU / INITIALS BUTTON ========== */
/* Make the actual container the positioning anchor */
.user-profile-right { 
  position: relative;          /* <-- critical */
  overflow: visible; 
}
.user-menu-container { position: relative; display: flex; align-items: center; }
.user-initials-btn {
  background: var(--accent-cyan); color: #fff;
  border: none; border-radius: 999px; width: 42px; height: 42px;
  font-weight: 700; font-size: 0.95rem; text-transform: uppercase; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.user-initials-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Arrow no longer absolutely positioned; let JS rotate it if needed */
#arrow-icon { font-size: .85rem; margin-left: .25rem; }

/* DROPDOWN — fixed: no more left:725px */
.user-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; left: auto;
  background: #fff; color: #1a1a1a; min-width: 220px; border-radius: 8px;
  box-shadow: 0 10px 32px rgba(0,0,0,0.12); z-index: 1000; overflow: hidden;
}
.user-dropdown.show { display: block; }
.user-dropdown a, .user-dropdown .logout-btn {
  display: block; padding: 12px 14px; background: #fff; border: none; width: 100%;
  text-align: left; color: #1a1a1a; text-decoration: none; font-weight: 500;
}
.user-dropdown a:hover, .user-dropdown .logout-btn:hover { background: #f5f5f5; }
.logout-btn { cursor: pointer; }

/* Important: on mobile, this area is intentionally hidden */
@media (max-width: 768px) {
  .user-profile-right { display: none !important; }
}

/* ========== HAMBURGER & MOBILE MENU ========== */
.hamburger { display: none; }
.mobile-menu { display: none; }
.mobile-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 1999;
  display: none;                          /* JS shows/hides */
}

@media (max-width: 768px) {
  /* Navbar compresses on mobile */
  .navbar { height: var(--nav-h-sm); padding: 0 .75rem; }
  .navbar-logo img { height: 40px; }

  /* Hide desktop nav + desktop profile controls */
  .nav-links, .user-menu-container, .user-profile-right { display: none !important; }

  /* Show burger */
  .hamburger {
    display: block; margin-left: auto; font-size: 1.75rem; line-height: 1;
    background: none; border: 0; color: #fff; cursor: pointer;
  }
  .hamburger:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }

  /* Sliding mobile drawer */
  .mobile-menu {
    position: fixed; top: 0; left: -100%; width: 88%; max-width: 420px; height: 100vh; max-height: 100dvh;
    background: #fff; z-index: 2000; padding: 1.25rem; display: flex; flex-direction: column;
    justify-content: space-between; transition: left .3s ease-in-out; box-shadow: 6px 0 20px rgba(0,0,0,.2);
    overflow-y: auto;                 /* allow inside scrolling when content is tall */
    -webkit-overflow-scrolling: touch;/* smooth momentum scroll on iOS */
    overscroll-behavior: contain;     /* prevent background scroll chaining */
  }
  .mobile-menu.show { left: 0; }

  .mobile-menu-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
  .mobile-logo img { height: 36px; }

  .mobile-nav-links { list-style: none; padding: 0; margin: .5rem 0 1rem; }
  .mobile-nav-links li { margin: .25rem 0; }
  .mobile-nav-links a {
    display: block; padding: .9rem .25rem; font-size: 1.05rem; font-weight: 600; color: #111; text-decoration: none;
  }
  .mobile-nav-links a:active { background: #f2f2f2; }

  .mobile-user-footer { display: flex; flex-direction: column; align-items: center; padding-top: 1rem; border-top: 1px solid #eee; }
  .mobile-user-footer.guest { justify-content: space-between; }
  .user-initials-circle {
    background: var(--accent-cyan); color: #fff; font-weight: 700; border-radius: 50%;
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; margin-bottom: .5rem;
  }
  .user-initials-circle.disabled { opacity: .5; pointer-events: none; }
  .mobile-user-name { font-weight:600; text-decoration:none; color: inherit; }
  .logout-form { margin-left:auto; }
  .logout-btn, .login-btn, .signup-btn {
    background:#3b82f6; color:#fff; border:none; padding:.5rem .9rem; border-radius:6px; text-decoration:none; display:inline-block;
  }
  .mobile-menu .logout-btn { background: #ffecec; color: #b20000; border: none; padding: 10px 16px; font-weight: 700; border-radius: 6px; cursor: pointer; }
  .signup-btn { background:#10b981; }


  /* Optional: prevent page scroll when menu open (toggle .no-scroll on <body> in JS) */
  body.no-scroll { overflow: hidden; }
}


/* ========== HERO SECTION ========== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 2rem;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url("salonagility-com-daniel-ZCbBBaFL-Ek-unsplash.4953d18a928b.jpg") center/cover no-repeat;
    z-index: -1;
    animation: zoomIn 20s ease-in-out infinite alternate;
}

@keyframes zoomIn {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-inline: auto;
}

.sub-hero {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 700px;
    margin: auto;
    color: #f0f0f0;
    text-align: center;
}

.sub-hero .highlight {
    color: #6495ED;
    font-weight: 600;
}

.cta-button {
    background-color: #fff;
    color: #6495ED;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #6495ED;
    display: inline-block;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #6495ED;
    color: #fff;
}


/* ========== FEATURES SECTION ========== */
.features {
    display: flex;
    justify-content: space-around;
    padding: 3rem 1rem;
    background: #fff;
}

.feature {
    max-width: 300px;
    text-align: center;
}

.feature h2 {
    color: #6495ED;
    margin-bottom: 1rem;
}

.feature-link {
    color: #6495ED;
    text-decoration: none;
    transition: color 0.3s ease;
}

.feature-link:hover {
    color: #4a7cd6;
    text-decoration: underline;
}


/* ========== MISSION SECTION ========== */
.mission {
    padding: 6rem 2rem;
    background-color: #f0f8ff;
    text-align: center;
}

.mission-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.mission h2 {
    font-size: 2rem;
    color: #6495ED;
    margin-bottom: 1rem;
    text-align: center;
}

.mission p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
}

/* ========== VISION SECTION ========== */
.vision {
    background-color: #f9f9f9;
    padding: 6rem 2rem;
    text-align: center;
    color: #333;
}

.vision .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.vision h2 {
    color: #6495ED;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.vision p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* ========== JOB LIST & MATCH STYLING ========== */

.job-list, .job-matches {
  padding: 6rem 2rem;
  background-color: #ffffff;
  text-align: center;
}

.job-list .container, .job-matches .container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.job-list h2, .job-matches h2 {
  font-size: 2rem;
  color: #6495ED;
  margin-bottom: 2rem;
  text-align: center;
}

.job-card {
  background-color: #f4f4f4;
  border-left: 5px solid #6495ED;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.job-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.job-card h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 0.75rem;
}

.job-card p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0.25rem 0;
}

.signup-container {
    width: 100%;
    max-width: 1000px;
    margin: 60px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    font-family: 'Segoe UI', sans-serif;
}

.signup-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #4169e1;
}

.signup-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.signup-container label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.signup-container input,
.signup-container textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.signup-container button {
    background-color: #6495ED;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.signup-container button:hover {
    background-color: #4169e1;
}

a {
    text-decoration: none;
    color: #5b2cc3; /* optional: matches the purple you're using */
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}


.form-errors ul {
    background: #ffe6e6;
    border: 1px solid #ff4d4d;
    color: #cc0000;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    list-style-type: none;
}


/* Ensure nav-links list items don't auto-expand dropdowns */
.nav-links li {
    position: relative;
}

/* Dropdown container */
.dropdown {
    position: relative;
}

/* Dropdown toggle */
.dropbtn {
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    color: #6495ED;
}

/* Dropdown hidden by default */
.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 999;
    border-radius: 6px;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Dropdown link and button styles */
.dropdown-content a,
.dropdown-content form {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover,
.dropdown-content form:hover {
    background-color: #f0f0f0;
}

.logout-btn {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font: inherit;
    color: inherit;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

/* ========== ACCESSIBILITY HIGHLIGHTS ========== */
a:focus-visible, button:focus-visible { outline: 2px solid #6495ED; outline-offset: 2px; border-radius: 4px; }

/* ========== FOOTER (unchanged, made responsive-friendly) ========== */
.site-footer { background: #1a1a1a; color: #f2f2f2; padding: 2rem 1rem; margin-top: 4rem; font-size: .9rem; }
.footer-container { display: flex; flex-wrap: wrap; justify-content: space-between; max-width: 1200px; margin: 0 auto; gap: 1rem; }
.footer-column { flex: 1 1 250px; }
.footer-column ul { list-style: none; }
.footer-column a { color: #ccc; text-decoration: none; }
.footer-column a:hover { color: #fff; }
.footer-bottom { text-align: center; margin-top: 1.25rem; border-top: 1px solid #444; padding-top: 1rem; font-size: .85rem; }

.resume-builder {
  display: flex;
  justify-content: center; /* Center the panel horizontally */
  align-items: flex-start; /* Align to top, not vertically centered */
  gap: 2rem;
  padding: 6rem 2rem;
  background-color: #f4f4f4;
}

.resume-form-panel {
  width: 100%;
  max-width: 700px;         /* Control the size of the form panel */
  background-color: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.resume-form-panel h2 {
  color: #6495ED;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.resume-form-panel .form-group {
  margin-bottom: 1.5rem;
}

.resume-form-panel label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #333;
}

.resume-form-panel input,
.resume-form-panel textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.resume-preview {
  padding: 4rem 2rem;
  background-color: #f9f9f9;
  text-align: center;
}

.resume-box {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 2rem 3rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.resume-box h1 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 1rem;
}

.resume-section {
  margin-top: 2rem;
}

.resume-section h2 {
  font-size: 1.5rem;
  color: #6495ED;
  margin-bottom: 0.5rem;
}

.resume-section p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.resume-preview {
  padding: 4rem 1rem;
  background-color: #f9f9f9;
  display: flex;
  justify-content: center;
}

.resume-box {
  background: #fff;
  padding: 2rem 3rem;
  max-width: 750px;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.8;
}

.resume-box h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.resume-box p {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.resume-section {
  margin-top: 2rem;
}

.resume-section h2 {
  font-size: 1.25rem;
  color: #6495ED;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.25rem;
  margin-bottom: 0.5rem;
}

.resume-section p {
  margin-left: 1rem;
  font-size: 1rem;
}

.resume-box ul {
  margin-left: 1.5rem;
  padding-left: 1rem;
  list-style-type: disc;
}

.resume-box li {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}



.form-group,
.form-section {
  margin-bottom: 1.5rem;
}

.form-section h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #333;
}

textarea,
input[type="file"] {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.submit-button {
  background-color: #6495ED;
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-button:hover {
  background-color: #4a7cd6;
}

.preview-box p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.preview-box strong {
  display: inline-block;
  width: 120px;
}

.preview-button {
  background-color: #eee;
  color: #333;
  margin-left: 10px;
}


.download-resume-button {
  margin-top: 20px;
  text-align: center;
}

.btn-download {
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s;
}

.btn-download:hover {
  background-color: #0056b3;
}

select.form-control {
  padding: 8px;
  font-size: 1rem;
  border-radius: 6px;
}


.dashboard-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    padding: 10rem 2rem 3rem 2rem;
    max-width: 1200px;   /* controls how wide it can grow */
    margin: 0 auto;      /* centers it horizontally */
}

@media screen and (max-width: 768px) {
    .dashboard-wrapper {
        padding: 2rem 1rem;
    }
}


.profile-pic,
.placeholder-pic {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    background: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 1rem;
}

.verified-badge {
    display: inline-block;
    background-color: #28a745;
    color: #fff;
    border-radius: 999px;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    margin: 0.5rem 0;
    text-align: center;
}


.bio-info {
    width: 100%;
    text-align: left;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.bio-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.3rem;
}

.bio-info ul {
    list-style: none;
    padding-left: 0;
}

.bio-info li {
    margin-bottom: 0.5rem;
}

.dashboard-main {
    flex-grow: 1;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.bio-sidebar {
    width: 300px;
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    transition: width 0.3s ease;
}

.bio-sidebar.collapsed {
    width: 60px;
    padding: 1rem 0.5rem;
    overflow: hidden;
}

.bio-sidebar.collapsed .bio-info,
.bio-sidebar.collapsed .profile-pic,
.bio-sidebar.collapsed .placeholder-pic,
.bio-sidebar.collapsed h3,
.bio-sidebar.collapsed .uid,
.bio-sidebar.collapsed .verified-badge {
    display: none;
}

.toggle-bio-btn {
    position: absolute;
    top: 10px;
    right: -15px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
}

.bio-sidebar.collapsed .toggle-bio-btn {
    transform: rotate(180deg);
}

.dashboard-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    background-color: #f9f9f9;
    padding: 1rem 1.5rem;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    max-width: 800px;
}


@media (max-width: 600px) {
  .dashboard-nav {
    flex-direction: column;
    align-items: center;
  }

  .dashboard-nav a {
    width: 90%;
    text-align: center;
    padding: 0.75rem;
    font-size: 1rem;
  }
}

.dashboard-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.dashboard-nav a:hover {
    color: #007bff;
    text-decoration: underline;
}

.dashboard-nav a.active {
    background-color: #007bff;
    color: #fff;
    border-radius: 6px;
    padding: 0.5rem 1rem;
}


.dashboard-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

#editProfileForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

#editProfileForm label {
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
}

#editProfileForm input,
#editProfileForm textarea {
    margin-top: 0.4rem;
    padding: 0.6rem 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f7f9fc;
    font-size: 0.95rem;
}

#editProfileForm button {
    width: fit-content;
    padding: 0.6rem 1.5rem;
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#editProfileForm button:hover {
    background-color: #0056b3;
}

#save-status {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.profile-subnav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    background: #f9f9f9;
    padding: 0.5rem;
    border-radius: 8px;
}

.profile-subnav a {
    flex: 1 1 auto;
    min-width: 40%;
    text-align: center;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: background 0.3s;
}

.profile-subnav a:hover,
.profile-subnav a.active {
    background: #007bff;
    color: white;
}

.profile-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.profile-section form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.profile-section input,
.profile-section textarea,
.profile-section select {
  width: 100%;
  max-width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  box-sizing: border-box;
}


.form-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.form-group label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a1a1a;
    flex: 1;
    min-width: 200px;
}

.form-group input,
.form-group textarea {
    margin-top: 0.4rem;
    padding: 0.6rem 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f7f9fc;
    font-size: 0.95rem;
    width: 100%;
}

.profile-section button {
    align-self: flex-start;
    padding: 0.5rem 1.25rem;
    background-color: #007bff;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.profile-section button:hover {
    background-color: #0056b3;
}

select {
    padding: 0.6rem 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f7f9fc;
    font-size: 0.95rem;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}


.modal-content {
  background-color: white;
  padding: 1.5rem;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  height: auto;
  min-height: 600px; /* Increase to fit the full crop area */
  box-sizing: border-box;
  overflow: visible;
  text-align: center;
  position: relative;
}


.modal-photo-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

#imagePreview {
  max-width: 100%;
  max-height: 450px;
  border-radius: 8px;
}


.close-button {
  float: right;
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 1.5rem;
  cursor: pointer;
}

.placeholder-pic {
  width: 120px;
  height: 120px;
  background-color: #ccc;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  color: #555;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.placeholder-pic:hover {
  background-color: #bbb;
}

.photo-options {
  display: flex;
  justify-content: space-around;
  margin: 1rem 0;
}

.photo-options button {
  background: #1a1a1a;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease;
}

.photo-options button:hover {
  background: #333;
}

.save-btn {
  background-color: #0a66c2;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
  margin-top: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.save-btn:hover {
  background-color: #004182;
}

