@keyframes modalEntry {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes overlayShow {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: overlayShow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
}

.modal {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 32px;
  width: min(90%, 600px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.1);
  animation: modalEntry 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-sizing: border-box;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-right: 40px;
}

.modal-title {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.close-btn-modal {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: grid;
  place-items: center;
}

.close-btn-modal:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: rotate(90deg) scale(1.1);
}

.close-btn-modal svg {
  width: 20px;
  height: 20px;
  stroke: #1a1a1a;
  stroke-width: 2px;
}


.close-btn-modal {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  width: 40px;
  height: 40px;
  border: none;
  background: #F1F5F9;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.close-btn-modal:hover {
  background: #6366F1;
  transform: rotate(90deg);
}

.close-btn-modal svg {
  width: 20px;
  height: 20px;
  stroke: #64748B;
  transition: stroke 0.3s;
}

.close-btn-modal:hover svg { 
  stroke: white; 
}

.modal-body {
  max-height: 70vh;
  overflow-y: auto;
  padding: 8px 0;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: hsl(210, 90%, 50%);
  color: white;
}

.btn-primary:hover {
  background: hsl(210, 90%, 45%);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.05);
  color: #1a1a1a;
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.08);
}

@media (max-width: 480px) {
  .modal {
      border-radius: 16px;
      padding: 24px;
  }
  
  .modal-title {
      font-size: 20px;
  }
}




