/** BASE TEMPLATE CLASSES */
html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden; /* Page itself never scrolls — each pane has its own scrollbar */
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
}

.no_margins {
    margin: 0%;
}

.main_container {
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;    /* Required for flex children to shrink below content size */
min-width: 0;     /* Prevent flex child from expanding .wrapper beyond viewport width */
overflow-y: auto;
overflow-x: hidden;
}


.main_content {
display: flex;
flex-direction: column;
flex: 1;
width: 80%;
min-width: 0;     /* Prevent content from expanding .main_container horizontally */
margin: 0 auto;

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


}

/* The wrapper uses flexbox to manage the layout */
.wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh; /* Exactly the viewport — no page-level overflow */
  position: relative;
  z-index: 1;
  overflow: hidden;
}


/* Footer scrolls with the content inside .main_container */
footer {
  flex-shrink: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #f5f4f2;
}

/* Centering the container */
.login-page-center {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50vh; /* Adjust based on your layout */
}

/* Style for the form box */
.login-form-box {
  background-color: #ffffff; /* Form box background color */
  border: 1px solid #ddd;    /* Optional border */
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  width: 100%;
  max-width: 483px;
  text-align: center;       /* Center content inside the form */
}

/*************************************** HEADER CLASSES */

.center-text {
  text-align: center;
  margin-bottom: 20px;
}


.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: max(0.66vw, 11px);
    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;
  }

  /* Hamburger button — hidden on wide screens */
  .hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 10px;
    margin-left: auto;
    flex-shrink: 0;
  }

  .hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #f4f4f4;
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  /* Animate into an X when open */
  .hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger-btn.open span:nth-child(2) { opacity: 0; }
  .hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  @media (max-width: 768px) {
    .hamburger-btn {
      display: block;
    }

    .header_nav_area {
      flex-wrap: wrap;
      align-items: center;
    }

    .header_nav_area_ul {
      display: none;
      flex-direction: column;
      width: 100%;
      border-top: 1px solid #444;
    }

    .header_nav_area_ul.open {
      display: flex;
    }

    .header_nav_area_cell {
      display: block;
      width: 100%;
      border-bottom: 1px solid #3d3d3d;
      padding-top: 0;
      padding-bottom: 0;
    }

    .header_nav_area_cell_link {
      display: block;
      padding: 10px 14px;
      margin: 0;
    }

    .header_nav_area_cell_with_right_border {
      border-right: none;
      padding-right: 0;
    }
  }


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

.footer_branding_div {
    background-image: url('/static/DSAAIapp/waves-fixed.png');
    background-size: 100% auto;
    background-position: center bottom;
    background-repeat: no-repeat;
    padding: 25px 0 110px 0;
    bottom: 0;
  }

  .wave-scroll-strip {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 400%;
    display: flex;
    pointer-events: none;
    z-index: -1;
    will-change: transform;
  }

  .wave-scroll-strip img {
    width: 25%;
    height: auto;
    min-height: 20vh;
    object-fit: cover;
    object-position: top;
    display: block;
    flex-shrink: 0;
  }

  .wave-scroll-strip img:nth-child(even) {
    transform: scaleX(-1);
  }
  
  .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;
  }
  




/************************** 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;
    }
    
    .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 */
    }
    
    .coolRoundedButton:hover a {
    color: #e91c24; /* Red text */
    }
    
    
    .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;
    }
    
    .reverseCoolRoundedButton:hover {
    background-color: #e91c24;
    color: #f4f4f4;
    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 #f4f4f4; /* visible border on hover */
    }
    
    .reverseCoolRoundedButton:hover a {
    color: #f4f4f4;
    }
    

    /*************************** INPUT FIELDS */


