/* Modal Styles for VaultraPay */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.modal-content {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  border-radius: 15px;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  position: relative;
  transform: translateY(-50px);
  transition: transform 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  color: white;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffd700;
}

.modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #ffd700;
}

.modal-body {
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-col {
  flex: 1;
}

.btn {
  background: linear-gradient(45deg, #1e3c72, #4facfe);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-warning {
  background: linear-gradient(45deg, #f59e0b, #fbbf24);
}

.btn-success {
  background: linear-gradient(45deg, #10b981, #34d399);
}

.btn-danger {
  background: linear-gradient(45deg, #ef4444, #f87171);
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 20px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.95);
  color: white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transform: translateX(200%);
  transition: transform 0.3s ease;
  z-index: 1000;
  max-width: 350px;
  font-weight: bold;
  font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  animation: slideInRight 0.3s ease-out;
}

.notification.show {
  transform: translateX(0);
}

.notification.error {
  background: rgba(239, 68, 68, 0.95);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Status Badges */
.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
}

.status-active {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.status-inactive {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.status-completed {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.status-pending {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.status-failed {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .modal-title {
    font-size: 1.3rem;
  }
}
