/* ===================================================================
   GLOBAL STYLES
=================================================================== */
body {
font-family: Arial, sans-serif;
background: #f8f9fa;
margin: 0;
padding: 10px 0 0;
}

/* ===================================================================
   HEADER + NAVIGATION
=================================================================== */
header,
.custom-navbar {
background: #1E1E1E;
color: white;
backdrop-filter: blur(5px);
font-family: Arial, sans-serif;
}

header {
padding: 20px;
text-align: center;
position: sticky;
top: 60px;
z-index: 999;
transition: box-shadow 0.3s ease;
}

header.shrink {
padding: 10px 20px;
}

header.shadow {
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

header.hidden {
transform: translateY(-100%);
}

.custom-navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
position: sticky;
top: 0;
z-index: 1000;
transition: box-shadow 0.3s ease;
}


/* ===================================================================
   PROFILE DROPDOWN
=================================================================== */
.profile-wrapper {
position: absolute;
top: 20px;
right: 30px;
z-index: 1000;
}

.profile-btn, .dropdown-btn {
background-color: transparent;
color: #ffffff;
font-weight: bold;
border: none;
font-size: 14px;
cursor: pointer;
}

.dropdown-content {
display: none;
position: absolute;
right: 0;
background-color: white;
min-width: 160px;
border-radius: 6px;
box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
z-index: 9999;
color: #333;
}

.dropdown-content a {
color: #004080;
padding: 12px 16px;
text-decoration: none;
display: block;
font-size: 14px;
}

.dropdown-content a:hover {
background-color: #f1f1f1;
}

.show {
display: block;
}

/* ===================================================================
   LOGO + NAVIGATION LINKS
=================================================================== */
.logo {
height: 100px;
transition: transform 0.3s ease, height 0.3s ease;
}

.logo.shrink {
transform: scale(0.8);
height: 50px;
}

.brand-title {
font-size: 18px;
font-weight: bold;
color: #fff;
}

.nav-left {
display: flex;
align-items: center;
}

.nav-center a {
margin: 0 12px;
color: #fff;
text-decoration: none;
font-weight: 500;
}

.nav-center a:hover {
text-decoration: underline;
}

.nav-right {
position: relative;
}

/* ===================================================================
   CHART SECTION
=================================================================== */

.chart-row {
width: 100%;
background: #fff;
padding: 40px 20px;
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
margin-bottom: 40px;
transition: max-height 0.5s ease, opacity 0.5s ease;
overflow: hidden;
}

.chart-container {
max-width: 1200px;
margin: auto;
}

.chart-row.hidden {
max-height: 0;
opacity: 0;
padding: 0 !important;
margin-bottom: 0 !important;
}

.toggle-chart-btn {
background-color: #dc3545;
color: white;
border: none;
padding: 6px 12px;
font-size: 14px;
border-radius: 4px;
cursor: pointer;
margin-right: 10px;
}
   
.toggle-chart-btn:hover {
background-color: #c82333;
}
   
/* ===================================================================
   JOB CARD STYLES
=================================================================== */  
/* ================= JOB CARD BACKGROUND LOGO STYLES ================= */

.job-card {
  position: relative;
  overflow: hidden;
}

/* 🔁 Shared ::before layout for all logos */
.job-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-position: bottom right;
  background-repeat: no-repeat;
  background-size: 100px auto;
  pointer-events: none;
  background-image:
    linear-gradient(to top left, rgba(255,255,255,0.95), rgba(255,255,255,0)),
    url('images/logos/default.png'); /* fallback */
}

/* ✅ Logo overrides */
.card-sprep::before {
  background-image:
    linear-gradient(to top left, rgba(255,255,255,0.5), rgba(255,255,255,0)),
    url('images/logos/sprep_logo.png');
    background-size: 60px auto; /* 👈 adjust logo size */
}

.card-govt::before {
  background-image:
    linear-gradient(to top left, rgba(255,255,255,0.5), rgba(255,255,255,0)),
    url('images/logos/govt.png');
    background-size: 50px auto; /* 👈 adjust logo size */
}

.card-undp::before {
  background-image:
    linear-gradient(to top left, rgba(255,255,255,0.5), rgba(255,255,255,0)),
    url('images/logos/undp.png');
    background-size: 60px auto; /* 👈 adjust logo size */
}

.card-spc::before {
  background-image:
    linear-gradient(to top left, rgba(255,255,255,0.5), rgba(255,255,255,0)),
    url('images/logos/spc.png');
    background-size: 60px auto; /* 👈 adjust logo size */
}

.card-pifs::before {
  background-image:
    linear-gradient(to top left, rgba(255,255,255,0.5), rgba(255,255,255,0)),
    url('images/logos/pifs.png');
    background-size: 60px auto; /* 👈 adjust logo size */
}

.card-ffa::before {
  background-image:
    linear-gradient(to top left, rgba(255,255,255,0.5), rgba(255,255,255,0)),
    url('images/logos/ffa.png');
    background-size: 70px auto; /* 👈 adjust logo size */
}

.card-himalayas::before {
  background-image:
    linear-gradient(to top left, rgba(255,255,255,0.6), rgba(255,255,255,0)),
    url('images/logos/himalayas.png');
}

/* 🌙 Dark mode with logo and soft dark gradient */
body.dark-mode .card-sprep::before {
  background-image:
    linear-gradient(to top left, rgba(0,0,0,0.9), rgba(0,0,0,0)),
    url('images/logos/sprep_logo.png');
}

body.dark-mode .card-govt::before {
  background-image:
    linear-gradient(to top left, rgba(0,0,0,0.9), rgba(0,0,0,0)),
    url('images/logos/govt.png');
}

body.dark-mode .card-undp::before {
  background-image:
    linear-gradient(to top left, rgba(0,0,0,0.9), rgba(0,0,0,0)),
    url('images/logos/undp.png');
}

body.dark-mode .card-spc::before {
  background-image:
    linear-gradient(to top left, rgba(0,0,0,0.9), rgba(0,0,0,0)),
    url('images/logos/spc.png');
}

body.dark-mode .card-pifs::before {
  background-image:
    linear-gradient(to top left, rgba(0,0,0,0.9), rgba(0,0,0,0)),
    url('images/logos/pifs.png');
}

body.dark-mode .card-ffa::before {
  background-image:
    linear-gradient(to top left, rgba(0,0,0,0.9), rgba(0,0,0,0)),
    url('images/logos/ffa.png');
}

body.dark-mode .card-himalayas::before {
  background-image:
    linear-gradient(to top left, rgba(0,0,0,0.9), rgba(0,0,0,0)),
    url('images/logos/himalayas.png');
}


.card-sprep:hover::before,
.card-govt:hover::before,
.card-undp:hover::before,
.card-spc:hover::before,
.card-pifs:hover::before,
.card-ffa:hover::before,
.card-himalayas:hover::before {
  opacity: 0.08;
  filter: saturate(1.1) brightness(1.5);
}

