/** BASE TEMPLATE CLASSES */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.no_margins {
    margin: 0%;
}

.main_container {
flex: 1;
display: flex;
justify-content: center;  /* Horizontally center the content */
align-items:flex-start;      /* Vertically center the content */
/* min-height: 50vh;*/
}


.main_content {
display: flex;    
flex-direction: column;
width: 80%;
  

padding: 20px;
box-sizing: border-box;


}

/* The wrapper uses flexbox to manage the layout */
.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* At least the full viewport height */
}


/* Footer stays at the bottom */
footer {
  flex-shrink: 0; /* Prevents the footer from shrinking */
}

body {
  font-family: Arial, sans-serif;
}
/*************************************** HEADER CLASSES */


.header_nav_area {
    color: white;
  
    background-color: #313131;
  
    display: flex;
  
    justify-content: space-between;
  
    border-radius: 0;
    padding-left: 5px;
  
    font-family: Arial, Helvetica, sans-serif;
  }
  
  .header_nav_area_ul{
    /*height: 39px;*/
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    padding: 0;
    margin: 0;
    
  }
  
  
  .header_nav_area_cell {
    display: inline-block;
    
    padding-top: 10px;
    padding-bottom: 10px;
    color: #f4f4f4;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  .header_nav_area_cell:hover{
    background-color: #f4f4f4;
    color: #313131;
  }
  
  .header_nav_area_cell:hover a {
   
    color: #313131;
  }
  
  
  .header_nav_area_cell_link {
    
    text-decoration: none;
    color: #f4f4f4;
    margin-right: 10px;
    margin-left: 10px;
    font-size: 0.66vw;
    font-weight: 300;
   
  
    line-height: 1.7;
    word-wrap: break-word;
  }
  
  .header_nav_area_cell_link:hover{
    color: #313131;
  }
  
  .header_nav_area_cell_with_right_border{
    
        border-right: 1px solid #575757;
        padding-right: 5px;
      
  }
  
  
  .cu_header_redbar{
    height: 3px;
    background: #cf112d;
  }
  
  
  .scs_logo_in_header{
    height: 72px;
    
   
  }
  
  
  .scs_logo_in_header_list{
    display: flex;
    align-items: center;
    justify-content: left;
    list-style-type: none;
    padding: 0;
    margin-top: 0;
    margin-bottom: 10px;
  }
  
  .scs_logo_in_header_list_item{
   
    display: inline-block;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px; /* Specify a height that suits your needs */
    margin: 10px;    
    cursor: pointer;  
  
  }
  
  .scs_logo_in_header_list_item_text_link{
    text-decoration: none;
    color: #575757;
    font-size: 1.5rem;
    font-family: Arial, Helvetica, sans-serif;
  }
  
  
  .scs_logo_in_header_list_item_text_link:hover{
  
    color: #e91c24;
  }
  
  
  
  .scs_logo_bar{
    height: 1px;
    background:#949494;
    opacity: 0.4;
  }
  

/*************************************** FOOTER CLASSES */

.footer_branding_div {

    background-image: url('/static/roomBookingApp/waves.svg');
    /* Set the size of the background image */
    background-size: 100% auto;
    /* Set the position of the background image */
    background-position: center bottom;
  
    background-repeat: no-repeat;
    padding: 25px 0 110px 0;
  
    bottom: 0;
    min-height: 50vh;
    
    /*position: absolute;*/
  }
  
  .b-footer__block {
    padding: 0px 30px;
  }
  
  
  .footer_list_on_same_line{
    list-style-type: none; 
    margin: 0;
  }
  
  .footer_list_item {
    text-transform: uppercase !important;
    line-height: 2.2em;
    color: #949494;
    margin-bottom: 0;
    font-family: Arial, Helvetica, sans-serif;
  }
  
  .footer_list_item_link {
    text-decoration: none;
    outline: none;
    color: white;
    cursor: pointer;
  }
  
  .footer_list_item_link:hover{
  
    color: #e91c24;
  }
  
  
  .footer_list_left_item_divider {
    border-right: 1px solid #949494;
    padding-right: 10px;
    margin-right: 10px;
  }
  
  .footer_list_item_same_line {
    display: inline;
  }
  
  
  
  .footer_link_item {
  
    font-size: 0.75rem;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 500;
    color: #ffffff;
    display: inline-block;
    padding: 0 10px;
    margin: 0;
  
    outline: none;
    line-height: 1.8;
   
  }
  
  
  .footer_link_item_link {
    border-bottom: 1px solid white;
    display: inline-block;
    text-decoration: none;
    color: #ffffff;
  }
  
  
  .footer_link_item_link:hover {
    color: #949494;
    border-bottom: 1px solid #949494;
    cursor: pointer;
  }
  
  

