/* General styling for the entire page */
body {
    font-family: Arial, sans-serif;
    margin: 0;
}

/* Required field indicator */
.required {
    color: #ff3860;
    margin-left: 4px;
}

.wrapper {
    max-width: 1100px;
    margin: 15px auto;
}

.hero-foot {
  padding-top: 16px;
  background-color: white;
  position: fixed; bottom: 0; width: 100%; 

  
  /* background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 80%, rgba(255,255,255,0) 100%); */
}

/* Calendar container */
.container-calendar {
    background: var(--surface-solid);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-solid);
    padding: 15px;
    max-width: 900px;
    margin: 0 auto;
    overflow: auto;
    display: flex;
    justify-content: space-between;
}

/* Event section styling */
#event-section {
    padding: 10px;
    background: #f5f5f5;
    margin: 20px 0;
    border: 1px solid #ccc;
}

.container-calendar #left h1 {
    color: #3273dc;
    text-align: center;
    background-color: #f2f2f2;
    margin: 0;
    padding: 10px 0;
}

#event-section h3 {
    color: #3273dc;
    font-size: 18px;
    margin: 0;
}

#event-section input[type="date"],
#event-section input[type="text"] {
    margin: 10px 0;
    padding: 5px;
    width: 80%;
}

#event-section button {
    background: #3273dc;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.event-marker {
    position: relative;
}

.event-marker::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background-color: red;
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    left: 0;
}

/* event tooltip styling */
.event-tooltip {
    position: absolute;
    background-color: #ffffff;
    color: black;
    padding: 10px;
    border-radius: 4px;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.event-marker:hover .event-tooltip {
    display: block;
}

/* Reminder section styling */
#reminder-section {
    padding: 10px;
    background: #f5f5f5;
    margin: 20px 0;
    border: 1px solid #ccc;
}

#reminder-section h3 {
    color: #3273dc;
    font-size: 18px;
    margin: 0;
}

#reminderList {
    list-style: none;
    padding: 0;
}

#reminderList li {
    margin: 5px 0;
    font-size: 16px;
}

/* Style for the delete buttons */
.delete-event {
    background: rgb(237, 19, 19);
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    margin-left: 10px;
    align-items: right;
}

.see-event {
    background: #f97e30;/*hsl(217, 71%, 53%);*/
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    margin-left: 10px;
    align-items: right;
}

/* Buttons in the calendar */
.button-container-calendar button {
    cursor: pointer;
    background: #3273dc;
    color: #fff;
    border: 1px solid #3273dc;
    border-radius: 4px;
    padding: 5px 10px;
}

/* Calendar table */
.table-calendar {
    border-collapse: collapse;
    width: 100%;
}

.table-calendar td,
.table-calendar th {
    padding: 5px;
    border: 1px solid #e2e2e2;
    text-align: center;
    vertical-align: top;
}

/* Date picker */
.date-picker.selected {
    background-color: #f2f2f2;
    font-weight: bold;
    outline: 1px dashed #00BCD4;
}

.date-picker.selected span {
    border-bottom: 2px solid currentColor;
}

/* Day-specific styling */
.date-picker:nth-child(1) {
    color: red;
    /* Sunday */
}

.date-picker:nth-child(6) {
    color: #3273dc;
    /* Friday */
}

/* Hover effect for date cells */
.date-picker:hover {
    background-color: #3273dc;
    color: white;
    cursor: pointer;
}

/* Header for month and year */
#monthAndYear {
    text-align: center;
    margin-top: 0;
}
.center {
  margin: 0;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

/* Navigation buttons */
.button-container-calendar {
    position: relative;
    margin-bottom: 1em;
    overflow: hidden;
    clear: both;
}

#previous {
    float: left;
}

#next {
    float: right;
}

/* Footer styling */
.footer-container-calendar {
    margin-top: 1em;
    border-top: 1px solid #dadada;
    padding: 10px 0;
}



.footer-container-calendar select {
    cursor: pointer;
    background: #ffffff;
    color: #585858;
    border: 1px solid #bfc5c5;
    border-radius: 3px;
    padding: 5px 1em;
}

/* div:hover {
  cursor: pointer;
} */


.hoverAddress:hover {
  background-color: #f5f5f5;
  border-radius: 3px;

}
.hoverAddress {
  padding: 3px;
  padding-left: 5px;
  padding-right: 5px;
  cursor: pointer;
}


#carpoolinfo:hover {
  background-color: white;
}