/* 🔺 Top-left triangle tag (uses ::after so it doesn't conflict with ::before logos) */
.job-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 28px 28px 0;
  border-color: transparent #f59e0b transparent transparent; /* Default FFA orange */
  z-index: 3;
  border-radius: 0 0 4px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}


/* 🌐 Source-specific triangle colors */
.card-govt::after { border-color: transparent #3b82f6 transparent transparent; } /* Blue */
.card-sprep::after { border-color: transparent #10b981 transparent transparent; } /* Green */
.card-undp::after { border-color: transparent #6366f1 transparent transparent; } /* Indigo */
.card-spc::after { border-color: transparent #0ea5e9 transparent transparent; } /* Sky */
.card-pifs::after { border-color: transparent #ec4899 transparent transparent; } /* Pink */
.card-ffa::after { border-color: transparent #f59e0b transparent transparent; } /* Amber */
.card-himalayas::after { border-color: transparent #8b5cf6 transparent transparent; } /* Violet */

/* 🌙 Optional dark mode refinement */
body.dark-mode .job-card::after {
  opacity: 0.85;
}







/* ✅ Grace period tag - Light mode */
.grace-message {
  display: inline-block;
  background-color: #fff3cd; /* soft warning yellow */
  color: #856404;
  border: 1px solid #ffeeba;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  margin-top: 6px;
}

/* 🌙 Dark mode override */
body.dark-mode .grace-message {
  background-color: rgba(255, 193, 7, 0.1); /* subtle dark amber */
  color: #ffc107; /* warm yellow text */
  border: 1px solid rgba(255, 193, 7, 0.3);
  backdrop-filter: blur(2px);
}



.badge-closing-inline {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 4px;
  margin-left: 8px;
  font-weight: bold;
  vertical-align: middle;
}

.urgent-red {
  background-color: #dc3545;
  color: #fff;
}

.closing-soon-animated {
  background: #fdecea;
  color: #b91c1c;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.85em;
  display: inline-block;
  margin-top: 4px;
  font-weight: 500;
}

.closing-soon-animated:hover {
  transform: translateY(-2px) scale(1.05);
  font-size: 14px;
}

.expired-tag {
  margin-left: 6px;
  color: #6c757d;
  background-color: #e2e3e5;
  font-size: 13px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
}

.expired-card {
  opacity: 0.6;
  filter: grayscale(20%);
/*  pointer-events: none;  optional: disable clicks */
}

.grace-message {
  display: inline-block;
  margin-left: 6px;
  font-size: 13px;
  color: #856404;
  background-color: #fff3cd;
  border-left: 4px solid #fd7e14;
  padding: 4px 8px;
  border-radius: 4px;
}


.no-local-jobs {
  background: #fff6f6;
  border: 1px solid #f5c2c7;
  color: #842029;
  padding: 20px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  font-family: 'Segoe UI', sans-serif;
  max-width: 700px;
  margin: 40px auto;
  position: relative;
  transition: all 0.4s ease-in-out;
}

.dismiss-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  border: none;
  background: transparent;
  font-size: 18px;
  color: #d63384;
  cursor: pointer;
  transition: opacity 0.3s;
}
.dismiss-btn:hover {
  opacity: 0.6;
}


.no-local-jobs h3 {
  font-size: 1.5rem;
  color: #d63384;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.no-local-jobs p {
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 10px;
}






.jobs-grid {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: center;
padding: 40px 20px;
}
   
.job-card {
background: #fff;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
padding: 20px;
width: 280px;
border-left: 5px solid #007BFF;
position: relative;
z-index: 2;
transition: all 0.3s ease;
overflow: hidden;
min-height: 180px;
}

.job-card:hover {
transform: translateY(-8px);
box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.job-description {
opacity: 0;
max-height: 0;
overflow: hidden;
transition: all 0.3s ease;
font-size: 13px;
color: #444;
margin-top: 10px;
}

.job-card:hover .job-description {
opacity: 1;
max-height: 150px;
}

/* ✅ Light mode gradient style */
/* Gradient from Coral to Blue */
/*.job-card h3 {
  background: linear-gradient(90deg, #ff7f50, #1e90ff); 
  -webkit-background-clip: text;
  color: transparent;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}*/

/* 🌙 Dark mode gradient style (with a slight brightness boost) */
body.dark-mode .job-card h3 {
  background: linear-gradient(90deg, #ff7f50, #1e90ff); /* Same gradient */
  -webkit-background-clip: text;
  color: transparent;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  opacity: 1; /* Fix opacity issue in dark mode */
}


.job-card p {
margin: 4px 0;
font-size: 14px;
}


.dropdown-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 14px;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: white;
  color: #333;
  min-width: 180px;
  border-radius: 6px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  z-index: 9999;
}

.dropdown-content a {
  color: #004080;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.show {
  display: block;
}




.filter-btn {
  background-color: #f8f9fa;
  color: #333;
  border: 1px solid #ccc;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
  font-weight: 500;
  min-width: 120px;
  text-align: center;
}

.filter-btn:hover {
  background-color: #e2e6ea;
  transform: translateY(-2px);
}

 
  .filter-btn.red { background-color: #dc3545; color: white; }
.filter-btn.red:hover { background-color: #c82333; }

.filter-btn.blue { background-color: #007BFF; color: white; }
.filter-btn.blue:hover { background-color: #0056b3; }

.filter-btn.green { background-color: #28a745; color: white; }
.filter-btn.green:hover { background-color: #1e7e34; }

.filter-btn.purple { background-color: #6f42c1; color: white; }
.filter-btn.purple:hover { background-color: #563d7c; }

  .btn-blue {
    background-color: #007BFF;
    color: white;
    border-color: #007BFF;
  }

  .btn-green {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
  }

  .btn-purple {
    background-color: #6f42c1;
    color: white;
    border-color: #6f42c1;
  }

  .btn-blue:hover {
    background-color: #0056b3;
  }

  .btn-green:hover {
    background-color: #1e7e34;
  }

  .btn-purple:hover {
    background-color: #563d7c;
  }

    /* popup modal styles start */
      #customModal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.6);
      z-index: 9999;
      align-items: center;
      justify-content: center;
    }
    .modal-content {
      background: white;
      padding: 30px;
      border-radius: 14px;
      max-width: 1100px;
      width: 95%;
      position: relative;
      height: 90vh;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      box-shadow: 0 10px 40px rgba(0,0,0,0.25);
      animation: slideIn 0.3s ease-out;
    }
    .modal-content iframe {
      /*flex: 1;*/
      width: 100%;
      border: none;
    }
    .modal-close {
      position: absolute;
      top: 10px;
      right: 10px;
      background: #e74c3c;
      border: none;
      color: white;
      padding: 8px 12px;
      cursor: pointer;
      border-radius: 6px;
      font-size: 16px;
      z-index: 10;
    }
    @keyframes slideIn {
      from { transform: translateY(-30px); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }
   
    .load-more-container {
      text-align: center;
      margin-bottom: 40px;
    }
    .load-more-btn {
      padding: 10px 20px;
      font-size: 14px;
      background-color: #007BFF;
      color: white;
      border: none;
      border-radius: 6px;
      cursor: pointer;
    }
    .load-more-btn:hover {
      background-color: #0056b3;
    }
   
   
     /* Make UI Mobile-Friendly */
    @media (max-width: 600px) {
  .dashboard, .jobs-grid {
    flex-direction: column;
    align-items: center;
  }
  .card, .job-card {
    width: 100%;
    max-width: 90%;
  }
}

.custom-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1E1E1E;
  color: white;
  padding: 10px 20px;
  font-family: Arial, sans-serif;

  /* Sticky behavior */
  position: sticky;
  top: 0;
  z-index: 1000;
 
  transition: box-shadow 0.3s ease;
}
 
 
 .apply-now-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #28a745;
  color: white;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 5px;
  text-decoration: none;
  z-index: 10;
}
.apply-now-btn:hover {
  background-color: #218838;
}


.toggle-desc {
  display: inline-block;
  margin-left: 8px;
  color: #007BFF;
  cursor: pointer;
  font-size: 13px;
}
.toggle-desc:hover {
  text-decoration: underline;
}





  .guest-slide-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #f9f9ff;
    border-left: 4px solid #007BFF;
    border-radius: 10px;
    padding: 20px 20px 15px;
    width: 90%;
    max-width: 360px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    z-index: 9999;
    animation: slideInUp 0.5s ease;
  }
  .guest-popup-content h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #007BFF;
  }
  .guest-popup-content p {
    font-size: 14px;
    margin: 4px 0;
  }
  .guest-popup-buttons {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .guest-popup-buttons button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 5px;
    cursor: pointer;
    /*flex: 1;*/
  }
  .guest-popup-buttons button:hover {
    background-color: #0056b3;
  }
  .guest-popup-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 18px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
  }
  @keyframes slideInUp {
    from { transform: translate(-50%, calc(-50% + 30px)); opacity: 0; }
    to { transform: translate(-50%, -50%); opacity: 1; }
  }
 
   .guest-slide-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #f9f9ff;
    border-left: 4px solid #007BFF;
    border-radius: 10px;
    padding: 20px 20px 15px;
    width: 90%;
    max-width: 360px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    z-index: 9999;
    animation: slideInUp 0.5s ease;
  }
  .guest-popup-content h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #007BFF;
  }
  .guest-popup-content p {
    font-size: 14px;
    margin: 4px 0;
  }
  .guest-popup-buttons {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .guest-popup-buttons button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 5px;
    cursor: pointer;
    /*flex: 1;*/
  }
  .guest-popup-buttons button:hover {
    background-color: #0056b3;
  }
  .guest-popup-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 18px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
  }
  @keyframes slideInUp {
    from { transform: translate(-50%, calc(-50% + 30px)); opacity: 0; }
    to { transform: translate(-50%, -50%); opacity: 1; }
  }
 
 
 
 
 

  .apply-message-popup {
      position: absolute;
      top: 40px;
      right: 10px;
      background: #fff;
      border: 1px solid #ccc;
      border-left: 4px solid #28a745;
      padding: 10px;
      border-radius: 8px;
      font-size: 13px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
      display: none;
      z-index: 999;
      width: 220px;
    }
   
   
  .apply-message-popup button {
      margin-top: 8px;
      padding: 6px 10px;
      background: #28a745;
      color: white;
      border: none;
      border-radius: 4px;
      font-size: 12px;
      cursor: pointer;
    }

    /* Modal backdrop */
  #remoteJobModal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
  }

  /* Modal content box */
  #remoteJobModal .modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 80vh;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  }

  /* Close button */
  #remoteJobModal .modal-close {
    position: absolute;
    top: 8px; right: 12px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px; height: 30px;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    line-height: 30px;
    text-align: center;
  }

  /* Iframe styling */
  #remoteJobModal iframe {
    width: 100%;
    height: 100%;
    border: none;
  }
   
   /* ─────────────────────────────────────────────────────────────────────────────
   Style for the “View Job” button on remote job cards
   ───────────────────────────────────────────────────────────────────────────── */
.view-job-btn {
  background-color: #007bff;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
  text-decoration: none;
}
.view-job-btn:hover {
  background-color: #0056b3;
}


.page-link.active {
  background-color: #0056b3;
  font-weight: bold;
}


#externalJobs {
  transition: opacity 0.3s ease-in-out;
}


.loader {
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  margin-top: 20px;
}
.loader .dot {
  animation: dotBlink 1.5s infinite;
}
.loader .dot:nth-child(2) {
  animation-delay: 0.2s;
}
.loader .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotBlink {
  0%, 20% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}


.dot-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px auto;
  height: 40px;
  gap: 8px;
}

.dot-loader span {
  width: 12px;
  height: 12px;
  background-color: #007bff;
  border-radius: 50%;
  animation: dotBounce 1.2s infinite ease-in-out;
}

.dot-loader span:nth-child(1) {
  animation-delay: 0s;
}
.dot-loader span:nth-child(2) {
  animation-delay: 0.2s;
}
.dot-loader span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotBounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.3;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}
 
  .job-board-wrapper {
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

.board-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 20px;
}

.board-section h3 {
  margin-top: 0;
  font-size: 20px;
  color: #007BFF;
  border-left: 4px solid #007BFF;
  padding-left: 10px;
}

 .location-preview,
.location-full {
  display: inline;
}

/*--------------------------------------------------------------------------------------*/
/* 🌐 Floating Button with label */
.floating-disclaimer-trigger {
  display: none;
  position: fixed;
  padding: 8px 16px;
  background: #0d6efd;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: all 0.3s ease;
}

.floating-right-buttons {
  position: fixed;
  right: 20px;
  top: 240px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.floating-right-buttons button,
.logout-btn {
  padding: 8px 16px;
  background-color: #007bff;
  color: white;
  font-size: 13px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  text-decoration: none;
  text-align: center;
}
.floating-right-buttons button:hover,
.logout-btn:hover {
  background-color: #0056b3;
}

.floating-panel {
  position: fixed;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transition: all 0.3s ease;
}

/* Top position (desktop) */
@media (min-width: 768px) {
  .floating-panel {
    top: 140px;
  }
}

/* Bottom position (mobile) */
@media (max-width: 767px) {
  .floating-panel {
    bottom: 80px;
  }
}

.panel-toggle {
  background: #0d6efd;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  margin-bottom: 8px;
}

.panel-buttons {
  display: none;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  animation: slideDown 0.3s ease-out;
}

.panel-buttons button,
.logout-btn {
  background: #007bff;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  text-decoration: none;
}

.logout-btn:hover,
.panel-buttons button:hover {
  background: #0056b3;
}

.floating-panel.expanded .panel-buttons {
  display: flex;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}


/*ananei*/

/*.floating-disclaimer-trigger:hover {
  transform: scale(1.1);
}*/

/*.floating-disclaimer-trigger:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}*/

/*.floating-disclaimer-trigger {
  display: inline-block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: bold;
  background: linear-gradient(to right, #007bff, #0056b3);
  color: #fff;
  border: none;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.floating-disclaimer-trigger:hover {
  animation: pulseGlow 0.8s ease-out;
}*/

/*.floating-disclaimer-trigger {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  line-height: 45px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}*/

.floating-disclaimer-trigger:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}*/


@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 rgba(0, 123, 255, 0.5); }
  50% { box-shadow: 0 0 15px rgba(0, 123, 255, 0.7); }
  100% { box-shadow: 0 0 0 rgba(0, 123, 255, 0); }
}