.cool-text-input-field {
  padding: 10px 12px;
  margin: 6px 0;
  border: 2px solid #ddd; /* Light grayish border for initial state */
  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; /* Theme color on focus */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .cool-text-input-field-long {
    width: 100%;
    max-width: 600px;
    padding: 10px 12px;
    margin: 6px 0;
    border: 2px solid #ddd; /* Light grayish border for initial state */
    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; /* Theme color on focus */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    
  
  
  .dropdown-input-field {
  padding: 10px 12px;
  margin: 6px 0;
  border: 2px solid #ddd; /* Light grayish border */
  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);
  }
  
  
  .dropdown-input-field-half {
  width: 150px; 
  padding: 10px 12px;
  margin: 6px 0;
  border: 2px solid #ddd; /* Light grayish border */
  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);
  }
  
  
  .login-email-field {
  width: 80%;
  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-field {
  display: flex;
  align-items: center; /* Align items vertically */
  justify-content: start; /* Align items horizontally */
  margin-bottom: 10px; /* Spacing between each field */
  }
  
  .form-field label {
  min-width: 150px; /* Adjust based on your requirement */
  margin-right: 20px; /* Space between label and input field */
  }
  .cool-text-input-field, .dropdown-input-field {
  width: 300px; 
  padding: 10px;
  }
  

  .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.full-width {
  grid-column: span 2;
}

.form-group label {
  margin-bottom: 6px;
  font-weight: 500;
}

/* =========================
   PAGE LAYOUT
   ========================= */

.courses-page {
  max-width: 1200px;
  margin: 2rem auto 3rem auto;
  padding: 0 1rem;
}

.page-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.page-title {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 800;
  color: #111111;
  letter-spacing: -0.025em;
}

.page-subtitle {
  margin: 0.4rem 0 0 0;
  color: #666;
  font-size: 1rem;
}

.admin-link {
  white-space: nowrap;
}


/* =========================
   FILTER CARD
   ========================= */

.filter-card {
  background: #ffffff;
  border: none;
  border-radius: 24px;
  padding: 1rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 12px 36px rgba(0,0,0,0.07);
  margin-bottom: 1.5rem;
}

.filter-bar {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-label-spacer {
  display: block;
  visibility: hidden;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  min-width: 180px;
}

.filter-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 0.4rem;
}

.filter-group select,
.filter-group input {
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  background: #fafafa;
  font-size: 0.95rem;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: #e8184d;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(232, 24, 77, 0.12);
}

.filter-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.filter-actions-btn {
  padding: 0.7rem 0.9rem;
  margin: 6px 0;
}


/* =========================
   ACTION CARD
   ========================= */

.action-card {
  background: #ffffff;
  border: none;
  border-radius: 24px;
  padding: 1.1rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 12px 36px rgba(0,0,0,0.07);
  margin-bottom: 1.5rem;
}

.action-card-header {
  margin-bottom: 1rem;
}

.action-card-header h2 {
  margin: 0;
  font-size: 1.1rem;
  color: #222;
}

.action-card-header p {
  margin: 0.35rem 0 0 0;
  color: #777;
  font-size: 0.95rem;
}

.action-button-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.action-button {
  text-decoration: none;
}


/* =========================
   TABLE CARD
   ========================= */

.table-card {
  background: #ffffff;
  border: none;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 12px 36px rgba(0,0,0,0.08);
}

.table-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid #efefef;
  background: linear-gradient(to bottom, #ffffff, #fafafa);
}

.table-card-header h2 {
  margin: 0;
  font-size: 1.15rem;
  color: #222;
}

.table-card-header p {
  margin: 0;
  color: #777;
  font-size: 0.95rem;
}

.table-scroll {
  overflow-x: auto;
}


/* =========================
   TABLE
   ========================= */

.modern-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.modern-table th,
.modern-table td {
  padding: 1rem;
  text-align: center;
  vertical-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.modern-table th {
  background: linear-gradient(135deg, #1a1c2e 0%, #2c2e40 100%);
  color: #d8dce8;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1rem;
}

.modern-table tbody tr:nth-child(even) {
  background: #fcfcfc;
}

.modern-table tbody tr:hover {
  background: #fdf0f3;
  transition: background-color 0.15s ease;
}

.modern-table td {
  color: #333;
  font-size: 0.95rem;
}

.course-title-cell {
  font-weight: 600;
  color: #1f1f1f;
}

.empty-state {
  text-align: center !important;
  color: #888;
  padding: 2rem !important;
}

/* =========================
   SORTABLE HEADERS
   ========================= */

.sort-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  transition: color 0.15s ease;
}

.sort-link:hover {
  color: #ffffff;
}

.sort-link.sort-active {
  color: #ffffff;
}

.sort-arrow {
  color: #e8184d;
  font-size: 0.8em;
}


/* =========================
   ACTIONS IN TABLE
   ========================= */

.table-action-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.inline-form {
  display: inline;
  margin: 0;
}

.table-action-btn {
  white-space: nowrap;
}


/* =========================
   NOTE STYLES
   ========================= */

.notes-stack {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.note {
  border-radius: 18px;
  border: 1px solid #ebebeb;
  background: #ffffff;
  padding: 1rem 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 8px 24px rgba(0,0,0,0.05);
}

/* --- Important / warning note --- */
.note-small {
  border-radius: 18px;
  border: none;
  border-left: 5px solid #e8184d;
  background: linear-gradient(135deg, #fff1f4 0%, #fff8f9 100%);
  padding: 1rem 1.25rem;
  color: #2e1219;
  box-shadow: 0 1px 4px rgba(232,24,77,0.07), 0 8px 28px rgba(232,24,77,0.1);
}

.note-small h3 {
  margin-top: 0;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8184d;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.note-small h3::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6em;
  height: 1.6em;
  background: #e8184d;
  color: #fff;
  border-radius: 50%;
  font-size: 0.78em;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: 0;
  text-transform: none;
}

.note-small p,
.note-small ul li {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #3d1520;
}

.note-small ul {
  padding-left: 1.2rem;
  margin: 0.3rem 0 0 0;
}

.note-small ul li {
  margin-bottom: 0.3rem;
}

/* --- Informational / low-key note --- */
.note-lowkey {
  border-radius: 18px;
  border: none;
  border-left: 5px solid #7b97c7;
  background: linear-gradient(135deg, #f2f5fc 0%, #f7f9fd 100%);
  padding: 0.9rem 1.1rem;
  color: #2a3548;
  box-shadow: 0 1px 4px rgba(123,151,199,0.08), 0 8px 24px rgba(123,151,199,0.1);
}

.note-lowkey h4 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a7aac;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.note-lowkey h4::before {
  content: "i";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6em;
  height: 1.6em;
  background: #7b97c7;
  color: #fff;
  border-radius: 50%;
  font-size: 0.78em;
  font-weight: 700;
  font-style: italic;
  flex-shrink: 0;
  letter-spacing: 0;
  text-transform: none;
}

.note-lowkey p {
  margin: 0;
  line-height: 1.6;
  font-size: 0.9rem;
}

.colored_link {
  text-decoration: none;
  color: #e8184d;
  font-weight: 600;
}

.colored_link:hover {
  text-decoration: underline;
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 768px) {
  .main_content {
    padding: 12px;
  }

  .page-title {
    font-size: 1.6rem;
  }

  .filter-bar,
  .action-button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group,
  .filter-actions,
  .action-button {
    width: 100%;
    box-sizing: border-box;
  }

  .filter-actions button,
  .action-button {
    width: 100%;
    box-sizing: border-box;
  }

  .modern-table th,
  .modern-table td {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  .table-action-group {
    flex-direction: column;
    align-items: stretch;
  }

  .table-action-btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .modern-table {
    table-layout: auto;
  }

  .modern-table thead {
    display: none;
  }

  .modern-table tbody,
  .modern-table tr,
  .modern-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .modern-table tbody tr {
    border-radius: 14px;
    border: 1px solid #ebebeb;
    margin-bottom: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  }

  .modern-table td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid #f2f2f2;
    text-align: right;
    font-size: 0.9rem;
  }

  .modern-table td:last-child {
    border-bottom: none;
  }

  .modern-table td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #888;
    flex-shrink: 0;
    text-align: left;
    padding-top: 0.1em;
  }

  .modern-table td.empty-state {
    justify-content: center;
    text-align: center;
  }

  .modern-table td.empty-state::before {
    display: none;
  }

  .course-title-cell {
    text-align: right;
  }
}

/*********************** IMPORT CLASSES */
.pageTitle {
    margin-bottom: 20px;
}

/* FORM LAYOUT */
.styledForm {
    background: #fafafa;
    padding: 16px;
    border-radius: 12px;
}

.formRow {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
}

.formGroup {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.formGroup label {
    font-size: 0.85rem;
    margin-bottom: 4px;
    color: #555;
}

.formGroup select,
.formGroup input {
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* ACTIONS */
.formActions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.spacedTop {
    margin-top: 20px;
}

/* TABLE IMPROVEMENTS */
.importTable {
    margin-top: 10px;
}

.centerText {
    text-align: center;
}

.tableRowHover:hover {
    background-color: #f5f5f5;
}

/* CHECKBOX */
.checkboxLarge {
    transform: scale(1.2);
    cursor: pointer;
}

/* EMPTY STATE */
.emptyState {
    text-align: center;
    padding: 20px;
    color: #888;
}

/* DIVIDER */
.sectionDivider {
    margin: 20px 0;
    opacity: 0.2;
}

/* SUMMARY TEXT */
.importSummary {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* =========================
   LOGIN / SENT-LINK PAGE
   ========================= */

.login-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 1rem;
}

.login-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 12px 36px rgba(0,0,0,0.08);
}

.login-card .page-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.login-card .page-subtitle {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.login-form .form-group label {
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #333;
}

.login-form .form-group input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  background: #f8f9fa;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form .form-group input:focus {
  outline: none;
  border-color: #e91c24;
  box-shadow: 0 0 0 3px rgba(233, 28, 36, 0.12);
}

.field-errors {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0 0;
  color: #c0392b;
  font-size: 0.88rem;
}

/* MESSAGES */
.messages-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.message {
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.message-warning {
    background-color: #fff8e1;
    border: 1px solid #f0b429;
    color: #7d5a00;
}

.message-success {
    background-color: #e8f5e9;
    border: 1px solid #4caf50;
    color: #1b5e20;
}

.message-error {
    background-color: #fdecea;
    border: 1px solid #e53935;
    color: #7f0000;
}


/* =============================================
   FUTURISTIC: ANIMATED GRADIENT MESH
   ============================================= */

.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.b1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle at center, rgba(233, 28, 36, 0.13), transparent 65%);
  top: -200px; left: -150px;
  animation: drift1 22s ease-in-out infinite alternate;
}

.b2 {
  width: 800px; height: 800px;
  background: radial-gradient(circle at center, rgba(30, 80, 220, 0.09), transparent 65%);
  top: -300px; right: -200px;
  animation: drift2 28s ease-in-out infinite alternate;
}

.b3 {
  width: 600px; height: 600px;
  background: radial-gradient(circle at center, rgba(140, 60, 220, 0.08), transparent 65%);
  bottom: -100px; left: 20%;
  animation: drift3 32s ease-in-out infinite alternate;
}

.b4 {
  width: 500px; height: 500px;
  background: radial-gradient(circle at center, rgba(255, 140, 60, 0.07), transparent 65%);
  bottom: 20%; right: 10%;
  animation: drift4 19s ease-in-out infinite alternate;
}

@keyframes drift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(120px, 160px) scale(1.18); }
}
@keyframes drift2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-90px, 120px) scale(0.88); }
}
@keyframes drift3 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(140px, -100px) scale(1.22); }
}
@keyframes drift4 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-70px, -120px) scale(0.92); }
}


