/* ========== Base Reset ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f9f9fb;
  color: #333;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.hero-headline {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-primary {
  background: #16a34a;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.cta-primary:hover {
  background: #15803d;
}

.cta-secondary {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.cta-secondary:hover {
  background: rgba(255,255,255,0.1);
}

/* Benefits Section */
.benefits {
  padding: 4rem 2rem;
  background: #f9fafb;
}

.benefits h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #111827;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.benefit {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.benefit h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #374151;
}

.benefit p {
  color: #6b7280;
}

/* How It Works */
.how-it-works {
  padding: 4rem 2rem;
  background: white;
}

.how-it-works h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #111827;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  text-align: center;
}

.step-number {
  width: 60px;
  height: 60px;
  background: #2563eb;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #374151;
}

.step p {
  color: #6b7280;
}

/* Final CTA */
.final-cta {
  padding: 4rem 2rem;
  background: #f3f4f6;
  text-align: center;
}

.final-cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #111827;
}

.final-cta p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #6b7280;
}

.small-text {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-top: 1rem;
}



/* ========== Header ========== */
header {
  background-color: #cad2fc;
  color: #2b2d42;
  text-align: center;
  padding: 2rem 1rem;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.2rem;
  color: #444;
}

/* ========== Base Button ========== */
button {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  background-color: #5c7cfa;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin: 0.2rem;
}


/* ========== Main Button Hover ========== */
button:hover {
  background-color: #4e6dfb;
}

/* ========== Main Containers ========== */
main {
  flex: 1;
  padding: 2rem;
  width: 100%;
  max-width: 1000px;
  margin: auto;
}

.landing-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70vh;
}

/* ========== Lab Cards ========== */
.lab-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  padding: 2rem 0;
}

.lab-card {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  cursor: pointer;
  width: 260px;
  text-align: center;
  transition: 0.2s ease-in-out;
}

.lab-card:hover {
  background-color: #eaf0ff;
  transform: scale(1.02);
}

/* ========== Lab Description Page ========== */
.lab-description {
  white-space: pre-wrap;
  padding: 2rem;
  font-size: 1.1rem;
  background-color: #ffffff;
  border-radius: 10px;
  margin-top: 1rem;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  position: relative;
}

.lab-links {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.8rem;
}

.lab-links a {
  background-color: #dee5ff;
  color: #2b2d42;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  transition: background-color 0.2s ease;
}

.lab-links a:hover {
  background-color: #cfd8ff;
}

/* ========== Tables ========== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}

th, td {
  text-align: left;
  padding: 1rem;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #edf2ff;
  color: #333;
}

td:last-child {
  white-space: nowrap;
}

/* ========== DASHBOARD excel download btn ========== */

#downloadExcelBtn {
  padding: 8px 16px;
  font-size: 0.9rem;
  border-radius: 6px;
  background-color: #007bff; /* Bootstrap blue */
  color: white;
  border: none;
  cursor: pointer;
  
  max-width: 180px;
  width: auto;
  
  display: block;
  margin: 1rem auto; /* top/bottom margin and center horizontally */
  text-align: center;
  transition: background-color 0.3s ease;
}

#downloadExcelBtn:hover {
  background-color: #0056b3; /* Darker blue on hover */
}


/* ========== DASHBOARD tooltip ========== */

.tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 180px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 9999;  /* very high z-index */
  bottom: 125%;   /* position above */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  white-space: normal;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Make sure parent table elements don't clip the tooltip */
table, thead, tbody, tr, th, td {
  overflow: visible !important;
  position: relative; /* so tooltip positioning works */
}


/* ========== DASHBOARD NOTE MODAL ========== */

#noteModal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
#noteModal.active {
  display: flex;
}
#noteModal .modal-content {
  background: white;
  padding: 1rem;
  border-radius: 4px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
#noteModal textarea {
  width: 100%;
  height: 120px;
  margin-bottom: 1rem;
  padding: 8px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
}
#noteModal button {
  margin-right: 1rem;
  padding: 6px 12px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  border: none;
  background: #2f8f8f;
  color: white;
}
#noteModal button.cancel-btn {
  background: #888;
}

/* ========= Score Cell Styling ========= */
.score-cell {
  font-weight: 600;
  text-align: center;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.85rem;
  min-width: 35px;                 /* keeps consistent width inside table */
  color: #333;                     /* ensure readability */
  margin: 0 auto;                  /* center horizontally in the td */
}

/* Soft pastels with dark readable text */
.score-cell[data-score="1"] {
  background-color: #fde2e2;  /* light red */
  color: #7f1d1d;
}
.score-cell[data-score="2"] {
  background-color: #ffe5b3;  /* mellow orange */
  color: #78350f;
}
.score-cell[data-score="3"] {
  background-color: #fff3b0;  /* soft yellow */
  color: #7a6a00;
}
.score-cell[data-score="4"] {
  background-color: #d3f9d8;  /* mint green */
  color: #065f46;
}
.score-cell[data-score="5"] {
  background-color: #b7f0d8;  /* fresh green */
  color: #064e3b;
}

/* Total/Average looks distinct */
.score-cell.total {
  background-color: #dee9ff;  /* pastel blue */
  color: #1e40af;
  font-weight: 700;
  border-radius: 8px;
}