/* 📢 Popup centered in screen */
.disclaimer-popup-centered {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 500px;
  background: #e7f3ff;
  color: #084298;
  border: 1px solid #b6d4fe;
  border-radius: 12px;
  padding: 20px;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}


/* 🗨️ Disclaimer Box */
.disclaimer-popup-box {
  display: none;
  position: fixed;
  bottom: 160px;
  right: 20px;
  width: 300px;
  max-width: 90%;
  background-color: #e7f3ff;
  color: #084298;
  border: 1px solid #b6d4fe;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  padding: 20px;
  z-index: 9999;
}

.disclaimer-popup-centered h4 {
  margin-top: 0;
  font-size: 16px;
}

.disclaimer-popup-centered p {
  font-size: 13px;
  margin-bottom: 10px;
}

.disclaimer-popup-box p {
  font-size: 13px;
  margin-bottom: 10px;
}

/* 💻 Desktop Position: right center */
@media (min-width: 768px) {
  .floating-disclaimer-trigger {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* 📱 Mobile Position: bottom right */
@media (max-width: 767px) {
  .floating-disclaimer-trigger {
    bottom: 80px;
    right: 20px;
    transform: none;
  }
}
 
 .disclaimer-settings-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px auto;
  padding-bottom: 60px;
}

.disclaimer-settings-card {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  max-width: 400px;
  text-align: center;
}

.disclaimer-settings-card h5 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #333;
}

