/*
 * Application-wide styles for a modern, user-friendly look and feel.
 * Uses Tailwind CSS (via CDN) for rapid styling and consistency.
 * Organized into sections for maintainability.
 * Compatible with Propshaft and ActiveAdmin.
 */

/* Import Tailwind CSS via CDN for modern styling */
@import "https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css";

/* General Reset and Base Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #f9fafb;
  color: #1f2937;
}

/* Footer */
.footer {
  background-color: #1f2937;
  color: #f9fafb;
  padding: 2rem 0;
  text-align: center;
}
.footer a {
  color: #9ca3af;
  transition: color 0.2s ease-in-out;
}
.footer a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* Flash Messages */
#flash-message-container {
  position: fixed;
  top: 4rem;
  right: 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.floating-alert {
  padding: 1rem 3rem 1rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
  position: relative;
  max-width: 20rem;
}

.floating-alert.success {
  background-color: #10b981;
  color: #ffffff;
}

.floating-alert.notice {
  background-color: #3b82f6;
  color: #ffffff;
}

.floating-alert.alert {
  background-color: #ef4444;
  color: #ffffff;
}

.floating-alert .close-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease-in-out;
}

.floating-alert .close-btn:hover {
  opacity: 1;
}

/* Gradient and Mask */
.gradient-custom {
  background: linear-gradient(to bottom right, #f97316, #a855f7);
  padding: 1rem;
  border-radius: 1rem;
}

.mask-custom {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* AI Chat */
.message-bubble {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  transition: transform 0.2s ease-in-out;
}

.message-bubble:hover {
  transform: translateY(-2px);
}

.user-bubble {
  background-color: #3b82f6;
  color: #ffffff;
  margin-left: auto;
}

.ai-bubble {
  background-color: #e5e7eb;
  color: #1f2937;
  margin-right: auto;
}

.d-flex.align-items-start {
  display: flex;
  align-items: flex-start;
}

.card-body p {
  margin-bottom: 0;
}

.card-header {
  font-weight: 600;
  color: #3b82f6;
  background-color: #f9fafb;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

/* Forms and Buttons */
.form-outline {
  margin-bottom: 1rem;
}

.message-input {
  border-radius: 1rem;
  border: 1px solid #d1d5db;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  width: 100%;
  transition: border-color 0.2s ease-in-out;
}

.message-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.send-btn {
  border-radius: 1rem;
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  background-color: #3b82f6;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.send-btn:hover {
  background-color: #2563eb;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  gap: 0.5rem;
}

.pagination li {
  list-style: none;
}

.pagination a, .pagination span {
  padding: 0.5rem 1rem;
  background-color: #3b82f6;
  color: #ffffff;
  border-radius: 0.375rem;
  text-decoration: none;
  font-size: 0.875rem;
  transition: background-color 0.2s ease-in-out;
}

.pagination a:hover, .pagination span:hover {
  background-color: #2563eb;
}

/* Form Labels */
.form-label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
}

/* Badges */
.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
  color: #ffffff;
}

.badge-success {
  background-color: #10b981;
}

.badge-secondary {
  background-color: #6b7280;
}

/* Turbo Progress Bar */
.turbo-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  z-index: 9999;
  background: linear-gradient(to right, #6366f1, #a855f7, #ec4899);
  transition: width 0.3s ease-out, opacity 0.15s ease-in;
}

/* ActiveAdmin Overrides (to avoid conflicts) */
body.active_admin {
  background-color: #ffffff;
  font-family: 'Inter', sans-serif;
}

body.active_admin .header {
  background-color: #1f2937;
  color: #ffffff;
  padding: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
  .floating-alert {
    max-width: 90%;
    margin: 0 auto;
  }

  .message-bubble {
    max-width: 90%;
  }
}

/*# sourceMappingURL=application.css-e321789ceb38f029c232e85b89b91fdcadbbbc0dca0c0a48758e78d091678455.map */
