/* ========== 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;
}

/* ========== 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;
}


/* ========== 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;
}


/* ========== 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;
}