@media only screen and (max-width: 386px) {
  #topLogo {
    display: block;
  }
  #bottomLogo {
    display: none;
  }
}

@media only screen and (min-width: 386px) {
  #topLogo {
    display: none;
  }
  /* Removed empty #bottomLogo ruleset to satisfy CSS linters */
}

/* mobile */
@media only screen and (max-width: 768px) {
  #signup {
    width: 90%
  }
  #signin {
    width: 90%
  }
  #deleteaccount {
    width: 90% 
  }
  #updatesettings {
    width: 90% 
  }
  #map {
    height: 30vh;
  }
  #upcoming-carpools-column {
    height: 40vh;
    margin-top: -10vh;
  }
  #hero-body {
    padding-left: 10px;
    padding-right: 10px;
  }
  #registered-carpoolers {
    width: 60%;
  }
  #action-buttons {
    width: 40%
  }
  #mycarpools {
    width: 100%
  }
  .white-background {
    background-color: transparent 
  }
  #datez, #spanz {
    color: white;
  }
  .booker {
    width: 100%;
    position: relative !important;
  }
  .link-heading {
    height: fit-content;
  }
  .extraspace {
    display: block !important
  }
  #clock {
    margin-left: 0px !important;
    margin-top: 10px !important;
  }
  .upcoming-buttons {
    width: min-content !important;
  }

 
  
}

.upcoming-carpools-button {
  float: right;
}

/* tablet */
@media only screen and (min-width: 769px) {
  #signup {
    width: 700px
  }
  #signin {
    width: 700px
  }
  #deleteaccount {
    width: 700px 
  }
  #updatesettings {
    width: 500px 
  }
  #map {
    height: 400px;
  }
  #upcoming-carpools-column {
    height: 450px;

  }
  #mycarpools {
    width: 500px
  }
  .white-background {
    background-color: white
  }
  #datez, #spanz {
    color: black;
  }


  
}
/* desktop */
@media only screen and (max-width: 1024px) {
  .navbar-dropdown {
  display: none !important;
  visibility: hidden !important;
  }
  
  /* Consolidated dropdown hover styles */
  #name_button:hover ~ .navbar-dropdown,
  #filler:hover ~ .navbar-dropdown,
  .navbar-dropdown:hover {
    display: block;
    background-color: #fff;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    border-top: 2px solid #dbdbdb;
    box-shadow: 0 8px 8px rgba(10,10,10,.1);
    font-size: .875rem;
    left: 0;
    min-width: 100%;
    position: absolute;
    top: 100%;
    width: 160px;
    visibility: visible;
  }
  .navbar-item:hover {
    background-color: #F5F5F5;
  }
}


.vertical-center {
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}








.switch-input[type=checkbox]{
  height: 0;
  width: 0;
  visibility: hidden;
}

.switch-label {
  cursor: pointer;
  text-indent: -9999px;
  width: 60px;
  height: 30px;
  background: grey;
  display: block;
  border-radius: 100px;
  position: relative;
}

.switch-label:after {
  content: '';
  position: absolute;
  top: 2.5px;
  left: 2.75px;
  width: 25px;
  height: 25px;
  background: #fff;
  border-radius: 90px;
  transition: 0.3s;
}

.switch-input:checked + label {
  background: hsl(217, 71%, 53%);
}

.switch-input:checked + label:after {
  left: calc(100% - 2.75px);
  transform: translateX(-100%);
}

/* Removed empty .switch-label:active:after ruleset */

.App {
  font-family: sans-serif;
  height: 95vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.code-input {
  display: flex;
  flex-direction: column;
  align-items: start;
}
.code-label {
  margin-bottom: 16px;
}
.code-inputs {
  display: flex;
  justify-content: start;
  align-items: center;
}
.code-inputs input {
  border: none;
  background-image: none;
  background-color: transparent;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  text-align: center;
  height: 60px;
  width: 40px;
  border-radius: 10px;
  margin: 0 4px;
  border: 2px solid #4f5b66;
  font-size: 38px;
}
.code-inputs input:focus {
  outline: none;
}
.code-inputs input:nth-child(3n) {
  margin-right: 24px;
}

#filter {
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

#filter:hover {
  border-color: #3273dc;
  box-shadow: 0 2px 8px rgba(50, 115, 220, 0.1);
}

#filter:focus {
  outline: none;
  border-color: #3273dc;
  box-shadow: 0 0 0 3px rgba(50, 115, 220, 0.1);
}


/* CO2 savings equivalents */
.co2-equivalents {
  font-size: 0.8em;
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
}