/* ############################################### END OF BASE STYLING */

/* Base */
body {
  font-family: Arial, sans-serif;
  margin: 30px;
}

/* Django error bucket (kept hidden, used by JS) */
.django-errors {
  display: none;
}

/* Heading */
.page-title {
  margin: 0 0 16px 0;
}
.page-subtitle {
  font-weight: normal;
  color: #555;
}

/* Table */
.booking-table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed; 
}

.booking-table th,
.booking-table td {
  border: 1px solid #ccc;
  padding: 6px;
  text-align: center;
  position: relative;
}

.booking-table .email-col {
  width: 220px;             /* adjust: 180–280 is typical */
  max-width: 220px;
  white-space: nowrap;      /* no wrapping */
  text-overflow: ellipsis;  /* ... */
  overflow: hidden;
}

/* Give the time column a fixed width */
.booking-table th:first-child,
.booking-table td.time-col {
  width: 140px;                
}

.booking-table th {
  background-color: #f0f0f0;
}

.booking-table tr:nth-child(even) {
  background-color: #fafafa;
}

.booking-table td.cell-active .book-btn {
  display: block;
}

/* Give active cell a clear highlight on tap */
.booking-table td.cell-active {
  background-color: #eaf3ff;
}

/* Improve tap usability: make button easier to hit */
@media (hover: none) {
  .book-btn {
    padding: 10px 14px;
    border-radius: 10px;
  }
}

.time-col {
  background-color: #f9f9f9;
  font-weight: bold;
  width: 140px;
}

.occupied {
  background-color: #f7f7f7;
}

/* Cell hover behavior */
.course-tag {
  font-weight: 600;
  color: #333;
  display: block;
}

.booking-table td:hover .course-tag {
  opacity: 0;
}

.booking-table td:hover {
  background-color: #eaf3ff;
}

/* Book button */
.book-btn {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}

.booking-table td:hover .book-btn {
  display: block;
}

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


