/* ---------- Appearance ---------- */
@keyframes slideDownModal {
  from { transform: translateY(25px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#pageLoader {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #4285f4, #34a853, #fbbc05, #ea4335);
  background-size: 300% 100%;
  animation: gradientShift 1.5s linear infinite;
  transition: width 0.4s ease, opacity 0.5s ease;
  z-index: 9999;
  opacity: 0;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.overlay {
    display: flex;
    position: fixed;
    width: 100%; height: 100%;
    top: 0; left: 0;
    align-items: center; justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    backdrop-filter: blur(2px);
    animation: fadeInOverlay 0.3s ease forwards;
}

/* ---------- Standard Layaout ---------- */
.modal {
  width: 90%; max-width: 450px;
  margin: 0; padding: 0;
  text-align: left;
  background: #fff;
  border: 1px solid #007bff; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  animation: slideDownModal 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  overflow: hidden;
}

.modal h2 {
  margin: 0; padding: 10px 20px;
  font-size: 16px; font-weight: 600; color: #fff;
  background-color: #007bff;
}

.modal p {
  margin: 0; padding: 20px;
  font-size: 14px;
  color: #000;
}

.modal-buttons {
  display: flex; gap: 15px;
  justify-content: flex-end;
  margin: 0;
  padding: 0 25px 10px;
}

.modal-buttons button {
  padding: 7px 16px;
  font-size: 15px; color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  cursor: pointer; transition: background 0.3s ease;
}

/* ---------- Success ---------- */
.modal-success { border: 1px solid #01af96; }
.modal-success p {font-weight: 600;}
.modal-success h2, .modal-success button { background-color: #01af96; }

/* ---------- Caution ---------- */
.modal-csrf, .modal-caution { border: 1px solid #fcb800; }
.modal-csrf h2, .modal-caution h2, .modal-csrf button, .modal-caution button 
{ color: #000; background-color: #fcb800; }

/* ---------- Forbidden ---------- */
.modal-forbidden, .modal-error { border: 1px solid #dc3545; }
.modal-forbidden h2, .modal-error h2, .modal-forbidden button, .modal-error button 
{ color: #fff; background-color: #dc3545; }

/* ---------- Confirm ---------- */
.modal-confirm .btn-activate { background-color: #01af96; }
.modal-confirm .btn-confirm { background-color: #dc3545; }

/* ---------- Confirm Buttons ---------- */
.modal-buttons .btn-cancel {
  background-color: #6c757d;
}
.modal-buttons .btn-cancel:hover {
  background-color: #5a6268;
}





















