/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Enhanced chat message styling */
.chat-message {
    max-width: 100%;
    word-wrap: break-word;
}

.chat-message h2 {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 1rem 0 0.75rem 0;
    color: #1f2937;
}

.chat-message h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0.75rem 0 0.5rem 0;
    color: #374151;
}

.chat-message a {
    color: #2563eb;
    text-decoration: underline;
    transition: color 0.2s;
}

.chat-message a:hover {
    color: #1d4ed8;
}

.chat-message li {
    margin: 0.25rem 0;
}

.chat-message hr {
    border: none;
    border-top: 1px solid #d1d5db;
    margin: 0.5rem 0;
}

/* Car card styling */
.car-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: #f9fafb;
}

.car-card:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.view-toggle-btn.active {
    background-color: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.view-toggle-btn.active svg {
    color: #1f2937;
}

.view-toggle-btn:not(.active) svg {
    color: #6b7280;
}

/* iOS Safe Area Support */
@supports (padding: max(0px)) {
  body {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
  
  .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

/* Fix for iOS Safari centering issues */
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Prevent iOS Safari from adding extra padding */
  position: relative;
  width: 100%;
  overflow-x: hidden;
}
