@tailwind base;
@tailwind components;
@tailwind utilities;

/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is suggested that you use this file to include any stylesheets after `@import tailwindcss`.
 *
 *= require_tree .
 *= require_self
 */
@import "calendar";
@import "active_admin.css";

/* Delete Account Popup Styles */
#delete-account-popup {
  transition: opacity 0.3s ease-in-out;
}

#delete-account-popup:not(.hidden) {
  opacity: 1;
}

#delete-account-popup.hidden {
  opacity: 0;
  pointer-events: none;
}

.popup-backdrop {
  transition: opacity 0.3s ease-in-out;
}

.popup-container > div {
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#delete-account-popup:not(.hidden) .popup-container > div {
  transform: scale(1);
  opacity: 1;
}

#delete-account-popup.hidden .popup-container > div {
  transform: scale(0.95);
  opacity: 0;
}

/* Responsive adjustments for mobile */
@media (max-width: 640px) {
  .popup-container > div {
    margin: 1rem;
    max-width: calc(100vw - 2rem);
  }
  
  .popup-actions {
    flex-direction: column;
  }
  
  .popup-actions button {
    width: 100%;
  }
}