.disclaimer-settings-card button {
  margin-top: 10px;
}

/*--------------------------------------------------------------------------*/

.highlight-top {
  animation: headerBounceGlow 0.8s ease;
  box-shadow: 0 0 12px rgba(0, 123, 255, 0.6);
}

@keyframes headerBounceGlow {
  0%   { transform: translateY(0); box-shadow: 0 0 0 rgba(0,123,255,0); }
  25%  { transform: translateY(-12px); }
  50%  { transform: translateY(0); box-shadow: 0 0 15px rgba(0,123,255,0.8); }
  75%  { transform: translateY(-6px); }
  100% { transform: translateY(0); box-shadow: 0 0 0 rgba(0,123,255,0); }
}

/*--------------------------------------------------------------------------*/
/* ✨ Bounce + Glow for job cards */
.job-card.highlight-card {
  animation: cardBounceGlow 0.8s ease;
  box-shadow: 0 0 12px rgba(40, 167, 69, 0.6); /* green glow */
}

@keyframes cardBounceGlow {
  0%   { transform: translateY(0); box-shadow: 0 0 0 rgba(40,167,69,0); }
  25%  { transform: translateY(-10px); }
  50%  { transform: translateY(0); box-shadow: 0 0 16px rgba(40,167,69,0.8); }
  75%  { transform: translateY(-4px); }
  100% { transform: translateY(0); box-shadow: 0 0 0 rgba(40,167,69,0); }
}

/*--------------------------------------------------------------------------*/

.alert-close-btn {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.alert-close-btn:hover {
  background-color: rgba(214, 51, 132, 0.1); /* Soft pink glow */
  transform: scale(1.1);
}

.alert-close-btn svg {
  display: block;
}
/*-------------------------------------------------------------------------12/06/2025-*/

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  margin: 2px;
}

