:root {
  --primary-blue: #003AFF;
  --primary-green: #B7D72F;
  --secondary-green: #26C643;
  --primary-red: #E21111;
  --primary-indigo: #4338CA;
}

@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("/MADC-Fonts-Library-MPLUSRounded1c-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "M PLUS Rounded 1c Bold";
  src: url("/MADC-Fonts-Library-MPLUSRounded1c-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "M PLUS Rounded 1c Bolder";
  src: url("/MADC-Fonts-Library-MPLUSRounded1c-ExtraBold.ttf") format("truetype");
  font-weight: bolder;
  font-style: normal;
}

@font-face {
  font-family: "Roboto";
  src: url("/MADC-Fonts-Library-Roboto-Regular.ttf") format("truetype");
  font-style: normal;
}

#madc-family-portal-student-text .required {
  color: var(--primary-red);
}

.w-80{
    width:80%;
}

.waitlist-btn {
  background-color: var(--primary-red) !important;
  color: white !important;
}

.action-btn {
  border-radius: 25px;
  color: white;
  font-size: 0.9rem;
  padding: 6px 20px;
  width: 100px; 
  overflow: hidden; 
  text-overflow: ellipsis;
}

.link-to-app {
    background-color: var(--primary-blue) !important;
    color: white !important;
    border-radius: 25px;
    font-size: 0.9rem;
    width: 180px !important;
    padding: 6px 20px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.full-btn {
  font-size: 0.9rem;
  padding: 5px 32px;
  width: 100px !important; 
  white-space: nowrap;
}

.apply-btn {
  background-color: var(--primary-blue) !important;
  color: white !important;
}

.sidebar {
  width: 280px;
  min-height: 100vh;
  background: #f8f9fa;
  transition: all 0.3s;
}

.nav-link {
  color: #333;
  padding: 15px 20px;
  transition: all 0.3s;
  border-radius: 5px;
  margin: 5px 15px;
}

.sidebar .nav-link:hover,
.nav .nav-link:hover {
  background: #80808033 !important;
  color: #000000 !important;
  text-decoration: none !important;
}

.nav-link.active {
  background: #80808019 !important;
  color: #000000 !important;
}

.nav-link i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.menu-icon {
  width: 22px;
  height: 22px;
  margin-right: 2px;
}

.button-stack {
  display: flex;
  flex-direction: column;
}

.text-overflow-wrap {
    overflow-wrap: normal;
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    min-height: auto;
  }
}


.modal-dialog {
  max-width: 700px;
}

.modal-content {
  font-family: 'Roboto', sans-serif;
}

.modal h5 {
  font-size: 1rem;
  font-weight: 600;
}

.modal .text-muted {
  font-size: 0.9rem;
}

.program-tags .badge {
  font-weight: normal;
  text-wrap:auto!important;
  text-align:left!important;
}

.schedule-info {
  font-size: 0.9rem;
  margin-top: 25px;
}

.contact-info a {
  font-size: 0.9rem;
}

.organization-info {
  background-color: #E8E8E8;
  border-radius: 15px !important;
}

    .organization-info p {
        color: #898989;
        font-size: 16px;
        overflow-wrap: anywhere !important;
    }


.text-overflow-wrap {
    overflow-wrap: anywhere!important;
}

.error-text {
    font-size: 16px;
    color: red;
}

.program-dates-details{
    font-size:14px;
}

#madc-family-portal-program-modal #madc-family-portal-new-schedule {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    max-height: 300px;
    overflow-y: auto;
}

.program-card-container .program-type {
  white-space: nowrap;
}

#madc-family-portal-program-cost {
  float: none;
  margin-left: 5px
}

#madc-family-portal-program-age {
  color: #adadad;
  font-size: 14px;
}

.modal-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1060;
}

.spinner-wrapper {
  text-align: center;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
}

.hide {
  display: none !important;
}

.cost-details {
  display: flex;
  align-items: center;
}

.modal-header .btn-close {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
}

.modal-header .modal-title {
  font-size: 1.5rem;
  font-family: 'Roboto', sans-serif;
}


.madc-family-portal-background-container {
    background-color: #f5f5f5;
    padding: 20px;
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    margin-top:90px;
}

.madc-family-portal-content-container {
        background-color: white;
        border-radius: 8px;
        padding: 24px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        width: 100%;
 }


