/* --- Modal background overlay --- */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

/* --- Modal content box --- */
.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
  animation: slideDown 0.3s ease;
}

/* --- Close button --- */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #888;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

/* --- Buttons inside modal --- */
.modal-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.modal-buttons a {
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.login-btn {
  background-color: #2d336b;
  color: #fff;
}

.login-btn:hover {
  background-color: #3a4185;
}

.signup-btn {
  background-color: #1b8461;
  color: #fff;
}

.signup-btn:hover {
  background-color: #239871;
}

/* --- Animations --- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --- Page Notification Prompt --- */
.page-notification {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideDown 0.4s ease-out;
}

.page-notification p {
  margin: 0;
  font-weight: 500;
}

.page-notification.success {
  background-color: #d4edda;
  border-left: 5px solid #155724;
  color: #155724;
}

.page-notification.error {
  background-color: #f8d7da;
  border-left: 5px solid #721c24;
  color: #721c24;
}

.close-notification {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  padding: 0 5px;
}

.close-notification:hover {
  opacity: 1;
}