.badge.active { background: #c8f7c5; color: #1a7f37; }
.badge.expired { background: #fddede; color: #d93025; }
.badge.archived { background: #e0e0e0; color: #555; }

.drag-icon {
  font-size: 12px;
  opacity: 0.5;
  cursor: move;
  user-select: none;
}

.drag-back {
  position: absolute;
  bottom: 6px;
  right: 8px;
}

/*--------------------------------------------------------------------------*/

/*--------------------------------------------------------------------------*/

/* ===================================================================
   DASHBOARD CARDS
=================================================================== */
.dashboard {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 10px;
  transition: all 0.3s ease;
}

.dashboard-toggle-btn {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #b45309;
  color: white;
  padding: 10px 28px;
  border: none;
  border-top: 6px solid orange;
  font-weight: bold;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s ease;
}

.dashboard-toggle-btn.top {
  position: relative;
  margin: 10px 8px;
  top: auto;
  left: auto;
  transform: none;
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 13px;
  border-top: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: inline-block;
  background-color: #b45309;
  color: white;
}


.dashboard-hidden,
.dashboard-charts-hidden,
.dashboard-filters-hidden {
  display: none;
  position: relative;
}

#dashboardCharts,
#dashboardFilters {
  transition: all 0.3s ease;
}

.chart-container-user-posted {
  width: 100%;
  height: 300
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto;
}

.chart-container-user-posted h4 {
  margin-bottom: 8px;
  font-size: 16px;
  text-align: center;
  color: #333;
}


.card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  padding: 16px;
  flex: 1 1 300px;
  max-width: 300px;
  min-width: 260px; /* ✅ Much more appropriate */
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.card h4 {
  margin: 0 0 12px;
  color: #004080;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
}

.card p {
  margin: 4px 0;
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.flip-card {
  perspective: 1000px;
  width: 260px;
  height: 280px;
  margin: 10px;
  border-radius: 16px;
  transition: transform 0.2s;
  position: relative;
}
.flip-card-inner {
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
  position: relative;
  width: 100%;
  height: 100%;
}
.flip-card.pinned .flip-card-inner {
  transform: rotateY(180deg) !important;
}
.flip-card:hover .flip-card-inner:not(.pinned) {
  transform: rotateY(180deg);
}
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  padding: 14px;
  box-sizing: border-box;
}
.flip-card-back {
  transform: rotateY(180deg);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}
.job-source-icon {
  font-size: 18px;
}

.chart-center {
  width: 100%;
  height: 140px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.chart-center canvas {
  width: 100% !important;
  height: 100% !important;
}
.chart-legend-stats {
  font-size: 12px;
  padding-top: 8px;
}

.chart-legend-stats div {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}
.chart-legend-stats span.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot.active { background-color: #34a853; }
.dot.expired { background-color: #ea4335; }
.dot.archived { background-color: #9aa0a6; }
.card-description {
  font-size: 13px;
  color: #333;
  line-height: 1.5;
  margin-top: 20px;
}

.pin-control {
  text-align: right;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pin-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  margin-right: 4px;
}

.drag-icon {
  font-size: 14px;
  opacity: 0.6;
  cursor: move;
  margin-left: auto;
  user-select: none;
}

.nav-right .dropdown {
  display: inline-block;
  position: relative;
}

.nav-right .dropdown-btn {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 5px;
  cursor: pointer;
}

.nav-right .dropdown-content {
  display: none;
  position: absolute;
  top: 110%;
  right: 0;
  background-color: #fff;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  border-radius: 8px;
  z-index: 1000;
  overflow: hidden;
}

.nav-right .dropdown-content a {
  padding: 10px 16px;
  display: block;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

.nav-right .dropdown-content a:hover {
  background-color: #f0f0f0;
}


.dropdown-menu-custom {
  display: none;
  position: absolute;
  right: 0;
  top: 120%;
  background: white;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  border-radius: 10px;
  z-index: 999;
  min-width: 180px;
  padding: 10px;
}

.dropdown-link {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 6px;
  background-color: #f7f9fc;
  text-decoration: none;
  color: #333;
  transition: 0.3s ease;
}

.dropdown-link:hover {
  background-color: #e8f0fe;
  color: #000;
}

.dropdown-link.logout {
  background-color: #ffecec;
  color: #a00;
}

.dropdown-link.logout:hover {
  background-color: #f8d7da;
  color: #800;
}

  /* Your existing theme toggle CSS */
  #themeToggleWrapper {
    display: inline-block;
    margin-right: 10px;
    vertical-align: top;
  }

  #themeToggleBtn {
    font-size: 14px;
    padding: 5px 12px;
    height: 34px;
    border-radius: 4px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    color: #333;
    cursor: pointer;
  }

  #themeToggleBtn.active {
    background-color: #212529;
    color: #fff;
    border-color: #212529;
  }

  body.dark-mode {
    background-color: #1e1e1e !important;
    color: #f1f1f1 !important;
  }

  body.dark-mode .panel,
  body.dark-mode .table,
  body.dark-mode .form-control,
  body.dark-mode .btn,
  body.dark-mode .rnr-page {
    background-color: #2c2c2c !important;
    color: #ddd !important;
    border-color: #555 !important;
  }

  body.dark-mode .form-control::placeholder {
    color: #aaa;
  }
  
  #themeToggleBtn {
  border-radius: 20px;
  padding: 6px 14px;
}

/* Ensure all text adjusts in dark mode */
body.dark-mode,
body.dark-mode p,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode a,
body.dark-mode span,
body.dark-mode strong,
body.dark-mode td,
body.dark-mode th {
  color: #f1f1f1 !important;
}

/* Improve contrast for semi-transparent text */
body.dark-mode .card-description,
body.dark-mode .desc-preview,
body.dark-mode .desc-full,
body.dark-mode .grace-message,
body.dark-mode .expired-tag {
  color: #ddd !important;
}

/* Adjust link/button contrast if needed */
body.dark-mode a,
body.dark-mode a:visited {
  color: #80caff !important;
}

/* Optional: Better readability on flip cards */
body.dark-mode .job-card,
body.dark-mode .flip-card-front,
body.dark-mode .flip-card-back {
  background-color: #2c2c2c !important;
  border-color: #444 !important;
}

body.dark-mode .btn,
body.dark-mode .btn-outline-light {
  background-color: #444 !important;
  color: #fff !important;
  border-color: #777 !important;
}

body.dark-mode h3[id^="section-"] {
  color: #00bfff !important;
}

/* 🔧 Dark mode: improve alert contrast */
body.dark-mode .alert,
body.dark-mode .alert-danger,
body.dark-mode .alert-warning,
body.dark-mode .alert-info {
  background-color: #2a2a2a !important;
  color: #f1f1f1 !important;
  border: 1px solid #555 !important;
}

/* 🔧 Dark mode: improve custom modal/dialog contrast */
body.dark-mode .custom-modal,
body.dark-mode .popup-box,
body.dark-mode .modal-content,
body.dark-mode .floating-panel,
body.dark-mode .panel-box,
body.dark-mode .transparency-notice {
  background-color: #2c2c2c !important;
  color: #f1f1f1 !important;
  border-color: #444 !important;
}

/* Optional: lighten subtle hints or small text */
body.dark-mode small,
body.dark-mode .muted,
body.dark-mode .text-muted {
  color: #ccc !important;
}

/* Optional: fix checkbox label and button contrast */
body.dark-mode label,
body.dark-mode .form-check-label,
body.dark-mode .btn {
  color: #eee !important;
}

body.dark-mode .btn-light,
body.dark-mode .btn-outline-dark {
  background-color: #444 !important;
  border-color: #777 !important;
  color: #fff !important;
}

/* 🔧 Fix custom alert box in dark mode */
body.dark-mode .no-local-jobs {
  background-color: #2a2a2a !important;
  color: #f1f1f1 !important;
  border: 1px solid #555;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Adjust heading and paragraph text inside */
body.dark-mode .no-local-jobs h3,
body.dark-mode .no-local-jobs p,
body.dark-mode .no-local-jobs strong {
  color: #f1f1f1 !important;
}

/* Optional: Close (X) button icon styling in dark mode */
body.dark-mode .no-local-jobs .alert-close-btn svg {
  stroke: #ff6b81 !important;
}

body.dark-mode .no-local-jobs .alert-close-btn:hover svg {
  stroke: #fff !important;
}

.no-local-jobs {
  border-radius: 10px;
  padding: 20px;
  margin: 20px auto;
  max-width: 800px;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}


/* 🔧 Dark mode styling for the disclaimer popup */
body.dark-mode #disclaimerPopup {
  background-color: rgba(0, 0, 0, 0.6) !important; /* optional backdrop tint */
}

body.dark-mode #disclaimerPopup .popup-content {
  background-color: #2c2c2c !important;
  color: #f1f1f1 !important;
  border: 1px solid #444;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

/* Fix inline text elements */
body.dark-mode #disclaimerPopup h4,
body.dark-mode #disclaimerPopup p,
body.dark-mode #disclaimerPopup label,
body.dark-mode #disclaimerPopup small,
body.dark-mode #disclaimerPopup strong {
  color: #f1f1f1 !important;
}

/* Make horizontal rule subtle in dark mode */
body.dark-mode #disclaimerPopup hr {
  border-color: #555;
}

/* Button contrast improvements */
body.dark-mode #disclaimerPopup .btn-primary {
  background-color: #007bff !important;
  color: #fff !important;
}

body.dark-mode #disclaimerPopup .btn-success {
  background-color: #28a745 !important;
  color: #fff !important;
}

body.dark-mode #disclaimerPopup .btn-secondary {
  background-color: #444 !important;
  border-color: #666;
  color: #fff !important;
}