.madc-family-portal-background-container h1 {
  color: darkslategrey;
  font-weight: 700;
  display: flex;
  margin-top: 10px;
  font-size: 32px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.madc-family-portal-background-container h2 {
  font-size: 24px;
  margin-top: 0;
}

.program-tags {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.program-type-school {
  background-color: var(--primary-blue);
}

/* Update the badge styles */
.program-type-school {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.program-type-img {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  margin-top: -2px;
}

.program-type-community {
  background-color: var(--primary-red);
}

.program-type-parks {
  background-color: var(--secondary-green);
}

.program-type-library {
    background-color: #ff8400;
}

.not-registered {
    background-color: #71728c;
    font-weight:normal;
}

.madc-family-portal-filter-active-btn {
  background-color: #305FFF;
}

#madc-family-portal-filter-controls .form-check-label {
  color: #000;
  font-size: 14px;
  font-weight: 500;
}

#madc-family-portal-filter-controls button {
  border: 1px solid #E0E0E0;
  color: #666666;
  background-color: #FFF;
  font-size: 14px;
  font-weight: 500;
}

.filter-controls .menu-icon {
  width: 16px !important;
  height: 16px !important;
}

.madc-family-portal-map-and-program-card .card-body,
.list-group-item {
  background-color: #FFFFFF !important;
}

.madc-family-portal-map-and-program-card .card {
  background-color: #FCFBFB !important;
}

.table-striped>tbody>tr:nth-of-type(odd),
.table-striped>tbody>tr:nth-of-type(odd)>td {
  --bs-table-striped-bg: transparent !important;
  background-color: transparent !important;
}

/* Success Modal Styling */

.select-wrapper {
  position: relative;
  width: fit-content;
}

.select-wrapper select {
  width: 200px;
}

#madc-family-portal-student-message {
  margin-bottom: 0;
  font-size: 0.875rem;
  line-height: 1.2;
}

#madc-family-portal-student-message i {
  font-size: 0.875rem;
}

#madc-family-portal-student-selector {
  max-width: 200px;
}

#madc-family-portal-success-modal {
  align-items: center;
  justify-content: center;
}

/* Footer Styling */

#madc-family-portal-footer {
  background-color: #f5f5f5;
}

#madc-family-portal-footer-container {
  max-width: 90%;
  margin: 0 auto;
  overflow: hidden;
}

#madc-family-portal-email-link {
  color: #254D4E;
}

#madc-family-portal-follow-text {
  color: #254D4E;
}

.madc-family-portal-logos-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.madc-family-portal-logo-1 {
  max-height: 65px;
  width: auto;
}

.madc-family-portal-logo-2 {
  max-height: 60px;
  width: auto;
}

.madc-family-portal-logo-3 {
  max-height: 60px;
  width: auto;
}

.madc-family-portal-footer-link {
  color: black;
  font-size: 16px;
  font-weight: bold;
}

.madc-family-portal-copyright {
  font-size: 16px;
  font-weight: bold;
}

#madc-family-portal-enrollment-message-not-allow {
  display: inline-flex;
  align-items: center;
  background-color: #FEF2F2;
  color: #e90000;
  padding: 8px 16px;
  border: 1px solid #FCA5A5;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 0;
}

#madc-family-portal-enrollment-message-not-allow::before {
  font-family: "Font Awesome 5 Free";
  content: "\f05a";
  margin-right: 8px;
  color: #DC2626;
  font-weight: 900;
}

.text-overflow-wrap{
    overflow-wrap:normal;
}

/* Responsive Header Styling */

.navbar-toggler {
  background-color: #fff !important;
  border: none !important;
}

/* Responsive Header Styling */
/* Desktop styles */
@media (min-width: 1200px) {
  .navbar-expand-xl .navbar-collapse {
    display: flex !important;
    position: static !important;
    background-color: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    width: auto !important;
  }

  .navbar-expand-xl .navbar-toggler {
    display: none !important;
  }

  .navbar-expand-xl .navbar-nav .dropdown-menu {
    position: absolute !important;
    float: none;
    width: 250px;
    margin-top: 0;
  }

  .navbar-expand-xl #navbar {
    width: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

/* Mobile styles */
@media (max-width: 1199.98px) {
  .navbar-expand-xl .navbar-collapse {
    display: none;
    position: absolute;
    top: 92px;
    left: 0;
    right: 0;
    background-color: white;
    padding: 1rem;
    z-index: 1000;
    border-top: 1px solid rgba(0, 0, 0, .1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100% !important;
  }

  .navbar-expand-xl .navbar-collapse.show {
    display: block !important;
  }

  .navbar-expand-xl .navbar-nav {
    width: 100%;
  }

  .navbar-expand-xl .navbar-nav .nav-item {
    width: 100%;
  }

  .navbar-expand-xl .navbar-nav .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    background-color: transparent;
    border: none;
    box-shadow: none;
  }

  .navbar-expand-xl #navbar {
    width: 100%;
    overflow-y: auto;
  }

  .navbar-expand-xl .navbar-toggler {
    display: block;
  }
}

