/* Unique Container Prefix: add-web- */

.add-web-overlay {
  position: fixed;
  inset: 0;
  /* Use a semi-transparent version of background or fixed dark overlay */
  background: rgba(0, 0, 0, 0.6); 
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  animation: overlayShow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.add-web-container {
  /* Using Variable Tokens */
  background-color: var(--card);
  border: 1px solid var(--border);
  color: var(--card-foreground);
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  padding: 24px;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
  animation: contentShow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Alert Section (Destructive State) */
.add-web-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  /* Uses your destructive theme color with low opacity for the background */
  background: rgba(190, 18, 60, 0.15); 
  border: 1px solid var(--destructive);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  animation: contentShow 0.3s ease;
}

.add-web-alert-msg {
  /* Links to your destructive foreground or a lighter red */
  color: #fca5a5; 
  font-size: 0.85rem;
}

/* Inputs & Forms */
.add-web-title {
  color: var(--foreground);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.add-web-subtext {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-top: 6px;
}

.add-web-label {
  display: block;
  color: var(--foreground);
  font-size: 0.85rem;
  margin-bottom: 6px;
}
.add-web-field-group{
    margin-top: 12px;
}
.add-web-input {
  width: 100%;
  background-color: var(--input);
  border: 1px solid var(--border);
  color: var(--foreground);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.add-web-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--ring);
}

/* Buttons */
.add-web-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
}

.add-web-btn-cancel {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.add-web-btn-cancel:hover {
  background: var(--muted);
}

.add-web-btn-submit {
  /* Uses your Emerald Primary color */
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.add-web-btn-submit:hover {
  opacity: 0.9;
  background-color: var(--secondary); /* Slight shift on hover */
}

.add-web-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .add-web-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .add-web-container {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    border-bottom: none;
    padding-bottom: 40px;
    animation: mobileSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .add-web-footer {
    flex-direction: column-reverse;
  }

  .add-web-btn-submit,
  .add-web-btn-cancel {
    width: 100%;
    height: 44px;
  }
}

/* Keyframes remain the same */
@keyframes overlayShow { from { opacity: 0; } to { opacity: 1; } }
@keyframes contentShow {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes mobileSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}