/* Optional: checkbox label tone */
body.dark-mode #disclaimerPopup input[type="checkbox"] + label {
  color: #ddd !important;
}

#disclaimerPopup .popup-content {
  border-radius: 10px;
  padding: 20px;
  max-width: 700px;
  margin: 40px auto;
  transition: all 0.3s ease-in-out;
}

.chart-title {
  text-align: center;
  font-size: 20px;
  margin-bottom: 12px;
}

.chart-subtotal {
  font-size: 16px;
  color: #666;
}

body.dark-mode .chart-subtotal {
  color: #ccc !important;
}

body.dark-mode canvas {
  background-color: transparent !important;
}

body.dark-mode .chartjs-render-monitor {
  color: #f1f1f1 !important;
}

/* Contact Form Button (same style as toggle theme) */
.contact-form-btn {
  background-color: #4CAF50; /* Green background */
  color: white;
  padding: 6px 16px;
  font-size: 16px;
  border-radius: 20px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  display: inline-block;
  margin-left: 10px; /* Space between buttons */
}

.contact-form-btn:hover {
  background-color: #45a049; /* Darker green on hover */
}

/* Footer Button - Same as your original button styles */
.footer-btn, .close-btn {
  background: #0288d1; /* Blue background */
  color: #fff; /* White text */
  border: none;
  padding: 10px 18px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
}

.footer-btn:hover {
  background-color: #0277bd; /* Darker blue on hover */
}



/*--------------------------------------------------------------------------12/06/2025*/

.company-name {
            font-size: 2em;
            color: #0288d1;
            font-weight: bold;
            margin-bottom: 0.3em;
            text-align: center;
        }
		
		#hideLoginBtn, #showLoginBtn {
    margin: 8px auto 12px auto;
    min-width: 120px;
    font-size: 1.1em;
    padding: 12px 28px;
    border-radius: 8px;
    border: none;
    background: #0288d1;
    color: #fff;
    box-shadow: 0 2px 12px #aaa;
    cursor: pointer;
    transition: background 0.15s;
	display: block;
}
#hideLoginBtn:hover, #showLoginBtn:hover {
    background: #026fa4;
}
@media (max-width: 600px) {
    #hideLoginBtn, #showLoginBtn {
        width: 98vw;
        padding: 12px 4vw;
        font-size: 1em;
    }
}
		

        .login-box {
            position: relative;
			padding-top: 2.2em;
			background: white;
            padding: 2em 3em;
            border-radius: 15px;
            box-shadow: 0 2px 24px #aaa;
            max-width: 340px;
            width: 100%;
            margin-bottom: 2em;
            display: flex;
            flex-direction: column;
            align-items: center;
			
        }
        .login-box form {
            width: 100%;
        }
        .login-box input[type="text"],
        .login-box input[type="password"],
        .login-box select {
            width: 100%;
            padding: 10px;
            margin-bottom: 1em;
            border: 1px solid #ccc;
            border-radius: 8px;
            font-size: 16px;
            box-sizing: border-box;
        }
        .login-box button {
            width: 100%;
            background: #0288d1;
            color: white;
            border: none;
            padding: 12px 0;
            border-radius: 8px;
            font-size: 16px;
            cursor: pointer;
        }
        .login-box button:hover {
            background: #026fa4;
        }
		
		
.login-close {
     position: absolute;
    top: 0.6em;       /* aligns with the top padding of .login-box */
    right: 1em;       /* aligns with the right padding of .login-box */
    font-size: 1em;
    background: none !important;
    border: none !important;
    color: #888 !important;
    cursor: pointer;
    z-index: 2;
    padding: 0 8px;
    line-height: 1.2;
    width: auto;
    height: auto;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    gap: 6px;
}


.login-close-caption {
    font-size: 1em;
    color: #555;
    margin-left: 2px;
    font-weight: 400;
    letter-spacing: 0.02em;
    user-select: none;
}

	@media (max-width: 450px) {
  .login-close-caption {
    display: none;
  }
}


@media (max-width: 600px) {
  .login-close-caption {
    display: none;
  }
}

@media (max-width: 500px) {
  .login-close-caption {
    display: none;
  }
}

		
.login-close:hover,
.login-close:focus {
    color: #d32f2f !important;
}
.login-close:hover .login-close-caption,
.login-close:focus .login-close-caption {
    color: #d32f2f;
}	
        .error {
            color: #b71c1c;
            background: #ffcdd2;
            padding: 0.5em 1em;
            border-radius: 6px;
            margin-bottom: 1em;
            text-align: center;
        }
        .about-box {
            background: #fff;
            padding: 1.3em 2em;
            border-radius: 16px;
            box-shadow: 0 1px 8px #e0e0e0;
            max-width: 900px;
            margin: 0.8em auto 1em auto;
            font-size: 16px;
            color: #222;
            text-align: justify;
            line-height: 1.7;
        }
        .about-box strong {
            color: #026fa4;
        }
        footer.about-box {
            margin-top: 0;
            margin-bottom: 2em;
        }
        @media (max-width: 500px) {
            .about-box {
                padding: 1em 0.7em;
                font-size: 15px;
            }
            .login-box {
                padding: 1em 0.7em;
                max-width: 97vw;
				position: relative;
				
            }
        }
		
		body {
			position: relative;
			overflow-x: hidden;
			}

		/* Faded, moving tech SVG background */
		.tech-bg {
			position: fixed;
			top: 0; left: 0;
			width: 100vw;
			height: 100vh;
			z-index: 0;
			background: transparent;
			pointer-events: none;
		}
		.tech-bg::before {
			content: '';
			position: absolute;
			width: 100vw;
			height: 100vh;
			opacity: 0.01; /* control fade */
			background: url('data:image/svg+xml;utf8,<svg width="1000" height="1000" xmlns="http://www.w3.org/2000/svg"><g stroke="%23028ad1" stroke-width="2" opacity="0.4"><line x1="0" y1="50" x2="1000" y2="50"/><line x1="0" y1="200" x2="1000" y2="200"/><line x1="0" y1="350" x2="1000" y2="350"/><line x1="0" y1="500" x2="1000" y2="500"/><line x1="0" y1="650" x2="1000" y2="650"/><line x1="0" y1="800" x2="1000" y2="800"/><circle cx="700" cy="150" r="24" fill="none"/><rect x="200" y="700" width="60" height="60" fill="none"/></g></svg>');
			background-size: cover;
			animation: bg-move 20s linear infinite;
		}

		@keyframes bg-move {
			0% { background-position: 0 0;}
			100% { background-position: 100px 100px;}
		}

		#matrix-bg {
			position: fixed;
			top: 0; left: 0;
			width: 100vw;
			height: 100vh;
			z-index: 0;
			opacity: 0.08; /* Adjust for more/less fade */
			pointer-events: none;
		}
		
		.content-container {
			position: relative;
			z-index: 1;
			width: 100%;
			display: flex;
			flex-direction: column;
			align-items: center;
		}

