/* ──────────────
   Layout & Containers
──────────────── */
.syllabus-teacher .box {
  background: #fff;
  padding: 1rem;
  margin: 1.5rem 0;
  border: 1px solid #ddd;
  border-radius: 6px;
}

/* ──────────────
   Editable Table
──────────────── */
#st_ta_table td[contenteditable] {
  background: #f8f8f8;
  cursor: text;
}
#st_ta_table .st-del-row {
  cursor: pointer;
  color: #b32d2e;
}
.ta-topic,
.ta-assignment {
  position: relative;
  padding-left: 28px;
}
.ta-content {
  display: inline-block;
  padding-left: 20px;
  min-width: 90%;
}

/* ──────────────
   Drag & Drop
──────────────── */
.drag-handle {
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  cursor: move;
  opacity: 0.6;
  user-select: none;
}
.drag-handle:hover {
  opacity: 1;
}
.being-dragged {
  opacity: 0.4;
}
.drag-target {
  outline: 2px dashed #0071a1;
}

/* ──────────────
   Syllabus Table (Preview/Readonly)
──────────────── */
.st-syllabus .grayed {
  background: #7b7b7b !important;
  color: white;
}
#st_syllabus_wrap table {
  border-collapse: collapse;
  width: 100%;
}
#st_syllabus_wrap th {
  background-color: white !important;
  color: black !important;
  font-weight: bold !important;
  border: 1px solid black;
  text-align: center;
}

#st_syllabus_wrap td {
  border: 1px solid rgb(130, 130, 130);
}
#st_syllabus_wrap tbody tr:first-child td {
  border-top: 3px solid black;
}

/* Thick box styling for Monday–Friday rows */
/* Monday (start of block): top + sides */
#st_syllabus_wrap tr.week-box-start td:first-child {
  border-left: 3px solid black;
}
#st_syllabus_wrap tr.week-box-start td:last-child {
  border-right: 3px solid black;
}
#st_syllabus_wrap tr.week-box-start td {
  border-top: 3px solid black;
}
/* Tuesday–Thursday: sides only */
#st_syllabus_wrap tr.week-box-middle td:first-child,
#st_syllabus_wrap tr.week-box-end td:first-child {
  border-left: 3px solid black;
}
#st_syllabus_wrap tr.week-box-middle td:last-child,
#st_syllabus_wrap tr.week-box-end td:last-child {
  border-right: 3px solid black;
}
/* Friday (end of block): bottom only (plus left/right above) */
#st_syllabus_wrap tr.week-box-end td {
  border-bottom: 3px solid black;
}

.widefat th,
.widefat td {
  padding: 0.5rem;
}

/* ──────────────
   Buttons & Icons
──────────────── */
#st_copy_clip .dashicons {
  vertical-align: text-bottom;
  margin-right: 4px;
}

/* ──────────────
   Modern Form Elements
──────────────── */
/* SELECT */
.custom-select {
  margin-top: 5px !important;
  border: 1px solid #ced4da !important;
  border-radius: 50px !important;
  padding: 0.85rem 1.25rem !important;
  font-size: 1rem !important;
  font-family: Roboto, sans-serif !important;
  background-color: #fff !important;
  color: #25218f !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%2325218f" 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;
  width: auto !important;
  height: auto !important;
  display: block !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}
.custom-select:focus {
  border-color: #2ead66 !important;
  box-shadow: 0 0 0 0.2rem rgba(46, 173, 102, 0.25) !important;
  outline: none !important;
}

/* RADIO */
.custom-radio {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  width: 22px !important;
  height: 22px !important;
  border: 2px solid #25218f !important;
  border-radius: 50% !important;
  background: #fff !important;
  position: relative !important;
  cursor: pointer !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  margin-right: 8px !important;
  vertical-align: middle !important;
}
.custom-radio:checked {
  background-color: #2ead66 !important;
  border: 2px solid #2ead66 !important;
}
.custom-radio:checked::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 5px auto;
  border-radius: 50%;
  background: #fff;
}
.custom-radio:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px #2ead66 !important;
}

/* CHECKBOX */
.custom-checkbox {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  width: 22px !important;
  height: 22px !important;
  border: 2px solid #25218f !important;
  border-radius: 6px !important;
  background: #fff !important;
  cursor: pointer !important;
  position: relative !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  margin-right: 8px !important;
  vertical-align: middle !important;
}
.custom-checkbox:checked {
  background-color: #2ead66 !important;
  border: 2px solid #2ead66 !important;
}
.custom-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  display: block;
}
.custom-checkbox:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px #2ead66 !important;
}

/* ──────────────
   Labels
──────────────── */
label {
  font-family: Roboto, sans-serif !important;
  font-size: 1rem !important;
  color: #25218f !important;
  font-weight: 500 !important;
  margin-top: 0.5rem !important;
  margin-bottom: 0.25rem !important;
  margin-right: 1rem !important;
  vertical-align: middle !important;
  cursor: pointer !important;
}

/* ──────────────
   Utility/State Classes
──────────────── */
.ta-ignored {
  opacity: 0.5;
}