.navbar-toggler {
  z-index: 100;
  padding: 0.5rem;
  border: 1px solid rgba(0, 0, 0, .1);
  position: relative;
}

.navbar-toggler:focus {
  outline: none;
}

.most-dropdown-divider {
    border-color: #c8c8c8!important;
}
/* Responsive Footer Styling */
@media (max-width: 991px), (min-resolution: 150%) {
  #madc-family-portal-footer-container {
    max-width: 95%;
  }

  .madc-family-portal-logos-container {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .madc-family-portal-logo-1 {
    max-height: 55px;
    width: auto;
  }

  .madc-family-portal-logo-2 {
    max-height: 50px;
    width: auto;
  }

  .madc-family-portal-logo-3 {
    max-height: 50px;
    width: auto;
  }
  
  .col-lg-6.col-md-6.col-sm-12 {
    margin-bottom: 1rem;
  }
}

@media screen and (min-resolution: 150%) {
  .footer-bottom .row:first-child {
    flex-direction: column;
  }

  .footer-bottom .col-lg-6 {
    width: 100%;
    text-align: left;
    margin-bottom: 1.5rem;
  }

  .madc-family-portal-logos-container {
    justify-content: flex-start;
    margin-top: 2rem;
  }
  .d-flex.align-items-center {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .footer-bottom {
    padding: 2rem 1rem !important;
  }

  #madc-family-portal-footer-container {
    max-width: 100%;
    padding: 0 1rem;
  }

  .madc-family-portal-logos-container {
    flex-direction: column;
    align-items: center;  
    gap: 1rem;
    margin: 1.5rem auto; 
  }

  .col-lg-6.col-md-6.col-sm-12 .d-flex {
    justify-content: center;
    text-align: center;
  }

  .d-flex.align-items-center {
    flex-direction: row; 
    justify-content: center;
    flex-wrap: wrap; 
  }

  .mb-2 {
    margin-bottom: 1rem !important;
  }

  .col-sm-12 {
    text-align: center;
    margin-bottom: 1rem;
  }

  .col-sm-12:last-child nav {
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 1rem !important;
  }

  .madc-family-portal-footer-link {
    font-size: 14px;
  }

  .madc-family-portal-copyright {
    font-size: 14px;
  }

  .madc-family-portal-logo-1,
  .madc-family-portal-logo-2,
  .madc-family-portal-logo-3 {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .footer-bottom {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  .col-sm-12:last-child nav {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem !important;
  }

  .madc-family-portal-logos-container {
    flex-direction: column;
    align-items: center;  
    gap: 1.5rem;
    width: 100%; 
  }

  .madc-family-portal-logo-1,
  .madc-family-portal-logo-2,
  .madc-family-portal-logo-3 {
    height: 40px;
    width: auto;
    margin: 0 auto; 
  }
  .justify-content-end {
    justify-content: center !important;
  }
}

@media (max-width: 767px) {
  .d-flex.align-items-center.mb-2.fs-6,
  .d-flex.align-items-center.fs-6 {
    justify-content: center;
    text-align: center;
    width: 100%;
    display: inline-flex !important;
    margin-right: 1rem;
  }

  .madc-family-portal-copyright {
    text-align: inline;
    width: 100%;
  }

  .text-black {
    display: block;
  }

  /* Center the navigation links container */
  .justify-content-end.gap-4 {
    justify-content: center !important;
  }

  #madc-family-portal-footer-container .row:first-child {
    text-align: center;
  }
}

/* Modal Responsive Styling */

@media (max-width: 425px) {
  .modal-footer {
    padding: 0 1rem 1rem 1rem !important;
  }

  .modal-footer .d-flex {
    justify-content: center !important;
    gap: 0.5rem;
  }

  .student-select-container {
    margin-bottom: 0.5rem;
  }

  .student-select-container h5 {
    margin-bottom: 0.5rem !important;
  }

  .modal-footer .d-flex .d-flex {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }

  .button-stack {
    flex-direction: row;
    gap: 0.75rem;
    margin: 0;
  }

  #madc-family-portal-favorite-btn {
    padding: 0.375rem 0.75rem;
    margin: 0 !important;
  }

  .full-btn, .action-btn {
    padding: 0.375rem 1rem;
    margin: 0 !important;
  }

  /* Adjust select dropdown to match button heights */
  #madc-family-portal-student-selector {
    height: 38px;
    padding: 0.375rem 1.75rem 0.375rem 0.75rem;
  }
}