/* Custom Modal Styles - PACKGO Brand Identity */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
  border: 2px solid #ff7a00;
  border-radius: 15px;
  padding: 40px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: scale(0.7) translateY(50px);
  transition: all 0.3s ease;
  box-shadow: 
    0 0 30px rgba(255, 122, 0, 0.3),
    0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  position: relative;
}

.modal-icon.success {
  background: linear-gradient(135deg, #ff7a00, #ff9500);
  color: #000;
  animation: successPulse 0.6s ease;
}

.modal-icon.error {
  background: linear-gradient(135deg, #ff3333, #ff6666);
  color: #fff;
  animation: errorShake 0.6s ease;
}

@keyframes successPulse {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-message {
  font-size: 16px;
  color: #bbb;
  line-height: 1.5;
  margin-bottom: 25px;
}

.modal-close-btn {
  background: #ff7a00;
  color: #000;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-close-btn:hover {
  background: #ffa048;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 122, 0, 0.4);
}

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

/* Modal glow effects */
.modal-content::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ff7a00, #ff9500, #ff7a00);
  border-radius: 15px;
  z-index: -1;
  opacity: 0.7;
  animation: modalGlow 3s linear infinite;
}

@keyframes modalGlow {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0.3; }
}

/* Responsive design */
@media (max-width: 500px) {
  .modal-content {
    padding: 30px 20px;
    margin: 20px;
  }
  
  .modal-icon {
    width: 60px;
    height: 60px;
    font-size: 30px;
  }
  
  .modal-title {
    font-size: 20px;
  }
  
  .modal-message {
    font-size: 14px;
  }
  
  .modal-close-btn {
    padding: 10px 25px;
    font-size: 14px;
  }
}

/* RTL support for Arabic */
[dir="rtl"] .modal-content {
  text-align: center;
}

[dir="rtl"] .modal-close-btn {
  font-family: 'Arial', sans-serif;
}
