.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-content: center;
  z-index: 999999;
}

.modal-content {
  margin: auto;
  margin-bottom: 10vh;
  padding: 10px;
  background: #aedfff;
  width: 90%;
  max-width: fit-content;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(0);
  transition: transform 0.2s ease-in-out;
  z-index: 100000;
  position: relative;
  max-height: 90vh;
  overflow-y: hidden;
}

.modal-content form,
.modal-content .form-clone {
  background: #f0f0f0;
  padding: 5px;
  position: relative;
  max-height: calc(90vh - 20vh);
  overflow-y: auto;
}

.modal-actions {
  margin-top: 5px;
  text-align: right;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  position: fixed;
  padding: 5px 10px;
  bottom: 0px;
  right: 0px;
  background-color: #aedfff;
  width: 100%;
}

.modal-content .modal-form-1 {
  max-height: calc(90vh - 30vh);
}

.modal-content .form-group {
  width: 98%;
  box-sizing: border-box;
  padding: 0;
}

.modal-content h2 {
  padding: 0 10px 5px 0;
  margin: 0;
  font-size: 14px;
  color: #1f1f1f;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.2;
}

.modal-content h3 {
  padding: 0 10px 5px 0;
  margin: 0;
  font-size: 15px;
  color: #1f1f1f;
  font-weight: 500;
  line-height: 1.2;
}

.edit-attendance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-content .close-symbol-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  padding: 5px 7px 3px 7px;
  line-height: 18px;
  font-weight: 100;
  color: #007bff;
}

.modal-content .close-symbol-btn:hover {
  background-color: red;
  transform: translateY(-1px);
  color: white;
}

.requisite {
  min-height: 100px;
}

.modal-spacer {
  width: 50px;
}

.form-controls input,
.form-controls select,
.modal-content input,
.modal-content select,
.modal-input {
  width: 250px;
  border: 1px solid #ababab;
  border-radius: 4px;
  font-size: 13px;
  padding: 2px;
  margin: 2px 0;
  transition: all 0.2s ease;
  line-height: 1.5;
  height: 25px;
  color: #007bff;
  font-weight: 500;
}

.modal-content input {
  padding-left: 7px;
}

.last-change-info small,
.modal-form-group small {
  font-size: 12px;
  color: #5f6368;
}

.modal-input-duration {
  color: #007bff;
  font-weight: 500;
  width: 45px;
}

.modal-input-duration-label {
  font-size: 13px;
  font-weight: 500;
  padding-left: 5px;
  align-self: center;
  color: #3c4043;
  height: 50px;
}

.duration-inputs {
  font-size: 13px;
  font-weight: 500;
  color: #3c4043;
  white-space: nowrap;
}

.modal-content .form-overflow .curriculum-form input,
.modal-content .form-overflow .curriculum-form select {
  width: 100%;
  border: 1.5px solid #e8e8e8;
  font-size: 13px;
  padding: 2px;
  margin: 2px 0;
  transition: all 0.2s ease;
  line-height: 1.1;
}

.form-controls textarea,
.modal-content textarea {
  width: calc(100% - 4px);
  min-height: 60px;
  padding: 4px 5px;
  resize: vertical;
  line-height: 1.2;
  border: 1.5px solid #e8e8e8;
  transition: all 0.2s ease;
  background-color: #fafafa;
}

.form-controls input:focus,
.form-controls textarea:focus,
.form-controls select:focus,
.modal-content input:focus,
.modal-content textarea:focus,
.modal-content select:focus {
  border-color: #2196f3;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
  outline: none;
}

.class-code-modal {
  max-width: 400px;
  text-align: center;
}

.class-code-display {
  font-size: 48px;
  font-weight: bold;
  padding: 20px;
  margin: 20px 0;
  background: #f5f5f5;
}

.fa-search {
  cursor: pointer;
  margin-right: 5px;
  color: #cce8ff;
  transition: transform 0.2s ease;
}

.fa-search:hover {
  transform: scale(1.2);
}

.modal-label {
  font-size: 13px;
  padding-right: 5px;
  text-wrap: nowrap;
}

.modal-table {
  width: fit-content;
  border-collapse: collapse;
  margin-bottom: 10px;
}

.modal-table th {
  background-color: #f8f9fa;
  font-size: 13px;
  font-weight: 600;
  padding: 2px 4px;
  border: 1px solid #c0c0c0;
  text-align: left;
  color: #3c4043;
  white-space: nowrap;
}

.modal-table td {
  font-size: 13px;
  padding: 2px 4px;
  border: 1px solid #c0c0c0;
  text-align: left;
  color: #3c4043;
  white-space: nowrap;
}

th:first-child {
  text-align: left;
  text-wrap: nowrap;
}

.modal-table-body .modal-status-dropdown {
  font-weight: 500;
  border: none;
  padding: 0;
  background-color: transparent;
  color: #007bff;
}

.modal-content .modal-form-group {
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  display: flex;
  flex-direction: row;
}

.modal-form-group .modal-label {
  width: 120px;
  line-height: 25px;
  display: inline-block;
  color: #3c4043;
}

.modal-form {
  line-height: 25px;
  display: inline-block;
  color: #3c4043;
}

/* Password input container styling */
.modal-content .pass-input-div .modal-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #3c4043;
}

.modal-content .pass-input-div .modal-input {
  padding: 8px 12px;
  border: 1.5px solid #e8e8e8;
  border-radius: 4px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.show-pass {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  width: 200px;
  color: #424242;
  margin-bottom: 10px;
}

.show-pass input {
  width: 14px;
}

.modal-checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  width: 200px;
  color: #424242;
  margin-left: 5px;
}

.modal-checkbox input,
.modal-table input {
  width: 14px;
}

.modal-input-select {
  width: 100%;
  font-size: 13px;
  padding: 2px;
  margin: 2px 0;
  transition: all 0.2s ease;
  line-height: 1.1;
}

.modal-tabs {
  display: flex;
  border-bottom: 2px solid #ddd;
}

.modal-tab {
  color: #88c0fb;
  padding: 10px 20px;
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 16px;
  transition: all 0.3s ease;
}

.modal-tab:hover {
  background-color: #f5f5f5;
}

.modal-tab.active {
  border-bottom-color: #007bff;
  color: #007bff;
  font-weight: bold;
}

.modal-tab-content {
  display: none;
}

.modal-tab-content.active {
  display: block;
}

.editing-notice {
  background: #fff3cd;
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
  border: 1px solid #ffc107;
  color: #856404;
  font-weight: 500;
}

.editing-row {
  background-color: #d4edda !important;
  border-left: 4px solid #28a745 !important;
}

.editing-row td {
  color: #155724 !important;
  font-weight: 500;
}

.selection-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #007bff;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

.schedule-day-cell {
  position: relative;
}

.start-time {
  background-color: #e3f2fd !important;
  border: 2px solid #2196f3 !important;
}

.course-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.course-modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 400px;
  border-radius: 5px;
}

.course-select {
  width: 100%;
  padding: 8px;
  margin: 5px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* BUTTONS */
.modal-content button {
  padding: 4px 9px;
  border: none;

  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-actions button {
  padding: 5px 12px;
  border: none;
  border-radius: 0px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.modal-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.modal-buttons {
  text-align: right;
  margin-top: 15px;
}

.modal-buttons button {
  margin-left: 10px;
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
