/* colors */
/* 
    blue:  #25218f
    green: #2ead66
*/
/* fonts */
/*
    font-family: Avenir !important; 
*/

/* WHOLE SITE */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Full viewport height */
}

.container-fluid {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  height: auto !important;
}

.section-card {
  background-color: white !important;
  padding: 30px !important;
  border-radius: 57px !important;
  box-shadow: #25218f 0px 0px 6px -2px !important;
}

.flex-section {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  flex-wrap: wrap !important;
}

/* SUCCESS TRACKER */
.count-display {
  position: absolute;
  display: inline-flex;
  min-width: 100px;
  min-height: 100px;
  background-color: white;
  padding: 20px;
  color: #25218f;
  font-weight: bold;
  font-size: 42px;
  line-height: 1.2;
  border-radius: 50%;
  border: solid 2px #25218f;
  transform: translateY(+75%);
  transform: translateX(-50%);
  text-align: center;
  align-items: center;
  justify-content: center;
}

/* MODALS */
.modal-content {
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15) !important;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: none !important;
  padding: 1.5rem !important;
  background-color: #25218f !important;
}
.modal-title {
  font-size: 1.2rem !important;
  font-weight: bold !important;
  color: white !important;
}
.modal-header button.close {
  width: 32px !important;
  height: 32px !important;
  background-color: white !important;
  border: none;
  border-radius: 50%; /* Makes it a circle */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: black !important;
  font-size: 1.2rem !important;
  opacity: 1 !important;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.2); /* Optional: adds a subtle shadow */
  transition: background-color 0.2s ease;
  margin-right: 5px !important;
}
.modal-header button.close:hover {
  background-color: #f0f0f0 !important;
  cursor: pointer;
}

.close {
  opacity: 1 !important;
}
.modal-body {
  padding: 2rem !important;
}
.model-body-label {
  font-size: 1.5rem !important;
  font-weight: bold !important;
}
.modal-footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  border-top: none !important;
  padding: 1.5rem !important;
  background-color: #f0f0f0 !important;
}
.modal-footer .btn {
  color: white !important;
  font-weight: 500 !important;
  border: none !important;
  transition: all 0.3s ease !important;
  position: relative !important;
}
.modal-footer .cancel-btn {
  margin-right: auto !important;
  background-color: #6c757d !important;
  min-width: 120px !important;
  padding: 1.1rem 1.5rem !important;
}
.modal-footer .cancel-btn:hover {
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4) !important;
  transform: translateY(-1px) !important;
}
.save-btn {
  background-color: #25218f !important;
  min-width: 120px !important;
  padding: 1.5rem 1.5rem !important;
}
.save-btn:hover {
  box-shadow: 0 0 12px #2ead66 !important;
  transform: translateY(-1px) !important;
}
.btn[type="submit"]:not(:last-child) {
  margin-right: 10px !important;
}
.modal-footer .btn:active {
  transform: translateY(1px) !important;
  box-shadow: none !important;
}
/*
.custom-radio input[type="radio"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  width: 24px !important;
  height: 24px !important;
  border: 3px solid #85d492 !important;
  border-radius: 50% !important;
  display: inline-block !important;
  position: relative !important;
  cursor: pointer !important;
  transition: all 0.2s ease-in-out !important;
  background-color: white !important;
}
.custom-radio input[type="radio"]:checked {
  background-color: #2ead66 !important;
  border: 3px solid #2ead66 !important;
}
.custom-radio label {
  font-size: 18px !important;
  margin-left: 8px !important;
  cursor: pointer !important;
}
.custom-radio input[type="radio"]:focus {
  outline: none !important;
  box-shadow: 0 0 5px #2ead66 !important;
}
*/

/* FORMS */
.form-control {
  border: 2px solid #25218f !important;
  padding-left: 5px !important;
  font-size: 0.9rem !important;
  height: auto !important;
}
.form-group {
  display: flex !important;
  align-items: center !important;
  margin-bottom: 4px !important;
  gap: 0.5rem !important;
}
.checkbox-container {
  display: flex !important;
  align-items: center !important; /* Ensures vertical alignment */
}
.checkbox {
  margin-right: 10px !important; /* Space between checkbox and label */
}
.form-group label {
  flex: 1 !important;
}
.form-group .form-control {
  flex: 2 !important;
}
input[type="number"] {
  padding: 0.3rem !important;
  width: 275px !important;
  font-size: 1rem !important;
}
select {
  border: 2px solid #25218f !important;
  padding: 0px 2px !important;
  font-size: 1rem !important;
}
textarea {
  border: 2px solid #25218f !important;
  padding: 0px 2px !important;
  font-size: 0.6rem !important;
}

