/**
 * Beautiful Modal System CSS - Yellow-Black Theme
 * Unified notification system for all pages
 */

.custom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.custom-modal.show {
  opacity: 1;
}

.custom-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.custom-modal-content {
  position: relative;
  background: #2a2a2a;
  border: 2px solid #ffdb4d;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  z-index: 100000;
}

.custom-modal.show .custom-modal-content {
  transform: scale(1);
  animation: modalBounce 0.5s ease;
}

@keyframes modalBounce {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.custom-modal-header {
  padding: 20px 24px;
  border-bottom: 2px solid #ffdb4d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1a1a1a;
  color: #ffffff;
}

.custom-modal-header h4 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff !important;
}

.custom-modal-close {
  background: transparent;
  border: 2px solid #ffdb4d;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  color: #ffffff;
  cursor: pointer;
  opacity: 0.9;
  transition: all 0.3s;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-modal-close:hover {
  opacity: 1;
  background: #ffdb4d;
  color: #1a1a1a;
}

.custom-modal-body {
  padding: 30px 24px;
  text-align: center;
  background: #2a2a2a;
}

.modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  border: 3px solid;
}

@keyframes iconPulse {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-icon.icon-success {
  background: #2a2a2a;
  color: #66bb6a;
  border-color: #66bb6a;
}

.modal-icon.icon-error {
  background: #2a2a2a;
  color: #ff6b6b;
  border-color: #ff6b6b;
}

.modal-icon.icon-warning {
  background: #2a2a2a;
  color: #ffdb4d;
  border-color: #ffdb4d;
}

.modal-icon.icon-info {
  background: #2a2a2a;
  color: #4dd0e1;
  border-color: #4dd0e1;
}

.modal-icon.icon-question {
  background: #2a2a2a;
  color: #ffdb4d;
  border-color: #ffdb4d;
}

.modal-icon.icon-input {
  background: #2a2a2a;
  color: #ffdb4d;
  border-color: #ffdb4d;
}

.custom-modal-body p {
  font-size: 1.1rem;
  color: #ffdb4d;
  margin-bottom: 20px;
  line-height: 1.6;
}

.custom-modal-body #modalInput {
  margin-top: 15px;
  padding: 12px;
  font-size: 1rem;
  border: 2px solid #ffdb4d;
  border-radius: 8px;
  transition: all 0.3s;
  background: #1a1a1a;
  color: #ffdb4d;
}

.custom-modal-body #modalInput:focus {
  border-color: #ffdb4d;
  outline: none;
  background: #2a2a2a;
}

.custom-modal-footer {
  padding: 20px 24px;
  border-top: 2px solid #ffdb4d;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #2a2a2a;
}

.custom-modal-footer button {
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid #ffdb4d;
  cursor: pointer;
  transition: all 0.3s;
  min-width: 100px;
  background: #1a1a1a;
  color: #ffdb4d;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.custom-modal-footer button:hover {
  background: #ffdb4d;
  color: #1a1a1a;
}

.custom-modal-footer button:active {
  transform: translateY(0);
}

/* Primary Button (OK, Confirm) */
.custom-modal-footer button.btn-primary,
.custom-modal-footer button#modalBtnConfirm {
  background: #ffdb4d;
  color: #1a1a1a;
  border-color: #ffdb4d;
  font-weight: 700;
}

.custom-modal-footer button.btn-primary:hover,
.custom-modal-footer button#modalBtnConfirm:hover {
  background: #ffe680;
  border-color: #ffe680;
}

/* Secondary Button (Cancel) */
.custom-modal-footer button.btn-secondary,
.custom-modal-footer button#modalBtnCancel {
  background: #2a2a2a;
  color: #ffdb4d;
  border-color: #777;
}

.custom-modal-footer button.btn-secondary:hover,
.custom-modal-footer button#modalBtnCancel:hover {
  background: #3a3a3a;
  border-color: #ffdb4d;
}

/* Mobile Responsive */
@media (max-width: 576px) {
  .custom-modal-content {
    width: 95%;
    max-width: none;
  }
  
  .custom-modal-header {
    padding: 16px 20px;
  }
  
  .custom-modal-header h4 {
    font-size: 1.1rem;
  }
  
  .custom-modal-body {
    padding: 24px 20px;
  }
  
  .modal-icon {
    width: 60px;
    height: 60px;
    font-size: 36px;
  }
  
  .custom-modal-body p {
    font-size: 1rem;
  }
  
  .custom-modal-footer {
    padding: 16px 20px;
    flex-direction: column;
  }
  
  .custom-modal-footer button {
    width: 100%;
  }
}