.preview-link {
    color: #1a0dab;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
}
.preview-link:hover {
    color: #d32f2f;
}

.preview-popup {
    display: none;
    position: absolute;
    z-index: 1000;
	background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 1.3em 1.3em 1.3em 1.3em;
    max-width: 420px;
    border-radius: 16px;
    font-size: 1em;
    color: #222;
    overflow: auto;
    max-height: 350px;
    animation: fadeInPopup 0.32s cubic-bezier(0.36, 0.66, 0.04, 1) both;
    transition: box-shadow 0.2s;
}

@keyframes fadeInPopup {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.preview-popup.hide {
    animation: fadeOutPopup 0.22s cubic-bezier(0.36, 0.66, 0.04, 1) both;
}

@keyframes fadeOutPopup {
    to {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
}

.preview-popup .popup-close {
    position: absolute;
    top: 7px;
    right: 9px;
    font-size: 1.3em;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 2;
    padding: 0;
}
.preview-popup .popup-close:hover {
    color: #d32f2f;
}

.preview-popup a {
    color: #0074cc;
    text-decoration: underline;
}

.client-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8em 1.2em;
    margin-top: 0.7em;
}
.client-card {
    display: flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.3em 0;
    font-size: 1em;
}
.client-icon {
    font-size: 1.3em;
}

@media (max-width: 600px) {
    .preview-popup {
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 94vw !important;
        max-width: 96vw !important;
        min-width: 88vw !important;
        max-height: 70vh !important;
        min-height: 30vh !important;
        font-size: 1.13em !important;
        padding: 1.5em 1.1em 1.1em 1.1em !important;
        box-sizing: border-box !important;
    }
    .donor-tooltip {
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 92vw !important;
        max-width: 97vw !important;
        min-width: 82vw !important;
        max-height: 60vh !important;
        min-height: 22vh !important;
        font-size: 1.13em !important;
        padding: 1.4em 1.1em 1.1em 1.1em !important;
        box-sizing: border-box !important;
        overflow-y: auto !important;
    }
    .donor-tooltip .donor-tooltip-close {
        top: 10px !important;
        right: 14px !important;
        font-size: 1.6em !important;
    }
    .client-grid {
        grid-template-columns: 1fr;
    }
}


/* Custom Scrollbar for preview-popup */
.preview-popup::-webkit-scrollbar {
    width: 10px;
}
.preview-popup::-webkit-scrollbar-thumb {
    background: #e1e1e1;
    border-radius: 8px;
}
.preview-popup::-webkit-scrollbar-track {
    background: #f6f6f6;
    border-radius: 8px;
}
.preview-popup:hover::-webkit-scrollbar-thumb {
    background: #bbb;
}

.donor-tooltip {
    display: none;
    position: absolute;
    background: #f9fafb;
    border: 1px solid #d2d6dc;
    box-shadow: 0 2px 14px rgba(0,0,0,0.11);
    padding: 0.9em 1.2em;
    border-radius: 10px;
    font-size: 0.98em;
    color: #232323;
    z-index: 2000;
    max-width: 280px;
    transition: opacity 0.17s;
    pointer-events: none;
}
.donor-tooltip strong {
    color: #1252c4;
    font-size: 1.04em;
}
.donor-tooltip a {
    color: #0080ff;
    text-decoration: underline;
    font-weight: 600;
    font-size: 0.97em;
}

.donor-modal {
    display: none;
    position: fixed;
    z-index: 2500;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(20,22,33,0.49);
    align-items: center;
    justify-content: center;
    animation: fadeInModal 0.21s;
}
@keyframes fadeInModal {
    from { opacity: 0;}
    to   { opacity: 1;}
}
.donor-modal-content {
    background: #fff;
    padding: 1em 1em 0.5em 1em;
    border-radius: 14px;
    max-width: 800px;
    width: 97vw;
    max-height: 86vh;
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
    position: relative;
    display: flex;
    flex-direction: column;
    animation: popupModalUp 0.33s;
}
@keyframes popupModalUp {
    from { transform: translateY(60px) scale(0.96);}
    to   { transform: translateY(0) scale(1);}
}
.donor-modal-header {
    font-size: 1.17em;
    font-weight: bold;
    margin-bottom: 0.4em;
    color: #225dc2;
}
.donor-modal-close {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 2em;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    z-index: 2;
    transition: color 0.18s;
}
.donor-modal-close:hover {
    color: #d32f2f;
}
.donor-modal-iframe {
    width: 100%;
    height: 65vh;
    border: none;
    background: #fcfcfc;
    border-radius: 8px;
    margin-bottom: 0.6em;
}


.donor-tooltip {
    display: none;
    position: absolute;
    background: #f9fafb;
    border: 1px solid #d2d6dc;
    box-shadow: 0 2px 14px rgba(0,0,0,0.11);
    padding: 0.9em 1.2em 1em 1.2em;
    border-radius: 10px;
    font-size: 0.98em;
    color: #232323;
    z-index: 2000;
    max-width: 280px;
    transition: opacity 0.17s;
    pointer-events: auto;
}

.donor-tooltip strong {
    color: #1252c4;
    font-size: 1.04em;
}

.donor-tooltip a {
    color: #0080ff;
    text-decoration: underline;
    font-weight: 600;
    font-size: 0.97em;
}

/* Tooltip Close Icon */
.donor-tooltip-close {
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 1.23em;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.19s;
    z-index: 2;
}
.donor-tooltip-close:hover {
    color: #d32f2f;
}

.modal-fallback {
    padding: 1.5em 1em 2em 1em;
    text-align: center;
}
.modal-fallback a.visit-in-new-tab {
    display: inline-block;
    margin-top: 0.9em;
    padding: 0.5em 1.3em;
    border-radius: 5px;
    background: #1752c4;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.18s;
}
.modal-fallback a.visit-in-new-tab:hover {
    background: #d32f2f;
}

.modal-fallback {
    padding: 1.5em 1em 2em 1em;
    text-align: center;
}
.modal-fallback a.visit-in-new-tab {
    display: inline-block;
    margin-top: 0.9em;
    padding: 0.5em 1.3em;
    border-radius: 5px;
    background: #1752c4;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.18s;
}
.modal-fallback a.visit-in-new-tab:hover {
    background: #d32f2f;
}

.footer-btn, .close-btn {
  background: #0288d1;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
}
.email-form-box {
  background: #fff;
  border-radius: 8px;
  padding: 24px 16px 16px 16px;
  box-shadow: 0 0 24px #0002;
  min-width: 320px;
  position: relative;
}
.close-btn {
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 1.5em;
  background: none;
  color: #333;
  border: none;
}



#email-form-container {
  display: none;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.3);
  z-index: 999;
  transition: opacity 0.3s;
}
#email-form-container.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}
.email-form-box {
  background: #fff;
  border-radius: 8px;
  padding: 24px 16px 16px 16px;
  box-shadow: 0 0 24px #0002;
  min-width: 320px;
  max-width: 95vw;
  width: 100%;
  max-width: 400px;
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.close-btn {
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 1.5em;
  background: none;
  color: #333;
  border: none;
  cursor: pointer;
}
#email-form-container input,
#email-form-container textarea,
#email-form-container select {
  width: 94%;
  margin: 8px 0;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ddd;
}
#emailMsg {
  color: #008800;
  min-height: 20px;
}
@media (max-width:480px){
  .email-form-box { min-width:unset; width:96vw; }
}