/* Base button style */
.btn {
  text-align: center !important;
  transition: all 0.2s ease-in-out !important;
  font-family: Roboto, sans-serif !important;
  border-radius: 999px !important; /* pill shape */
  font-size: 1rem !important;
  padding: 1rem 2rem !important;
  border: none !important;
  background-color: #25218f !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Hover state */
.btn:hover {
  background-color: #1b1a7a !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
}

/* Active/clicked state */
.btn:active,
.btn.active {
  background-color: #141266 !important;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.2) !important;
  color: white !important;
}

/* Optional focus outline for accessibility */
.btn:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(37, 33, 143, 0.4) !important;
}

/* SELECT OPTIONS */
.select-option-style {
  padding-left: 5px !important;
  padding-bottom: 3px !important;
  font-family: Roboto !important;
  font-size: 1rem !important;
}

/* DROPDOWNS that includes many names */
.name-select-dropdown {
  padding-left: 5px !important;
  padding-bottom: 2px !important;
  padding-right: 2.5rem !important;
  font-family: Roboto !important;
  font-size: 1rem !important;
  appearance: none !important; /* Removes default styling */
  -webkit-appearance: none !important; /* For Safari */
  -moz-appearance: none !important; /* For Firefox */
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23097416" height="28" viewBox="0 0 24 24" width="28" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 1.75rem !important;
}

/* SELECTIZE */
.selectize-control.single .selectize-input {
  padding-left: 3rem !important;
  padding-right: 1.5rem !important;
  font-family: Roboto !important;
  font-size: 1rem !important;
  height: auto !important;
  min-height: 44px !important;
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  border-radius: 57px !important;
  border: 1px solid #ced4da !important;
  background: white !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  width: 100% !important;
  overflow: hidden !important;
}

/* Fix for placeholder clipping */
.selectize-control.single .selectize-input input {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  font-size: 1rem !important;
  font-family: Roboto !important;
  box-sizing: border-box !important;
}

/* Magnifying glass icon using background-image */
.selectize-control.single .selectize-input::before {
  content: "" !important;
  position: absolute !important;
  left: 1rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23777' class='bi bi-search' viewBox='0 0 16 16'><path d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.15a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-size: 16px 16px !important;
  width: 16px !important;
  height: 16px !important;
}

/* Custom dropdown arrow (replaces SVG background) */
.selectize-control.single .selectize-input:after {
  border: none !important;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23097416" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') !important;
  background-repeat: no-repeat !important;
  background-size: 16px !important;
  position: absolute !important;
  right: 1rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 16px !important;
  height: 16px !important;
  pointer-events: none !important;
}

/* Hide original select element */
.selectize-control > select {
  display: none !important;
}

/* DROPDOWNS */
.selectize-dropdown {
  font-family: Roboto !important;
  font-size: 1rem !important;
  z-index: 1060 !important; /* Above modals */
  border: 1px solid #ced4da !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
  background-color: #ffffff !important;
  padding: 0.25rem 0 !important;
  overflow: hidden !important;
}
.selectize-dropdown-content > div[data-selectable] {
  padding: 0.75rem 1.5rem !important;
  margin-bottom: 0.25rem !important;
  cursor: pointer !important;
  transition: background 0.2s ease, color 0.2s ease !important;
  border-radius: 0.5rem !important; /* square by default */
}
.selectize-dropdown-content > div[data-selectable]:last-child {
  margin-bottom: 0;
}
.selectize-dropdown-content > div[data-selectable]:hover {
  background-color: #2ead66 !important;
  color: white !important;
}
.selectize-dropdown .active {
  background-color: #2ead66 !important;
  color: white !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
}

/* SELECT for Term and Year */
.dropdown-container {
  display: flex !important;
  gap: 1rem !important;
  align-items: flex-end !important;
  flex-wrap: wrap !important;
  margin-bottom: 1rem !important;
}
.select-wrapper {
  display: flex !important;
  flex-direction: column !important;
  font-family: Roboto, sans-serif !important;
}
.select-label {
  font-size: 0.875rem !important;
  color: #495057 !important;
  font-weight: 500 !important;
  margin-bottom: 0.25rem !important;
}
.select-wrapper select {
  padding: 0.85rem 1.25rem !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  height: auto !important;
  border-radius: 50px !important;
  border: 1px solid #ced4da !important;
  background-color: #fff !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23097416" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 1.25rem !important;
  padding-right: 2.5rem !important;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out !important;
}
.select-wrapper select:focus {
  border-color: #2ead66 !important;
  box-shadow: 0 0 0 0.2rem rgba(46, 173, 102, 0.25) !important;
  outline: none !important;
}