/* ========================= */
/* Modern Event Card Design */
/* ========================= */

/* Modern event card container */
.modern-event-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
  transition: all 0.2s ease;
  box-sizing: border-box; /* Include padding and border in width calculation */
}

.modern-event-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

/* Event title */
.modern-event-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 100px 12px 0; /* Add right margin to avoid category tag overlap */
  line-height: 1.3;
}

/* Category tag */
.modern-category-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f5f5f5;
  color: #666;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: capitalize;
}

/* Event details container */
.modern-event-details {
  margin-bottom: 20px;
}

/* Event detail row */
.modern-detail-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  color: #666;
  font-size: 0.9rem;
}

.modern-detail-row:last-child {
  margin-bottom: 0;
}

/* Icons in detail rows */
.modern-detail-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Action buttons container */
.modern-action-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  box-sizing: border-box; /* Include padding and border in width calculation */
}

/* Primary button (Join Carpool) */
.modern-btn-primary {
  background: #3273dc;
  color: white;
  border: none;
  padding: 12px 8px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 0; /* Allow flex item to shrink below content size */
  max-width: calc(50% - 4px); /* Ensure it doesn't exceed half width minus half the gap */
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.modern-btn-primary:hover {
  background: #275cbf;
  box-shadow: 0 4px 12px rgba(50, 115, 220, 0.3);
}

/* Secondary button (Create) */
.modern-btn-secondary {
  background: white;
  color: #666;
  border: 1px solid #e0e0e0;
  padding: 12px 8px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 0; /* Allow flex item to shrink below content size */
  max-width: calc(50% - 4px); /* Ensure it doesn't exceed half width minus half the gap */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.modern-btn-secondary:hover {
  background: #f8f9fa;
  border-color: #d0d0d0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Plus icon for create button */
.modern-btn-secondary:not([id$="_offer"])::before {
  content: "+";
  font-weight: bold;
  font-size: 1.1rem;
}

/* Disabled state */
.modern-event-card.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.modern-btn-primary:disabled,
.modern-btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .modern-event-card {
    padding: 16px;
    margin-bottom: 12px;
  }
  
  .modern-event-title {
    font-size: 1.1rem;
    margin: 0 80px 10px 0; /* Adjusted right margin for mobile */
  }
  
  .modern-category-tag {
    top: 16px;
    right: 16px;
    font-size: 0.7rem;
    padding: 3px 10px;
  }
  
  .modern-action-buttons {
    flex-direction: column;
    gap: 8px;
  }
  
  .modern-btn-primary,
  .modern-btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ========================= */
/* Solid Design System */
/* ========================= */

:root {
  /* Sustainable palette */
  --leaf-50: #f0f7f2;
  --leaf-100: #e2f1e6;
  --leaf-200: #c6e4cf;
  --leaf-300: #9fd1b0;
  --leaf-400: #6fbc8d;
  --leaf-500: #3273dc;
  --leaf-600: #275cbf;
  --leaf-700: #1e4a8c;
  --leaf-800: #163d6b;
  --leaf-900: #0f2a4a;

  --teal-500: #2aa198;
  --sky-500: #6ec1e4;
  --amber-500: #f0b429;
  --danger-500: #e25252;

  --surface-solid: #ffffff;
  --surface-light: #f5f5f5;
  --border-solid: #dbdbdb;
  --shadow-solid: 0 2px 8px rgba(0, 0, 0, 0.1);
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --text-strong: #0f241a;
  --text-muted: #35594a;

  --brand-gradient: var(--leaf-600);
}

/* Background: solid */
html, body {
  background: #f5f5f5;
  color: var(--text-strong);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  min-height: 100%;
}

@keyframes ecoFloat {
  0% {
    background-position: 0% 0%, 100% 0%, 0% 0%;
  }
  50% {
    background-position: 10% 2%, 90% 3%, 50% 50%;
  }
  100% {
    background-position: 0% 4%, 100% 2%, 100% 100%;
  }
}

/* Solid helpers (applied to existing components via selectors below) */
.is-glass {
  background: var(--surface-solid);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-solid);
}

/* Navbar & hero */
.hero {
  background: white;
}
.hero .hero-head {
  position: sticky;
  top: 0;
  z-index: 30;
}
.navbar {
  min-height: 2.0rem;
  padding: 0rem 0;
  border-radius: var(--radius-lg);
  background: #ffffff !important;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.navbar.is-glass {
  background: var(--surface-solid) !important;
  border: 1px solid var(--border-solid);
  box-shadow: var(--shadow-solid);
}
.navbar.is-glass .navbar-menu {
  background: var(--surface-solid);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-solid);
}
.navbar-item, .navbar-link {
  color: var(--text-strong);
}
.navbar-dropdown {
  background: white;
  border: 1px solid #dbdbdb;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-solid);
}

/* Footer tabs */
.hero-foot {
  background: white !important;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
}
.tabs.is-boxed li a {
  background: white;
  border: 1px solid #e0e0e0;
  color: #666;
}
.tabs.is-boxed li.is-active a,
.tabs.is-boxed li a.is-active1 {
  background: #3273dc;
  color: white;
  border-color: #3273dc;
  border-radius: 8px;
}

/* Panels, boxes, cards */
.panel,
.box,
.message,
.notification,
.modal-card {
  background: var(--surface-solid);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-solid);
}
.panel .panel-heading {
  background: var(--brand-gradient) !important;
  color: white;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border: none !important;
}
.panel .panel-block {
  background: transparent;
}