.score-cell .tooltiptext {
  visibility: hidden;
  width: 180px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 9999;
  bottom: 125%;  /* appear above */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  white-space: normal;
}

.score-cell:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* ========== DASHBOARD HIDE REJECTED ========== */

/* when body.hide-rejected is present, any row.reject-row will be hidden */
body.hide-rejected tr.reject-row {
  display: none;
}


/* ========== Footer ========== */
footer {
  text-align: center;
  padding: 1rem 2rem;
  font-size: 0.9rem;
  background-color: #f0f2f7;
  color: #555;
  margin-top: auto;           /* keeps footer pushed to the bottom */
  display: flex;              /* flex layout like your landing page */
  align-items: center;
  justify-content: space-between;
  height: 3rem;
}


.soft-btn {
  background-color: #dde5ff;
  color: #2b2d42;
}

.reject-btn {
  background-color: #ffe1e1;
  color: #d00000;
}

.interview-btn {
  background-color: #d4f4dd;
  color: #1e7d2c;
}

.delay-btn {
  background-color: #fdf2d0;
  color: #8f5e00;
}

button.soft-btn:hover,
button.reject-btn:hover,
button.interview-btn:hover,
button.delay-btn:hover {
  opacity: 0.85;
}

  .lab-contact-cta {
    padding: 0.4em 0.9em;
    background-color: #007BFF;
    color: white !important;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap;
  }
  .lab-contact-cta:hover,
  .lab-contact-cta:focus {
    background-color: #0056b3;
    box-shadow: 0 0 8px rgba(0,123,255,0.7);
    outline: none;
  }

/* ========== Compact Table Action Buttons ========== */
.action-group {
  display: flex;
  flex-wrap: nowrap; /* prevent buttons from wrapping */
  gap: 0.2rem;
  overflow-x: auto; /* allow horizontal scroll if needed */
  overflow: visible !important;
}

/* Keep your existing .action-btn styling unchanged */
.action-btn {
  background-color: #e4e9ff;
  color: #2b2d42;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.action-btn:hover {
  background-color: #cdd7ff;
}

.action-btn.selected {
  background-color: #5c7cfa;
  color: white;
}

/* Specific button override */
#claimBtn {
  background-color: #f0f0f0;
  color: #333;
  padding: 0.4rem 0.8rem;
}

#claimBtn:hover {
  background-color: #e0e0e0;
}

.star-btn.starred {
  color: gold; /* filled star */
}
.star-btn.unstarred {
  color: lightgray; /* empty star */
  opacity: 0.6;
}
.star-btn {
  cursor: pointer;
  font-size: 1.2rem;
  background: none;
  border: none;
  padding: 0 4px;
}


/* Confirmation Tooltip */
.floating-confirmation {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #2e8f66;
  color: white;
  padding: 8px 14px;
  border-radius: 5px;
  font-size: 0.85rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  z-index: 9999;
  animation: fadeInOut 2s ease forwards;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
  10%, 90% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

/* Optional: compact table layout */
table th, table td {
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
  white-space: nowrap;
}

/* Browse  */

.lab-request-card {
  background-color: #f9f9f9;
  border: 2px dashed #2f8f8f;
  padding: 2rem;
  text-align: center;
  cursor: default;
  width: 260px;       /* same as card width */
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.lab-request-card p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
}
.lab-request-card .action-btn {
  margin-top: 1rem;
}

/* Apply.html */

.apply-footer {
  position: fixed;      /* 🔒 Stay at bottom */
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #ccc;
  height: 70px;         /* consistent height for the bar */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;        /* keep above content */
}

.apply-btn {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background-color: #007BFF;  /* 🔵 Primary blue */
  color: white;
  font-weight: 600;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.apply-btn:hover,
.apply-btn:focus {
  background-color: #0056b3;
  box-shadow: 0 0 6px rgba(0,123,255,0.5);
  outline: none;
}

/* == Nav Bar == */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #e8ecff;
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: right;
  gap: 2rem;
  font-size: 1rem;
  border-bottom: 1px solid #cfd8ff;
  z-index: 1000; /* keep above page content */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Add padding to body or main so content is not hidden under navbar */
body, main {
  padding-top: 52px; /* adjust if you change navbar height */
}

.navbar a {
  text-decoration: none;
  color: #2b2d42;
  font-weight: 500;
}

.navbar a:hover {
  text-decoration: underline;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.form-row > div {
  flex: 1 1 0px;
  min-width: 90px;
}
.form-row label {
  margin-top: 0.5rem;
  font-weight: normal;
}



/* ========== Landing Page Buttons (Large) ========== */
.role-selection button {
  padding: 2rem 3rem;
  font-size: 1.5rem;
  margin: 1rem;
}

/* STUDENT PROFILE */

form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #fff;
  color: #333;
  width: 100%;
}

textarea {
  resize: vertical;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #2b2d42;
}

.status-badge,
.action-btn {
  margin: 0.2rem;
}

/* WATERMARK */

.watermark-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(100, 100, 100, 0.15);
  font-weight: bold;
  text-transform: uppercase;
  transform: rotate(-20deg);
  user-select: none;
}


/* LOGIN */

#googleLoginBtn {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  display: inline-block;
  cursor: pointer;
}
#googleLoginBtn:focus, #googleLoginBtn:active {
  outline: none !important;
  box-shadow: none !important;
}