/* BADGES */
.badge {
  display: inline-block !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  padding: 0.4rem 0.75rem !important;
  border-radius: 999px !important; /* pill shape */
  text-align: center !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  font-family: Roboto, sans-serif !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.badge-success {
  background: linear-gradient(135deg, #6dc493, #219653) !important;
}

.badge-danger {
  background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
}

/* TABLES */
table {
  background: white !important;
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
  font-size: 0.8rem !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
  border-radius: 0.75rem !important;
}
/* === Table Header === */
thead {
  position: sticky !important;
  top: 0 !important;
  z-index: 10 !important;
  background: #2ead66 !important;
  color: white !important;
}
thead tr {
  background: #2ead66 !important;
}
th,
td {
  /*padding: 1rem 1.25rem !important;*/
  text-align: left !important;
  vertical-align: middle !important;
}
th {
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 1rem 1rem !important;
  text-align: left !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #e0e0e0 !important;
  font-family: "Avenir", "Roboto", sans-serif !important;
}
/* === Header Link Styling === */
th a {
  color: inherit !important;
  text-decoration: none !important;
  position: relative !important;
  transition: color 0.2s ease-in-out !important;
}
th a:hover {
  color: #25218f !important;
}
tbody tr {
  transition: background-color 0.2s ease !important;
  border-bottom: 1px solid #f0f0f0 !important;
}
tbody tr:hover {
  background-color: #f9f9f9 !important;
}
td {
  padding: 1rem !important;
  vertical-align: middle !important;
  font-family: "Avenir", "Roboto", sans-serif !important;
  color: #333 !important;
}
/* === Underlined Text (Clickable) === */
td u {
  color: #25218f !important;
  cursor: pointer !important;
  text-decoration: underline !important;
}
/* === Buttons in Table === */
.table-row-buttons {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}
tbody td button.btn {
  padding: 0.35rem 0.75rem !important;
  border-radius: 0.375rem !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  background-color: #2ead66 !important;
  color: white !important;
  border: none !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease-in-out !important;
}
tbody td button.btn:hover {
  background-color: #218838 !important;
}

/* === Scrollable Wrapper === */
.tableScroll {
  max-height: 70vh !important;
  overflow-y: auto !important;
  margin-bottom: 2rem !important;
  border-radius: 0.75rem !important;
  border: 1px solid #e0e0e0 !important;
}

/* === Table Caption === */
caption {
  caption-side: top !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  margin-bottom: 0.75rem !important;
  color: #333 !important;
  font-family: "Avenir", "Roboto", sans-serif !important;
  text-align: center !important;
}
/* === Responsive Design === */
@media screen and (max-width: 768px) {
  table {
    font-size: 0.75rem !important;
  }

  th,
  td {
    padding: 0.6rem !important;
  }

  tbody td button.btn {
    font-size: 0.65rem !important;
    padding: 0.25rem 0.5rem !important;
  }

  .table-row-buttons {
    flex-direction: column !important;
    gap: 0.25rem !important;
    align-items: flex-start !important;
  }
}

/* NOTES */
.note-card {
  border: 1px solid #dee2e6 !important;
  border-radius: 0.75rem !important;
  padding: 1rem !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
  transition: box-shadow 0.2s ease !important;
}
.note-card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2) !important;
  transform: translateY(-2px) !important;
}
.note-card p {
  font-size: 1rem !important;
  color: #333 !important;
  line-height: 1.5 !important;
  margin-bottom: 1rem !important;
}
.editnote {
  margin-right: 0.5rem !important;
  border-radius: 0.375rem !important;
  font-weight: 500 !important;
  padding: 0.3rem 0.75rem !important;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s !important;
}
.editnote:hover {
  background-color: #218838 !important;
  color: white !important;
  border-color: #6c757d !important;
}
.addNote {
  padding: 0.6rem 1rem !important;
  font-weight: 500 !important;
  border-radius: 0.5rem !important;
  box-shadow: 0 2px 5px rgba(0, 128, 0, 0.15) !important;
  transition: background-color 0.2s ease !important;
}
.addNote:hover {
  background-color: #218838 !important;
}

/* course-pill and dr-course-pill are implementd on viewCourses and viewStudents  */
.course-pill {
  display: inline-block;
  background-color: green;
  color: white;
  padding: 5px 10px;
  margin: 5px;
  border-radius: 20px;
  font-size: 16px;
}
.dr-course-pill {
  display: inline-block;
  background-color: blue;
  color: white;
  padding: 5px 10px;
  margin: 5px;
  border-radius: 20px;
  font-size: 16px;
}

/* Styles for the notice on insert-course-roster-shortcode.php */
.notice.notice-success {
  margin-top: 20px;
  background-color: #f0fdf4;
  border-left: 6px solid #10b981;
  padding: 1.5em;
  border-radius: 8px;
  font-family: "Segoe UI", Roboto, sans-serif;
  color: #065f46;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

.notice.notice-success h2 {
  margin-top: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #047857;
  margin-bottom: 1rem;
}

.notice.notice-success ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notice.notice-success li {
  padding: 0.4em 0;
  border-bottom: 1px solid #d1fae5;
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
}

.notice.notice-success li:last-child {
  border-bottom: none;
}

/* student-report list line */
.student-line {
  padding-block: 0.45rem;
  border-bottom: 1px solid #f1f1f1;
  font-size: 1.05rem;
  font-family: "Avenir", "Avenir Next", sans-serif;
}

.student-line:last-child {
  border-bottom: none;
}

/* optional: make the badge text a tad smaller for contrast */
.student-line .year-pill {
  font-size: 0.9em;
}