/* Buttons */
.button.is-link,
.button.is-info {
  border: 1px solid transparent !important;
}
.button.is-link.is-light,
.button.is-info.is-light,
.button.is-outlined {
  background: var(--surface-light) !important;
  color: var(--text-strong) !important;
  border: 1px solid var(--border-solid) !important;
}
.button.is-danger { background: var(--danger-500) !important; color: #fff !important; }
.button.is-success { background: var(--leaf-600) !important; color: #fff !important; }
.button { position: relative; overflow: hidden; }
.button:hover { 
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); 
  transition: all .15s ease; 
}
.button:active { transform: translateY(0); }

/* Sheen on hover */
.button::before {
  content: "";
  position: absolute;
  top: -120%;
  left: -30%;
  width: 60%;
  height: 300%;
  transform: rotate(25deg);
  opacity: 0;
  pointer-events: none;
}
.button:hover::before {
  opacity: 1;
  transform: translateX(260%) rotate(25deg);
}

/* Ripple effect node - DISABLED */
.button .ripple,
.modern-btn-primary .ripple,
.modern-btn-secondary .ripple {
  display: none;
}

/* Inputs & selects */
.input,
.select select,
input[type="date"],
input[type="time"],
input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
textarea {
  background: var(--surface-solid) !important;
  border: 1px solid var(--border-solid) !important;
  border-radius: var(--radius-md) !important;
  color: var(--text-strong) !important;
}
.input::placeholder,
textarea::placeholder { color: #5c7467; }
.select:not(.is-multiple):not(.is-loading)::after { border-color: var(--text-muted); }

/* Badges, labels, small UI */

/* Grid layout for carpool tiles */
.carpool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.carpool-tile {
  background: var(--surface-solid);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-solid);
  padding: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carpool-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.container-calendar #left h1,
#event-section h3,
#reminder-section h3 { color: var(--leaf-700); background-color: white; }
#event-section,
#reminder-section { background: var(--surface-light); border: 1px solid var(--border-solid); }
.button-container-calendar button { background: var(--leaf-600); border-color: var(--leaf-600); }
.date-picker:hover { background-color: var(--leaf-600); color: #fff; }
.date-picker.selected { background-color: var(--leaf-100); outline-color: var(--leaf-400); }
.event-tooltip { background-color: #ffffff; }

/* Modals */
.modal-card-head,
.modal-card-foot { background: white; border: none; }
.modal-background { background-color: #000000 !important; opacity: 0.4; }

/* Hover affordances */
.hoverAddress:hover { background-color: #f0f0f0; cursor: pointer; }

/* Make white-background solid everywhere */
.white-background {
  background: var(--surface-solid) !important;
  border: 1px solid var(--border-solid);
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .button:hover { transform: none; }
  html, body { animation: none; }
}

/* Green bubble outline for CO2 savings display - only target the main navbar CO2 display, not dropdown */
.is-button.is-link > .navbar-item > a[href="/sustainabilityStatement"] {
  border-radius: 25px !important;
  padding: 2px 15px !important;
  background-color: rgba(48, 183, 0, 0.1) !important;
  transition: all 0.3s ease !important;
}

.is-button.is-link > .navbar-item > a[href="/sustainabilityStatement"]:hover {
  background-color: rgba(48, 183, 0, 0.2) !important;
  box-shadow: 0 2px 8px rgba(48, 183, 0, 0.3) !important;
}

/* Ensure dropdown menu sustainability statement link has black styling */
.navbar-dropdown .navbar-item[href="/sustainabilityStatement"] {
  color: #363636 !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0.375rem 1rem !important;
}

.navbar-dropdown .navbar-item[href="/sustainabilityStatement"]:hover {
  color: #363636 !important;
  background-color: #f5f5f5 !important;
}

/* Disable all animations and spinners that could cause flashing */
.button.is-loading::after,
.control.is-loading::after,
.loader,
.select.is-loading::after {
  display: none !important;
}

/* Disable all Bulma spinAround animations */
@keyframes spinAround {
  from { transform: rotate(0deg); }
  to { transform: rotate(0deg); }
}

/* Disable all progress bar animations */
.progress:indeterminate {
  animation: none !important;
  background-image: none !important;
}

/* Disable any other potential flashing animations */
* {
  animation-duration: 0s !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
}

/* Allow only specific safe animations */
.leaf,
.equivalent-card,
.modern-event-card,
.back-button,
.modern-btn-primary,
.modern-btn-secondary {
  animation-duration: revert !important;
  animation-delay: revert !important;
  animation-iteration-count: revert !important;
}

/* ========================= */
/* Extracted Inline Styles from EJS Files */
/* ========================= */

/* index.ejs styles */
.navbar-item.nav-link {
  color: #363636 !important;
  font-weight: 600;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
  margin-right: 15px;
  position: relative;
  background: none !important; /* Remove any background */
  padding: 0 16px; /* Remove padding that might be causing the grey areas */
}

.navbar-item.nav-link::before {
  content: '';
  position: absolute;
  top: 25%;
  height: 50%;
  left: 0;
  right: 0;
  border-radius: 6px;
  background-color: rgba(54, 54, 54, 0.1);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: -1;
}

.navbar-item.nav-link:hover::before {
  opacity: 1;
}

.navbar-item.nav-link.active {
  color: #3273dc !important;
  background: none !important; /* Remove any active background */
}

.navbar-item.nav-link.active::before {
  background-color: rgba(48, 183, 0, 0.1) !important;
  opacity: 1;
}

.navbar-item.nav-link.active:hover::before {
  background-color: rgba(48, 183, 0, 0.15) !important;
}
/* Optional: Keep the subtle lift effect on the main element */
.navbar-item.nav-link:hover {
  transform: translateY(-1px);
}

#eventsJS {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  grid-auto-rows: 260px;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 60vh;
  padding-right: 8px;
}

.event-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  padding: 12px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.event-card .event-title {
  font-weight: 700;
  color: #3273dc;
  margin-bottom: 6px;
}

.events{
  padding: 10px;
}

.event-card .event-meta {
  color: #666;
  font-size: 0.9rem;
  margin-top: auto;
}

.navbar .navbar-brand .title {
  font-size: 1.9rem;
  margin-top: 1rem;
}

#createEventButton {
  margin-left: 8px;
}

#eventsJS::-webkit-scrollbar {
  width: 6px;
}

#eventsJS::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

#eventsJS::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

#eventsJS::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.logo-container {
  position: relative;
  display: flex;
  align-items: center;
}

.title-with-logo {
  margin-left: 10px;
  margin-bottom: 5px;
}

.info-button {
  position: absolute;
  top: 5px;
  right: -25px;
  background-color: transparent;
  border: none;
  border-radius: 4px;
  font-size: 1.0em;
  color: #3273dc;
  cursor: pointer;
}

.navbar-center {
  flex-grow: 1;
  justify-content: center;
  display: flex;
}

.co2-item {
  margin-top: 0.8rem;
}

.co2-link {
  font-size: 1em;
  color: #30B700;
  float: right;
  display: flex;
  align-items: center;
  margin-right: 15px;
  text-decoration: none;
}

.co2-leaf-icon {
  color: #30B700;
  margin-right: 10px;
}

.co2-savings-text {
  font-size: 0.9em;
  font-weight: bold;
  color: #30B700;
}

.user-buttons {
  margin-right: 0px;
}

.user-button {
  background: #3273DC;
}

.user-button-icon {
  margin-left: 5px;
}

.dropdown-filler {
  width: 130px;
  background-color: transparent;
  height: 20px;
  position: absolute;
  margin-top: -15px;
}

.hero-body-padding {
  padding-bottom: 80px;
}

.container-full-width {
  margin-top: 0px;
  width: 100%;
}

.create-event-margin {
  margin-bottom: 0px;
}

.upcoming-events-title {
  margin-top: -20px;
  margin-bottom: 10px;
}

.upcoming-events-h1 {
  color: black;
  text-align: left;
  margin-left: 0;
}

.search-and-create-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  margin-bottom: 15px;
  width: 100%;
}

.search-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-icon {
  margin-right: 6px;
  color: black;
}

.search-icon i {
  font-size: 1.2em;
  color: black;
}

.search-input {
  border: 1px solid #dbdbdb;
  border-radius: 6px;
  padding: 8px 12px;
  background: white;
  color: black;
  width: 250px;
}

.modal-background-dark {
  background-color: rgba(10,10,10,.50);
}

.modal-heading-offer,
.modal-heading-register {
  padding: 15px;
  padding-left: 20px;
  display: table;
}

.modal-heading-icon,
.modal-register-icon {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}

.modal-heading-icon {
  position: absolute;
}

.modal-car-icon {
  float: left;
  transform: translate(0px,5px);
}

.modal-delete-right {
  float: right;
}

.carpool-inputs-margin {
  margin-right: 10px;
}

.carpool-panel-block {
  border-radius: 5px;
  padding: 0px;
}

.field-margin-bottom {
  margin-bottom: 10px;
}

.pickup-options-container {
  display: flex;
  gap: 10px;
}

.modal-footer-custom,
.modal-edit-footer {
  background-color: white;
  border-width: 1px;
  padding: 10px;
}

.modal-buttons-left,
.modal-edit-buttons {
  margin-left: 0px;
}

.modal-button-primary,
.modal-edit-apply,
.disclaimer-button {
  background: #3273DC;
}

.disclaimer-button {
  margin-top: 20px;
  margin-bottom: -20px;
}

.modal-users-icon {
  float: left;
  position: absolute;
  transform: translate(0px, -10px);
}

.register-overflow {
  overflow: auto;
}

/* signin.ejs styles */
.signin-logo-top {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
  margin-top: 20px;
}

.signin-panel-heading {
  background: #3273DC;
}

.signin-logo-bottom {
  margin-top: -20px;
  transform: translate(-6px,10px);
}

.signin-leaf-link {
  font-size: 1em;
  color: #30B700;
  float: right;
}

.signin-description {
  text-align: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 5px;
  margin-bottom: 5px;
}

.signin-button {
  margin: 5px;
  margin-top: 5px;
  width: calc(100% - 10px);
}

/* mycarpools.ejs styles (additional to existing) */
.mycarpools-container {
  margin-top: 0px;
  width: 100%;
}

.mycarpools-columns {
  margin-top: -30px;
}

.mycarpools-column {
  overflow: auto;
}

.carpool-card-modern {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.carpool-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
}

.carpool-title {
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.carpool-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.carpool-content {
  padding: 0 24px 24px 24px;
}

.carpool-space {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-edit-heading {
  padding: 15px;
}

.modal-edit-delete-right {
  float: right;
}

.edit-route-container {
  display: flex;
  gap: 10px;
}

.edit-field-margin {
  margin-bottom: 18px;
}

.delete-carpool-margin {
  margin-bottom: 0px;
}

.delete-button-margin {
  margin-bottom: 10px;
}

.pending-badge-hidden {
    background: #ff3860;
    color: white;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 0.8em;
    margin-left: 5px;
    display: none;
}

.black-link {
    color: black;
}

.modal-field-margin {
    margin-bottom: 10px;
}

.modal-close-btn {
    float: right;
}

.disclaimer-close-btn {
    background: #3273DC;
    margin-top: 20px;
    margin-bottom: -20px;
}

/* Fix button movement on hover by maintaining consistent dimensions */
.disclaimer-close-btn:hover {
    transform: translate(-50%, -50%) !important;
    box-shadow: none !important;
}

/* CO2 styling for carpool cards - preserves original alignment but adds navbar styling */
.co2-link-2 {
  display: inline-flex;
  align-items: center;
  color: #30B700;
  text-decoration: none;
  border-radius: 25px;
  padding: 2px 15px;
  background-color: rgba(48, 183, 0, 0.1);
  transition: all 0.3s ease;
}

.co2-link-2:hover {
  background-color: rgba(48, 183, 0, 0.2);
  box-shadow: 0 2px 8px rgba(48, 183, 0, 0.3);
}

.co2-leaf-icon-2 {
  color: #30B700;
  margin-right: 8px;
}

.co2-savings-text-2 {
  color: #30B700;
  font-weight: bold;
  font-size: 0.875rem;
}