/* Teacher Dashboard Styles */
.manage-teachers-container {
  font-family: inherit;
  background: #fff;
  padding: 32px 32px 24px 32px;
  border-radius: 10px;
  box-shadow: 0 2px 12px #00000012;
  max-width: 1200px;
  margin: auto;
  margin-bottom: 200px;
}
#teachers-table,
#teachers-table th,
#teachers-table td {
  border: none !important;
}
#teachers-table th {
  padding-left: 10px;
  border-bottom: 1px solid #f5f5f5 !important;
}
.manage-teachers-container h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}
.manage-teachers-actions {
  display: flex;
  float: right;
  gap: 10px;
  margin-bottom: 18px;
}
.btn {
  border: none;
  border-radius: 6px;
  padding: 4px 10px !important;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.btn-primary {
  background: #2eaef1 !important;
  color: #fff !important;
  border: none !important;
}
.btn-secondary {
  background: #fff;
  color: #333;
  border: 1px solid #bdbdbd !important;
}
.manage-teachers-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.manage-teachers-table th,
.manage-teachers-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
  font-size: 15px;
}
.manage-teachers-table th {
  background: #fff;
  color: #1a1a1a;
  font-weight: 600;
  border-bottom: 2px solid #e3e8ee;
}
.manage-teachers-table tr:last-child td {
  border-bottom: none;
}
.manage-teachers-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
}
.action-buttons {
  display: flex;
  gap: 10px;
}
.btn-reinvite {
  background: #2eaef1 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 30px !important;
  float: right;
  margin-right: 20px;
}
.btn-remove {
  border: none !important;
  outline: none !important;
  padding-left: 2px;
  float: right;
  margin: 5px 5px 0px 0px;
  box-shadow: none !important;
}
.btn-remove:hover {
  background-color: #fff !important;
  color: #ccc !important;
}

.dataTables_wrapper .dataTables_filter {
  float: left;
  text-align: left;
  margin-bottom: 16px;
}
.dataTables_wrapper .dataTables_filter label {
  font-size: 15px;
  color: #333;
  font-weight: 500;
}
.dataTables_wrapper .dataTables_length {
  float: right;
  margin-bottom: 16px;
}
.dataTables_wrapper .dataTables_length label {
  font-size: 15px;
  color: #333;
  font-weight: 500;
}
.dataTables_wrapper .dataTables_info {
  padding-top: 8px;
  font-size: 14px;
  color: #666;
}
.dataTables_wrapper .dataTables_paginate {
  float: right;
  padding-top: 8px;
  margin-top: 10px;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
  border: none;
  background: #fff;
  color: #2eaef1;
  font-weight: 500;
  border-radius: 4px;
  margin: 0 2px;
  padding: 4px 12px;
  transition: background 0.2s, color 0.2s;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #2eaef1;
  color: #fff !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  color: #bdbdbd !important;
}
.wdm-table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.wdm-pagination {
  display: flex;
  align-items: center;
}
.wdm-pagination-page {
  margin: 0 10px;
  font-weight: bold;
}
.wdm-modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wdm-modal-content {
  background: #fff;
  padding: 30px 30px 20px 30px;
  border-radius: 8px;
  min-width: 320px;
  width: 60vw;
  max-width: 900px;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
  box-sizing: border-box;
}
.wdm-close {
  position: absolute;
  right: 18px;
  top: 10px;
  font-size: 28px;
  color: #888;
  cursor: pointer;
}
#wdm-add-teacher-form label {
  display: block;
  margin-top: 12px;
  margin-bottom: 4px;
}
#wdm-add-teacher-form input {
  width: 100%;
  padding: 17px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 10px;
}
#wdm-add-teacher-form .wdm-add {
  background: #2eaef1;
  color: #fff;
}
#wdm-notification-container {
  padding: 0.5em;
  background-color: inherit;
  width: 20em;
  text-align: center;
  opacity: 1;
  font-weight: 500;
}

.failure-msg {
  border: 1px solid rgb(250, 13, 13);
  color: rgb(250, 13, 13);
}
.success-msg {
  border: 1px solid rgb(43, 136, 66);
  color: rgb(43, 136, 66);
}

/* Multiple Teacher Records Styles */
.teacher-record {
  margin-bottom: 32px;
  padding: 0 0 18px 0;
  border: none;
  border-radius: 0;
  background: none;
  border-bottom: 2px solid #e3e8ee;
  display: grid;
  grid-template-columns: 1fr 1fr 80px;
  grid-template-rows: auto auto;
  gap: 18px 24px;
  align-items: end;
}
.teacher-record:last-child {
  border-bottom: none;
}
.teacher-field-group {
  display: flex;
  flex-direction: column;
}
.teacher-field-group label {
  font-size: 14px;
  color: #888;
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.teacher-field-group input {
  font-size: 18px;
  padding: 14px 16px;
  border: 1.5px solid #bdbdbd;
  border-radius: 6px;
  margin-bottom: 0;
}
/* .teacher-record .teacher-field-group:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
} */
.teacher-record .teacher-field-group:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}
.teacher-record .teacher-field-group.email-group {
  grid-column: 1;
  grid-row: 2;
}
.remove-teacher-row,
.remove-teacher-row:hover {
  grid-column: 2;
  grid-row: 2;
  background: none;
  color: #222;
  border: none;
  border-radius: 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  margin-bottom: 1.5em;
  padding: 0;
  font-weight: 500;
  cursor: pointer;
  box-shadow: none;
}
.remove-teacher-row .dashicons {
  font-size: 20px;
  color: #222;
}
.wdm-add-row {
  background: none;
  color: #1a7ec7;
  border: 1px solid black;
  border-radius: 0;
  outline: none;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 32px 0;
  font-weight: 500;
  cursor: pointer;
  box-shadow: none;
}
.wdm-add-row .dashicons {
  font-size: 20px;
}
.teacher-form-actions {
  display: flex;
  gap: 18px;
  margin-top: 18px;
}
.wdm-cancel {
  background: #fff;
  color: #222;
  border: 1.5px solid #222;
  border-radius: 4px;
  padding: 7px 32px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
#wdm-add-teacher-submit.wdm-add {
  background: #2eaef1;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 7px 32px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
#wdm-add-teacher-submit.wdm-add:hover {
  background: #1993d2;
}
#wdm-add-teacher-submit.wdm-add.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

#wdm-add-teacher-submit.wdm-add.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -10px;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: wdm-button-loading-spinner 0.6s linear infinite;
}

@keyframes wdm-button-loading-spinner {
  from {
    transform: rotate(0turn);
  }
  to {
    transform: rotate(1turn);
  }
}
.product-quantity{
  display: none;
}


/* Loader Styles */
.wdm-loader-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.wdm-loader-overlay.active {
    display: flex;
}

.wdm-loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: wdm-spin 1s linear infinite;
}

@keyframes wdm-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

