/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS 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/SCSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 *= require_tree .
 *= require_self
 */

/* Flash Messages */
.flash {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1rem 1.5rem;
  padding-right: 3rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  animation: slideDown 0.3s ease-out;
  max-width: 90%;
  text-align: center;
}

.flash.notice {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.flash.flash-alert {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.flash.flash-error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.flash.flash-warning {
  background-color: #fffbeb;
  color: #92400e;
  border: 1px solid #fed7aa;
}

.flash-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: opacity 0.2s;
}

.flash-close:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
  from {
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  to {
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
  }
}

/* Alert Messages */
.alert {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 25px;
  border-radius: 4px;
  color: white;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  animation: slideIn 0.3s ease-out;
}

.alert-success {
  background-color: #28a745;
}

.alert-error {
  background-color: #dc3545;
}

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

.hidden {
  display: none !important;
}

/* Error Page Styles */
.failed-status {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
}

.failed-status h2 {
  color: #dc2626;
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-family: 'Inter', 'Open Sans', Arial, sans-serif;
}

.error-message {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.error-message .flex {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.error-message .w-4 {
  width: 1rem;
  height: 1rem;
}

.error-message .h-4 {
  height: 1rem;
}

.error-message .text-red-500 {
  color: #ef4444;
}

.error-message .mr-2 {
  margin-right: 0.5rem;
}

.error-message h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #991b1b;
  font-family: 'Inter', 'Open Sans', Arial, sans-serif;
}

.error-message p {
  color: #7f1d1d;
  margin-bottom: 1rem;
  font-family: 'Inter', 'Open Sans', Arial, sans-serif;
}

.error-message ul {
  list-style-type: disc;
  list-style-position: inside;
  color: #7f1d1d;
  margin-bottom: 1.5rem;
  font-family: 'Inter', 'Open Sans', Arial, sans-serif;
}

.error-message li {
  margin-bottom: 0.25rem;
}

.error-message .flex.space-x-4 {
  display: flex;
  gap: 1rem;
}

.error-message .bg-blue-600 {
  background-color: #2563eb;
  color: white;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.2s;
  font-family: 'Inter', 'Open Sans', Arial, sans-serif;
}

.error-message .bg-blue-600:hover {
  background-color: #1d4ed8;
}

.error-message .text-blue-600 {
  color: #2563eb;
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.2s;
  font-family: 'Inter', 'Open Sans', Arial, sans-serif;
}

.error-message .text-blue-600:hover {
  color: #1d4ed8;
  text-decoration: none;
}