/* =============================================
   FUTURISTIC: GLASSMORPHISM CARDS
   ============================================= */

.filter-card,
.action-card,
.table-card,
.login-card,
.login-form-box {
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.table-card-header {
  background: rgba(255, 255, 255, 0.60);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.note {
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}

.note-small {
  background: rgba(255, 241, 244, 0.80);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-left: 5px solid #e8184d;
  border-top: 1px solid rgba(232, 24, 77, 0.18);
  border-right: 1px solid rgba(232, 24, 77, 0.12);
  border-bottom: 1px solid rgba(232, 24, 77, 0.12);
  box-shadow: 0 2px 16px rgba(232, 24, 77, 0.07);
}

.note-lowkey {
  background: rgba(242, 245, 252, 0.80);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-left: 5px solid #7b97c7;
  border-top: 1px solid rgba(123, 151, 199, 0.2);
  border-right: 1px solid rgba(123, 151, 199, 0.13);
  border-bottom: 1px solid rgba(123, 151, 199, 0.13);
  box-shadow: 0 2px 16px rgba(123, 151, 199, 0.08);
}


/* =============================================
   FUTURISTIC: STAGGERED TABLE ROW REVEAL
   ============================================= */

@keyframes rowReveal {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modern-table tbody tr {
  animation: rowReveal 0.38s ease both;
}

.modern-table tbody tr:nth-child(1)  { animation-delay: 0.04s; }
.modern-table tbody tr:nth-child(2)  { animation-delay: 0.09s; }
.modern-table tbody tr:nth-child(3)  { animation-delay: 0.14s; }
.modern-table tbody tr:nth-child(4)  { animation-delay: 0.19s; }
.modern-table tbody tr:nth-child(5)  { animation-delay: 0.24s; }
.modern-table tbody tr:nth-child(6)  { animation-delay: 0.28s; }
.modern-table tbody tr:nth-child(7)  { animation-delay: 0.32s; }
.modern-table tbody tr:nth-child(8)  { animation-delay: 0.36s; }
.modern-table tbody tr:nth-child(9)  { animation-delay: 0.40s; }
.modern-table tbody tr:nth-child(10) { animation-delay: 0.43s; }
.modern-table tbody tr:nth-child(11) { animation-delay: 0.46s; }
.modern-table tbody tr:nth-child(12) { animation-delay: 0.48s; }
.modern-table tbody tr:nth-child(n+13) { animation-delay: 0.50s; }

/* =============================================
   CSV IMPORT
   ============================================= */

.csv-import-info {
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(123, 151, 199, 0.07);
  border-left: 3px solid var(--accent, #7b97c7);
  border-radius: 6px;
  font-size: 0.9rem;
}

.csv-import-info code {
  display: block;
  margin: 0.4rem 0;
  font-family: monospace;
  color: var(--accent, #7b97c7);
}

.csv-import-note {
  margin-top: 0.6rem;
  color: var(--text-muted, #888);
  font-size: 0.85rem;
}

.file-input {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.95rem;
}

.spacedBottom {
  margin-bottom: 1rem;
}

