/* ==========================================================================
   Unilib Classical Academic Admin & Modal Styles
   ========================================================================== */

/* Modal Container */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(28, 25, 23, 0.5);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal Content Card */
.modal-content {
  background-color: #ffffff;
  margin: auto;
  padding: 1.5rem;
  border: 1px solid #d6d3cc;
  border-radius: 0.5rem;
  width: 90%;
  max-width: 520px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  position: relative;
}

/* Modal Close Button */
.close {
  color: #a8a29e;
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease;
}

.close:hover,
.close:focus {
  color: #1c1917;
  text-decoration: none;
}

/* Form Group Utilities */
.form-group {
  margin-bottom: 0.875rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #44403c;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group .required {
  color: #be123c;
}

.error-message {
  color: #be123c;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: none;
}

.form-group.error .input-classic {
  border-color: #be123c;
  box-shadow: 0 0 0 2px rgba(190, 18, 60, 0.1);
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(250, 249, 246, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-content {
  background: #ffffff;
  padding: 1.5rem 2rem;
  border-radius: 0.5rem;
  border: 1px solid #d6d3cc;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid #e7e5e0;
  border-top-color: #162e4a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Empty State Card */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #ffffff;
  border: 1px solid #e7e5e0;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
}

.empty-state i {
  font-size: 2.5rem;
  color: #a8a29e;
  margin-bottom: 0.75rem;
  display: block;
}

.empty-state h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1c1917;
  margin-bottom: 0.25rem;
}

.empty-state p {
  color: #78716c;
  font-size: 0.8125rem;
  margin-bottom: 1.25rem;
}
