/* Custom Modal */
.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.custom-modal.show {
  opacity: 1;
}

.modal-content {
  background: white;
  border-radius: 1.5rem;
  padding: 2.5rem;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.custom-modal.show .modal-content {
  transform: scale(1);
}

/* Error Modal Styles */
.error-modal .modal-content {
    border-top: 4px solid #DC2626;
}

.error-content {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error-icon {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
}

.error-icon svg {
    filter: drop-shadow(0 2px 4px rgba(220, 38, 38, 0.2));
}

.error-title {
    color: #DC2626;
    font-weight: 700;
}

.error-btn {
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
    border: none;
}

.error-btn:hover {
    background: linear-gradient(135deg, #B91C1C 0%, #7F1D1D 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, #1F9352, #056E9D);
}

.modal-icon {
  margin: 0 auto 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-icon svg {
  filter: drop-shadow(0 4px 6px rgba(31, 147, 82, 0.15));
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.modal-title {
  font-size: 0.875rem;
  color: #6B7280;
  margin-bottom: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.modal-message {
  font-size: 1.125rem;
  color: #1F2937;
  margin-bottom: 2rem;
  line-height: 1.6;
  font-weight: 500;
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  width: 100%;
}

.modal-btn {
  flex: 1;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-btn-back {
  background: white;
  color: #374151;
  border: 2px solid #D1D5DB;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.modal-btn-back:hover {
  background: #F9FAFB;
  border-color: #9CA3AF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-btn-ok {
  background: linear-gradient(135deg, #1F9352, #056E9D);
  color: white;
  box-shadow: 0 4px 12px rgba(31, 147, 82, 0.2);
}

.modal-btn-ok:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(31, 147, 82, 0.3);
}

.modal-btn:active {
  transform: translateY(0);
}

/* Single button layout */
.modal-buttons:has(.modal-btn-ok:only-child) .modal-btn-ok {
  width: 100%;
}
