/*
 * 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 generally better to create a new file per style scope.
 *
 *= require_self
 */

/* Application-wide styles for Rails 8 with Tailwind CSS */
/* Marketing styles are now included in app/assets/tailwind/application.css */

/* Admin Login Styles */
.admin-login-page {
  background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
}

.admin-login-page .card {
  border-radius: 1rem;
  overflow: hidden;
}

.admin-login-page .card-header {
  background: linear-gradient(135deg, #111 0%, #000 100%);
}

.admin-login-page .form-control {
  border-radius: 0.75rem;
  border: 2px solid #e0e0e0;
}

.admin-login-page .form-control:focus {
  border-color: #111;
  box-shadow: 0 0 0 0.2rem rgba(17, 17, 17, 0.25);
}

.admin-login-page .btn-dark {
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #111 0%, #000 100%);
  border: none;
  transition: all 0.3s ease;
}

.admin-login-page .btn-dark:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.3);
  background: linear-gradient(135deg, #000 0%, #111 100%);
}

.admin-login-page .alert {
  border-radius: 0.75rem;
}

.admin-login-page .text-dark {
  color: #111 !important;
}

.admin-login-page .bg-dark {
  background-color: #111 !important;
}

/* Mobile Menu Styles */
.nav-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #ffffff;
  z-index: 9999;
  padding: 2rem;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

.nav-mobile-menu.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.nav-mobile-menu.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* International Telephone Input Customization */
.iti {
  width: 100%;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.iti__tel-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.iti__tel-input:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 2px #000;
}

.iti__country-container {
  padding: 0;
}

.iti__selected-country {
  border-radius: 0.5rem 0 0 0.5rem;
  background-color: #f9fafb;
  border-right: 1px solid #d1d5db;
  padding: 0 0.75rem;
}

.iti__selected-country:hover {
  background-color: #f3f4f6;
}

.iti__selected-dial-code {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  color: #374151;
}

.iti__dropdown {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

.iti__search-input {
  font-family: inherit;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

.iti__search-input:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 2px #000;
}

.iti__country {
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
}

.iti__country:hover {
  background-color: #f3f4f6;
}

.iti__country--highlight {
  background-color: #f3f4f6;
}

.iti__country-name,
.iti__dial-code {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.iti__dial-code {
  color: #6b7280;
}

/* Error state for phone input */
.iti--has-error .iti__tel-input {
  border-color: #fca5a5;
}

.iti--has-error .iti__tel-input:focus {
  box-shadow: 0 0 0 2px #ef4444;
}

/* Toast Notification Animations */
@keyframes toast-slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.animate-slide-in {
  animation: toast-slide-in 0.3s ease-out forwards;
}