/* Modal (Booking + Login Required) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 300px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.close {
  float: right;
  font-size: 1.3rem;
  cursor: pointer;
  color: #888;
}

.close:hover {
  color: #000;
}

.modal-content input {
  width: 100%;
  padding: 8px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.modal-content button {
  margin-top: 10px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 8px 12px;
  cursor: pointer;
}

.modal-content button:hover {
  background: #0056b3;
}

.context {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 8px;
}

/* Toolbar */
.toolbar {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-spacer {
  flex: 1;
}

/* Login/My Bookings buttons */
.login-btn {
  background: #111827;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.login-btn:hover {
  background: #1f2937;
}

/* Error modal (kv-modal) */
.kv-modal {
  position: fixed;
  inset: 0;
  display: none; /* toggled by JS */
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  z-index: 9999;
}

.kv-modal--open {
  display: flex;
}

.kv-modal__dialog {
  width: min(520px, 92vw);
  background: #fff;
  border-radius: 16px;
  padding: 20px 20px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  position: relative;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.kv-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.kv-modal__list {
  margin: 12px 0 8px;
  padding-left: 20px;
}

.kv-modal__list li {
  margin: 6px 0;
}

.kv-modal__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.kv-btn {
  border: 0;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  background: #2563eb;
  color: #fff;
}

.kv-btn:hover {
  filter: brightness(1.05);
}

#errorModalTitle {
  margin: 0 28px 6px 0;
  font-size: 18px;
}




/* ############ My Account classes ############*/
/* Reusable misc helpers */
.muted { opacity: 0.7; }
.inline-form { display: inline; }
.locked { opacity: 0.6; }

/* Optional: a red danger button for destructive actions */
.danger-btn {
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
}

.danger-btn:hover {
  filter: brightness(0.95);
}



/* ###################### BUTTONS AND FORMS ####*/

/************************** Buttons and Input Fields */

.coolRoundedButton {
  display: inline-block;
  background-color: #e91c24; /* Red background */
  color: #f4f4f4; /* White text */
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  transition: all 0.3s ease; /* transitions all properties */
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* subtle shadow */
  border: 2px solid transparent; /* invisible border */
  align-self: flex-start;
  cursor: pointer;
}

.coolRoundedButton:hover {
  background-color: #f4f4f4; /* White background */
  color: #e91c24; /* Red text */
  transform: scale(1.05); /* slightly enlarges the button on hover */
  font-weight: bold; /* bold text on hover */
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* more pronounced shadow on hover */
  border: 2px solid #e91c24; /* visible red border on hover */
}

/* If you ever put a link INSIDE a button (not recommended), this keeps it styled */
.coolRoundedButton:hover a {
  color: #e91c24;
}

.reverseCoolRoundedButton {
  display: inline-block;
  background-color: #f4f4f4;
  color: #e91c24;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  transition: all 0.3s ease; /* transitions all properties */
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* subtle shadow */
  border: 2px solid transparent; /* invisible border */
  align-self: flex-start;
  cursor: pointer;
}

.reverseCoolRoundedButton:hover {
  background-color: #e91c24;
  color: #f4f4f4;
  transform: scale(1.05);
  font-weight: bold;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  border: 2px solid #f4f4f4;
}

.reverseCoolRoundedButton:hover a {
  color: #f4f4f4;
}

/* Inputs */
.cool-text-input-field {
  padding: 10px 12px;
  margin: 6px 0;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  color: #333;
  background-color: #f8f9fa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.cool-text-input-field:focus {
  border-color: #e91c24;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  outline: none;
}

.cool-text-input-field-long {
  width: 600px;
  padding: 10px 12px;
  margin: 6px 0;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  color: #333;
  background-color: #f8f9fa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.cool-text-input-field-long:focus {
  border-color: #e91c24;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  outline: none;
}

.dropdown-input-field {
  padding: 10px 12px;
  margin: 6px 0;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  color: #333;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.dropdown-input-field:focus {
  border-color: #e91c24;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  outline: none;
}

.dropdown-input-field-half {
  width: 150px;
  padding: 10px 12px;
  margin: 6px 0;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  color: #333;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.dropdown-input-field-half:focus {
  border-color: #e91c24;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  outline: none;
}

.login-email-field {
  width: 40%;
  padding: 10px;
  margin: 5px 0;
  border: 2px solid #e91c24; /* Updated border color */
  border-radius: 8px;
  background-color: #f8f9fa;
  background-image: linear-gradient(to right, #f8f9fa, #e9ecef);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s, box-shadow 0.3s;
  font-size: 16px;
  color: #495057;
}

.login-email-field::placeholder {
  color: #6c757d;
  opacity: 1;
}

.login-email-field:hover,
.login-email-field:focus {
  border-color: #c41411; /* Darker shade of the same red for hover/focus */
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  outline: none;
}


/* Form layout helpers */
.form-field {
  display: flex;
  align-items: center;
  justify-content: start;
  margin-bottom: 10px;
}

.form-field label {
  min-width: 150px;
  margin-right: 20px;
}

/* Default sizes when used together */
.cool-text-input-field,
.dropdown-input-field {
  width: 300px;
  padding: 10px;
}



.subtleRoundedButton {
  display: inline-block;
  background-color: #f3f4f6; /* soft neutral gray */
  color: #374151; /* slate text */
  padding: 9px 18px;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  border: 1px solid #d1d5db;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.subtleRoundedButton:hover {
  background-color: #ffffff;
  color: #111827;
  border-color: #9ca3af;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.subtleRoundedButton:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}



/* Page header row (title left, button right) */
.page-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

/* Optional: if you want the h2 to not add extra vertical space */
.page-title {
  margin: 0;
}

/* Space between filter area and results */
.section-gap {
  height: 18px;
}

/* Optional: make empty message breathe a bit */
.empty-state {
  margin-top: 6px;
}


.text-center {
  text-align: center;
  
}

.capacity-note {
  margin: 8px 0 14px 0;
  font-size: 0.9rem;
  color: #4b5563; /* slate */
}

.capacity-note strong {
  color: #111827;
}
.capacity-note {
    background-color: #f9f9f9;  /* Very light gray background */
    border-left: 3px solid #ddd; /* Subtle accent border on the left */
    padding: 10px 15px;          /* Padding around the text */
    margin-bottom: 20px;              /* Vertical spacing */
    font-family: Arial, sans-serif; /* Font choice */
    font-size: 0.9em;            /* Slightly smaller font size */
    color: #555;                 /* Subtle text color */
}

.capacity-note  h4 {
    margin-top: 0;               /* No margin on top of the heading */
    margin-bottom: 5px;          /* Small margin below the heading */
    font-size: 1em;              /* Slightly smaller heading size */
    color: #555;                 /* Subtle heading color */
}
.capacity-note p {
    margin: 0;                   /* No margin around the paragraph */
    line-height: 1.4;            /* Line height for readability */
}





/* ############### New modal classes */

.duration-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 6px 0 12px;
  font-size: 0.8em;   
}

.duration-option {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 6px;
  border: 1px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
}


/* ########### new table colors */

/* Base cell */
.booking-cell{
  position: relative;
  padding-left: 14px; /* room for stripe */
}

/* Stripe: default hidden */
.booking-cell::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  border-radius: 6px;
  opacity: 0;
}

/* Mine: stripe visible */
.booking-cell.slot-mine::before{
  opacity: 1;
}

/* Full: stripe visible + muted */
.booking-cell.slot-full::before{
  opacity: 1;
}

/* If both classes exist, full can “win” visually by ordering in CSS */

.booking-cell.slot-full::before{
  background: #8a8a8a; /* full stripe */
}

/* Full slot look — visually blocked */
.booking-cell.slot-full{
  background: rgba(0, 0, 0, 0.08);   /* darker cell */
  color: #6f6f6f;                   /* lighter text */
  opacity: 1;                       /* keep readable */
}

/* Disable button styling (so it doesn’t look clickable) */
.book-btn:disabled{
  cursor: not-allowed;
  opacity: 0.7;
}

/* “You” badge */
.slot-badge{
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.6;
  background: rgba(45, 127, 249, 0.12);
  border: 1px solid rgba(45, 127, 249, 0.25);
}

.booking-cell.slot-mine{
  box-shadow: 0 0 0 2px rgba(45, 127, 249, 0.6) inset;
  background: rgba(45, 127, 249, 0.08);
  color: #1f4fd8;
}



.course-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.dropdown-input-field-quarter {
  width: 110px;
  padding: 8px 10px;
  margin: 6px 0;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  color: #333;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.dropdown-input-field-quarter:focus {
  border-color: #e91c24;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  outline: none;
}
.dropdown-input-field-full {
  width: 100%;
  padding: 10px 12px;
  margin: 6px 0;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  color: #333;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.dropdown-input-field-full:focus {
  border-color: #e91c24;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  outline: none;
}



.status-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.9em;
  display: inline-block;
}
.status-active { background: rgba(0, 200, 0, 0.12); }
.status-inactive { background: rgba(200, 0, 0, 0.12); }



.course-stack{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.course-line{
  font-size: 0.85rem;
  line-height: 1.2;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0,0,0,0.05);
  white-space: nowrap;
}


/* When the slot is full, make the pills match */
.booking-cell.slot-full .course-line{
  background: rgba(255,255,255,0.35);
  color: #5f5f5f;
}

.course-stack{ transition: opacity 120ms ease; }
.booking-table td:hover .course-stack{ opacity: 0; }