@keyframes splashPop {
  0% { opacity: 0; transform: scale(0.5) translate(-50%,-50%);}
  40% { opacity: 1; transform: scale(1.12) translate(-50%,-50%);}
  60% { opacity: 1; transform: scale(1.04) translate(-50%,-50%);}
  100% { opacity: 0; transform: scale(0.7) translate(-50%,-50%);}
}
#splashThankYou.show {
  display: block !important;
  animation: splashPop 4s cubic-bezier(.2,1,.3,1) forwards;
}

@keyframes balloonUp {
  0% { opacity: 0; transform: translate(-50%, 50%);}
  10% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -150%);}
}
#successBalloon {
  transition: opacity 0.3s;
}
#successBalloon.show {
  display: block;
  animation: balloonUp 4s cubic-bezier(0.45,0,0.55,1) forwards;
}

#chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

.chat-fab {
  background: #1c85e8;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 56px; height: 56px;
  font-size: 2em;
  box-shadow: 0 4px 16px #0003;
  cursor: pointer;
}

.chat-modal {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  max-width: 95vw;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 24px #0002;
  overflow: hidden;
  z-index: 10000;
  animation: fadeIn 0.3s;
}

.chat-header {
  background: #1c85e8;
  color: #fff;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-body {
  max-height: 240px;
  overflow-y: auto;
  padding: 12px;
  background: #f9f9f9;
  font-size: 1em;
}

#chatForm {
  display: flex;
  border-top: 1px solid #eee;
}

#chatInput {
  flex: 1;
  padding: 10px;
  border: none;
  outline: none;
  font-size: 1em;
  border-radius: 0 0 0 12px;
}

#chatForm button {
  background: #1c85e8;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 0 0 12px 0;
  cursor: pointer;
}

.bot-message {
  color: #15803d;
  margin-bottom: 8px;
}

.user-message {
  color: #222;
  text-align: right;
  margin-bottom: 8px;
}

@keyframes fadeIn {
  0% {opacity:0; transform: translateY(30px);}
  100% {opacity:1; transform: translateY(0);}
}

@media (max-width: 420px) {
  #floatingChat {
    width: 98vw !important;
    min-width: 0 !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    padding: 0 !important;
  }
}

<!-- latest -->
.fade-blur {
    opacity: 0.26 !important;
    filter: blur(3px);
    transition: opacity 0.5s, filter 0.5s;
    pointer-events: none;
    user-select: none;
}


.portfolio-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(28,44,78,0.32);
  align-items: center; justify-content: center;
}
.portfolio-modal-content {
  background: #fff;
  border-radius: 18px;
  max-width: 760px;
  width: 96vw;
  max-height: 86vh;
  overflow-y: auto;
  box-shadow: 0 6px 32px #0288d155;
  padding: 28px 24px 24px 24px;
  position: relative;
  animation: popupModalUp 0.35s;
}
@keyframes popupModalUp {
  from { transform: translateY(70px) scale(0.96);}
  to   { transform: translateY(0) scale(1);}
}
.portfolio-modal-close {
  position: absolute; top: 20px; right: 24px;
  font-size: 2em; color: #bbb;
  cursor: pointer; background: none; border: none;
  transition: color 0.18s;
}
.portfolio-modal-close:hover { color: #0288d1; }

.expired-box {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.grace-message {
  background: #fff4e5;
  color: #92400e;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 0.85em;
}

.expired-tag {
  background: #eee;
  color: #555;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 0.85em;
}

.closing-soon-animated {
  background: #fdecea;
  color: #b91c1c;
  padding: 6px 10px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.85em;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(185, 28, 28, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(185, 28, 28, 0); }
  100% { box-shadow: 0 0 0 0 rgba(185, 28, 28, 0); }
}

/* 🌙 DARK MODE OVERRIDES */
body.dark-mode .grace-message {
  background: #3a3a3a;
  color: #facc15; /* warm yellow */
}

body.dark-mode .expired-tag {
  background: #2e2e2e;
  color: #ccc;
}

body.dark-mode .closing-soon-animated {
  background: #4b1c1c;
  color: #ffb4b4;
}

/* Optional: adjust Expires: label */
body.dark-mode .job-card p strong {
  color: #eee;
}

.job-card {
  position: relative;
  border-left: 6px solid #3b82f6; /* Tailwind blue-500 */
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

/* 🌙 Dark mode adjustments */
body.dark-mode .job-card {
  background: #1f1f1f;
  border-left-color: #2563eb; /* Tailwind blue-600 */
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.05);
}

.job-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

#loginToggle:hover {
  background-color: #fff;
  color: #0084FF;
  border: 1px solid #0084FF;
}

/* Fix chat popup visibility */
#chatPopup {
  background: #fff;
  color: #222; /* Dark text for readability */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  padding: 16px;
  max-width: 280px;
  z-index: 999;
}

#chatPopup h4 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

#chatPopup p {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

#chatPopup a.chat-btn {
  display: inline-block;
  background-color: #1877f2;
  color: #fff;
  border-radius: 8px;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 500;
  margin-top: 6px;
}

#chatPopup .close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #666;
}

body.dark-mode #chatPopup {
  background: #222;
  color: #f0f0f0;
}

body.dark-mode #chatPopup p,
body.dark-mode #chatPopup h4 {
  color: #ddd;
}

/* 🔘 Chat panel default (light mode) styles already inlined, so we override only dark mode here */

body.dark-mode #chatInfoCard {
  background: #ffffff !important;
  color: #222 !important;
}

body.dark-mode #chatInfoCard a {
  background: #0084FF !important;
  color: #fff !important;
}

body.dark-mode #chatInfoCard p {
  color: #ccc;
}

body.dark-mode #chatInfoCard a {
  background: #1877f2;
  color: #fff;
}

body.dark-mode #chatInfoCard .close-btn {
  color: #ccc;
}

body.dark-mode #chatToggleBtn button {
  background: #0084FF !important;
  color: #fff !important;
}


/* Animation when card appears */
.slide-in {
  animation: slideFadeIn 0.8s ease-out;
}

@keyframes slideFadeIn {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0px);
    opacity: 1;
  }
}


    footer {
      text-align: center;
      padding: 20px;
      font-size: 14px;
      color: #888;
    }
