/*
 * This is a manifest file that'll be compiled into application.css.
 */

/* Global Layout */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  background-color: #f8f9fa;
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 0;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #2c3e50;
  text-decoration: none;
  white-space: nowrap;
}

.logo-image {
  height: 40px;
  width: auto;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 600;
}

.user-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-link {
  color: #7f8c8d;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-link:hover {
  color: #2c3e50;
  background-color: #f8f9fa;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .site-header {
    padding: 0.75rem;
  }
  
  .header-content {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .logo {
    text-align: center;
  }
  
  .logo-link {
    justify-content: center;
  }
  
  .logo-image {
    height: 32px;
  }
  
  .logo-text {
    font-size: 1.25rem;
  }
  
  .user-nav {
    justify-content: center;
    gap: 0.25rem;
    flex-wrap: wrap;
  }
  
  .nav-link {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .user-nav {
    gap: 0.1rem;
  }
  
  .nav-link {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
  }
}

/* Style the logout button to look like a link */
.user-nav form {
  display: inline;
}

.user-nav button.nav-link {
  background: none;
  border: none;
  color: #7f8c8d !important;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 500;
}

.user-nav button.nav-link:hover {
  color: #2c3e50;
  background-color: #f8f9fa;
}

/* Global Button Styles */
.primary-button {
  background-color: #4285f4;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
  display: inline-block;
  min-height: 44px; /* Touch-friendly minimum */
  box-sizing: border-box;
}

.primary-button:hover {
  background-color: #3367d6;
}

/* Mobile button improvements */
@media (max-width: 768px) {
  .primary-button {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    text-align: center;
  }
  
  /* Make all buttons touch-friendly on mobile */
  button, input[type="submit"], .btn {
    min-height: 44px;
    padding: 0.75rem 1rem;
  }
}

/* Error Messages */
.field-error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.alert-danger {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.alert-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

/* Progress indicator */
.progress-indicator {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  margin-top: 1rem;
  position: relative;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.progress-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background-color: #e0e0e0;
  transform: translateY(-50%);
  z-index: 1;
}

.step-indicator {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e0e0e0;
  color: #999;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 auto;
  border: 3px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.step-indicator.active .step-number {
  background-color: #4285f4;
  color: white;
}

.step-indicator.completed .step-number {
  background-color: #34a853;
  color: white;
}
  
  .welcome {
    margin-right: 1rem;
  }
  
  .flash-messages {
    max-width: 400px;
    margin: 0 auto 1rem auto;
    padding: 1rem;
  }
  
  .notice {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
  }
  
  .alert {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  /* Style the logout button to look like a link */
  .user-nav form {
    display: inline;
  }
  
  .user-nav button.nav-link {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font: inherit;
    color: white;
  }
  
  .user-nav button.nav-link:hover {
    background-color: #444;
  }
  
  /* Field with errors styling - general */
  .field_with_errors input,
  .field_with_errors select,
  .field_with_errors textarea,
  .field_with_errors .carrier-select,
  .field_with_errors .story-input,
  .field_with_errors .impact-input {
    border: 2px solid #dc3545 !important;
    background-color: #fff8f8;
  }
  
  /* Star rating specific - make field_with_errors display inline */
  .rating-container .field_with_errors {
    display: inline !important;
  }
  
  .field_with_errors label {
    color: #dc3545;
  }
  
  /* Radio button error styling */
  .field_with_errors .star-rating + label,
  .field_with_errors .problem-option label,
  .field_with_errors .impact-option label,
  .field_with_errors .sharing-options label {
    color: #dc3545;
  }
  
  /* Error messages styling */
  .error-messages {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .error-messages h2 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
  }
  
  .error-messages ul {
    margin: 0;
    padding-left: 1.5rem;
  }
  
  /* Field error message */
  .field-error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
  }
  
  /* Radio button group error styling */
  .problem-buttons.field_with_errors,
  .impact-options.field_with_errors,
  .sharing-options.field_with_errors,
  .rating-container.field_with_errors {
    border: 2px solid #dc3545;
    border-radius: 4px;
    padding: 10px;
    background-color: #fff8f8;
    display: block; /* Ensure it displays as a block */
  }
  
  /* Problem buttons layout */
  .problem-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }
  
  .problem-option {
    display: flex;
    align-items: center;
  }
  
  .problem-option input[type="radio"] {
    margin-right: 10px;
  }
  
  /* Make error messages more prominent */
  .prominent-error {
    color: #dc3545;
    font-weight: bold;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: #fff8f8;
    border-left: 4px solid #dc3545;
  }
  
  /* Survey Steps Styling */
  .survey-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 2rem;
  }
  
  .survey-container h1 {
    color: #333;
    margin-top: 0;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }
  
  .survey-container h2 {
    color: #444;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
  }
  
  .survey-container .subtitle {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .step-content {
    margin-bottom: 2rem;
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .carrier-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    margin-bottom: 0.5rem;
  }
  
  /* Emoji Rating styling for form input */
  .emoji-rating-container {
    margin-bottom: 1.5rem;
  }
  
  .emoji-rating {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
  }
  
  .emoji-rating .emoji-input {
    display: none;
  }
  
  .emoji-rating .emoji-label {
    font-size: 3rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 2px solid transparent;
  }
  
  .emoji-rating .emoji-label:hover {
    transform: scale(1.1);
    background-color: #e9ecef;
  }
  
  .emoji-rating .emoji-input:checked + .emoji-label {
    background-color: #fff;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
  }
  
  /* Individual emoji colors */
  .emoji-1 { background-color: #ffebee !important; }
  .emoji-2 { background-color: #fff3e0 !important; }
  .emoji-3 { background-color: #f3e5f5 !important; }
  .emoji-4 { background-color: #e8f5e8 !important; }
  .emoji-5 { background-color: #e1f5fe !important; }
  
  /* Star display styling for gripe cards */
  .gripe-card .rating {
    display: flex;
    margin-top: 0.25rem;
  }
  
  .gripe-card .star {
    color: #ccc;
    font-size: 1.2rem;
  }
  
  .gripe-card .star.filled {
    color: #ffc107;
  }
  
  /* Story input styling */
  .story-container {
    margin-bottom: 1.5rem;
  }
  
  .story-input {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
  }
  
  .word-count {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
  }
  
  .word-count-requirement {
    color: #777;
  }
  
  .word-count .invalid {
    color: #dc3545;
    font-weight: bold;
  }
  
  /* Impact options styling */
  .impact-options, .sharing-options {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #f9f9f9;
  }
  
  .impact-option {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
  }
  
  .impact-option:last-child {
    margin-bottom: 0;
  }
  
  .impact-option input[type="radio"],
  .sharing-options input[type="radio"] {
    margin-right: 0.5rem;
  }
  
  .impact-description {
    margin-bottom: 1.5rem;
  }
  
  .impact-description label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
  }
  
  .impact-input {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
  }
  
  /* Sharing options styling */
  .sharing-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  /* Radio button wrapper for better alignment */
  .radio-wrapper {
    display: flex;
    align-items: center;
  }
  
  .sharing-option {
    margin-bottom: 0.5rem;
  }
  
  .sharing-option label {
    font-weight: 500;
    margin-bottom: 0;
  }
  
  .sharing-option input[type="radio"] {
    margin-right: 0.75rem;
    min-width: 16px;
    height: 16px;
  }
  
  .option-description {
    margin: 0.25rem 0 0.75rem 2.25rem;
    color: #666;
    font-size: 0.9rem;
  }
  
  /* Button styling */
  .button {
    background-color: #4285f4;
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .button:hover {
    background-color: #3367d6;
  }
  
  .form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
  }
  }
  
  /* Progress indicator */
  .progress-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    margin-top: 1rem;
    position: relative;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .progress-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 15%;
    right: 15%;
    height: 2px;
    background-color: #e0e0e0;
    transform: translateY(-50%);
    z-index: 1;
  }
  
  .step-indicator {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
  }
  
  .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #999;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0 auto;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .step-indicator.active .step-number {
    background-color: #4285f4;
    color: white;
  }
  
  .step-indicator.completed .step-number {
    background-color: #34a853;
    color: white;
  }
  
  /* Gripes Index Page Styling */
  .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .primary-button {
    background-color: #4a86e8;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s;
  }
  
  .primary-button:hover {
    background-color: #3a76d8;
  }
  
  .gripes-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    align-items: start;
  }
  
  .gripe-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.gripe-card-link:hover .gripe-card {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gripe-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  background-color: white;
  display: flex;
  flex-direction: column;
  height: 100%;
}
  
  .gripe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  .gripe-header {
    padding: 1rem;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .carrier-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex: 1;
    min-width: 0;
  }

  .carrier-info h3 a {
    color: inherit;
    text-decoration: none;
  }

  .carrier-info h3 a:hover {
    text-decoration: underline;
  }
  }
  
  .carrier-info h3 a {
    color: #333;
    text-decoration: none;
  }
  
  .carrier-info h3 a:hover {
    color: #4a86e8;
    text-decoration: underline;
  }
  
  .rating {
    display: flex;
    margin-top: 0.25rem;
  }
  
  .star {
    color: #ccc;
    font-size: 1.2rem;
  }
  
  .star.filled {
    color: #ffc107;
  }
  
  .problem-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-weight: 600;
    color: white;
    background-color: #6c757d;
    text-align: center;
    margin-left: 0.75rem;
    flex-shrink: 0;
    max-width: 120px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.2;
  }
  
  .problem-badge.claim-denied-or-delayed {
    background-color: #dc3545;
  }
  
  .problem-badge.high-costs {
    background-color: #fd7e14;
  }
  
  .problem-badge.bad-service {
    background-color: #6f42c1;
  }
  
  .problem-badge.confusing-info {
    background-color: #17a2b8;
  }
  
  .problem-badge.other {
    background-color: #6c757d;
  }
  
  .gripe-content {
    padding: 1rem;
    flex-grow: 1;
  }
  
  .story-preview {
    margin: 0 0 1rem 0;
    line-height: 1.5;
    color: #333;
  }
  
  .gripe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #666;
    margin-top: auto;
  }
  
  .meta-item {
    display: flex;
    align-items: center;
  }
  
  .meta-label {
    font-weight: bold;
    margin-right: 0.25rem;
  }
  
  .meta-value.impact-yes {
    color: white;
    background-color: #28a745;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
  }
  
  .meta-value.impact-no {
    color: white;
    background-color: #dc3545;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
  }
  
  .meta-value.impact-not-sure {
    color: #212529;
    background-color: #ffc107;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
  }
  
  .gripe-actions {
    display: flex;
    border-top: 1px solid #e0e0e0;
    background-color: #f9f9f9;
  }
  
  .action-button {
    flex: 1;
    padding: 0.75rem;
    text-align: center;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
  }
  
  .action-button:not(:last-child) {
    border-right: 1px solid #e0e0e0;
  }
  
  .action-button:hover {
    background-color: #e9ecef;
  }
  
  .action-button .icon {
    margin-right: 0.25rem;
  }
  
  .view-button:hover {
    color: #4a86e8;
  }
  
  .edit-button:hover {
    color: #28a745;
  }
  
  .delete-button:hover {
    color: #dc3545;
  }
  
  .empty-state {
    text-align: center;
    padding: 3rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-top: 2rem;
  }
  
  .empty-state p {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 1.1rem;
  }
/* Gripe Detail Page Styling */
.gripe-detail-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

.gripe-detail-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
}

.gripe-detail-header {
  padding: 1.5rem;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.gripe-title-section {
  flex: 1;
  min-width: 250px;
}

.gripe-title-section h1 {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 1.8rem;
}

.gripe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: #666;
  font-size: 0.9rem;
}

.meta-item {
  display: flex;
  align-items: center;
}

.meta-item .icon {
  margin-right: 0.25rem;
}

.gripe-rating-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.carrier-badge {
  background-color: #4a86e8;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 500;
}

.carrier-badge a {
  color: white;
  text-decoration: none;
}

.carrier-badge a:hover {
  text-decoration: underline;
}

.rating-display {
  display: flex;
}

.rating-display .star {
  color: #ccc;
  font-size: 1.5rem;
}

.rating-display .star.filled {
  color: #ffc107;
}

.gripe-detail-content {
  padding: 1.5rem;
}

.problem-section {
  margin-bottom: 1.5rem;
}

.problem-badge {
  display: inline-block;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: bold;
  color: white;
  background-color: #6c757d;
}

.problem-badge.claim-denied-or-delayed {
  background-color: #dc3545;
}

.problem-badge.high-costs {
  background-color: #fd7e14;
}

.problem-badge.bad-service {
  background-color: #6f42c1;
}

.problem-badge.confusing-info {
  background-color: #17a2b8;
}

.problem-badge.other {
  background-color: #6c757d;
}

.story-section {
  margin-bottom: 2rem;
}

.story-section h2 {
  color: #444;
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.story-content {
  line-height: 1.6;
  color: #333;
}

.impact-section {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

.impact-section h2 {
  color: #444;
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.impact-status {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 4px;
}

.impact-yes {
  background-color: #28a745;
  color: white;
}

.impact-no {
  background-color: #dc3545;
  color: white;
}

.impact-not-sure {
  background-color: #ffc107;
  color: #212529;
}

.impact-description {
  line-height: 1.6;
  color: #333;
  padding: 0.5rem 0;
}

.gripe-detail-actions {
  display: flex;
  border-top: 1px solid #e0e0e0;
  background-color: #f9f9f9;
}

.gripe-detail-actions .action-button {
  flex: 1;
  padding: 1rem;
  text-align: center;
  color: #555;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.gripe-detail-actions .action-button:not(:last-child) {
  border-right: 1px solid #e0e0e0;
}

.gripe-detail-actions .action-button:hover {
  background-color: #e9ecef;
}

.gripe-detail-actions .action-button .icon {
  margin-right: 0.5rem;
}

.gripe-detail-actions .back-button:hover {
  color: #4a86e8;
}

.gripe-detail-actions .edit-button:hover {
  color: #28a745;
}

.gripe-detail-actions .delete-button:hover {
  color: #dc3545;
}
/* Carrier Detail Page Styling */
.carrier-detail-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
}

.carrier-detail-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
}

.carrier-detail-header {
  padding: 1.5rem;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.carrier-title-section {
  flex: 1;
}

.carrier-title-section h1 {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 2rem;
}

.carrier-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rating-label {
  color: #666;
  font-size: 0.9rem;
}

.rating-value {
  font-weight: bold;
  color: #333;
}

.carrier-actions {
  display: flex;
  gap: 0.5rem;
}

.admin-button {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.admin-button .icon {
  margin-right: 0.25rem;
}

.edit-button {
  background-color: #e9ecef;
  color: #28a745;
}

.edit-button:hover {
  background-color: #d4edda;
}

.delete-button {
  background-color: #e9ecef;
  color: #dc3545;
}

.delete-button:hover {
  background-color: #f8d7da;
}

.carrier-detail-content {
  padding: 1.5rem;
}

.carrier-info-section {
  margin-bottom: 2rem;
}

.carrier-info-section h2 {
  color: #444;
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.info-icon {
  font-size: 1.5rem;
}

.info-content {
  flex: 1;
}

.info-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  color: #444;
}

address {
  font-style: normal;
  line-height: 1.5;
  color: #333;
}

.website-link {
  color: #4a86e8;
  text-decoration: none;
  word-break: break-all;
}

.website-link:hover {
  text-decoration: underline;
}

.carrier-gripes-section {
  margin-top: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.section-header h2 {
  color: #444;
  font-size: 1.4rem;
  margin: 0;
}

.add-gripe-button {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: #4a86e8;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.add-gripe-button:hover {
  background-color: #3a76d8;
}

.add-gripe-button .icon {
  margin-right: 0.25rem;
}

.carrier-detail-footer {
  padding: 1rem;
  background-color: #f9f9f9;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}

.back-button {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background-color: #e9ecef;
  color: #555;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s;
}

.back-button:hover {
  background-color: #dee2e6;
  color: #4a86e8;
}

.back-button .icon {
  margin-right: 0.5rem;
}
/* Carriers Index Page Styling */
.carriers-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.carriers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.carrier-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  border: 1px solid #e0e0e0;
}

.carrier-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.carrier-card-header {
  padding: 1.25rem;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}

.carrier-card-header h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
}

.carrier-card-header h2 a {
  color: #333;
  text-decoration: none;
}

.carrier-card-header h2 a:hover {
  color: #4a86e8;
  text-decoration: underline;
}

.carrier-location {
  display: flex;
  align-items: center;
  color: #666;
  font-size: 0.9rem;
}

.carrier-location .icon {
  margin-right: 0.25rem;
}

.carrier-card-content {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.carrier-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rating-label {
  font-weight: 500;
  color: #555;
}

.rating-display {
  display: flex;
}

.rating-display .star {
  color: #ccc;
  font-size: 1.2rem;
}

.rating-display .star.filled {
  color: #ffc107;
}

.rating-value {
  font-weight: 500;
  color: #333;
}

.rating-value.not-rated {
  color: #6c757d;
  font-style: italic;
}

.carrier-stats {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.stat-item {
  display: flex;
  align-items: center;
  color: #666;
  font-size: 0.9rem;
}

.stat-item .icon {
  margin-right: 0.25rem;
}

.carrier-card-footer {
  display: flex;
  border-top: 1px solid #e0e0e0;
  background-color: #f9f9f9;
}

.card-action {
  flex: 1;
  padding: 0.75rem;
  text-align: center;
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.card-action:not(:last-child) {
  border-right: 1px solid #e0e0e0;
}

.card-action:hover {
  background-color: #e9ecef;
}

.card-action .icon {
  margin-right: 0.25rem;
}

.view-action:hover {
  color: #4a86e8;
}

.add-action:hover {
  color: #28a745;
}

.edit-action:hover {
  color: #fd7e14;
}
/* Form Styling */
.form-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

.form-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
}

.form-header {
  padding: 1.5rem;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}

.form-header h1 {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 1.8rem;
}

.form-subtitle {
  color: #666;
  margin: 0;
  font-size: 1rem;
}

.form-section {
  padding: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.form-section h3 {
  margin: 0 0 1rem 0;
  color: #444;
  font-size: 1.2rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #444;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  background-color: white;
  box-sizing: border-box;
}

.form-control:focus {
  border-color: #4a86e8;
  outline: none;
  box-shadow: 0 0 0 2px rgba(74, 134, 232, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.rating-input-container {
  position: relative;
}

.rating-input {
  width: 100%;
}

.rating-helper {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #666;
}

.form-actions {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.form-actions .button:only-child {
  margin-left: auto;
}

.action-buttons {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.action-buttons .button:only-child {
  margin-left: auto;
}

.form-footer {
  padding: 1rem;
  background-color: #f9f9f9;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
}

.button {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-size: 1rem;
}

.primary-button {
  background-color: #4a86e8;
  color: white;
}

.primary-button:hover {
  background-color: #3a76d8;
}

.secondary-button {
  background-color: #28a745;
  color: white;
}

.secondary-button:hover {
  background-color: #218838;
}

.outline-button {
  background-color: transparent;
  color: #4a86e8;
  border: 1px solid #4a86e8;
}

.outline-button:hover {
  background-color: #f0f7ff;
}

.button .icon {
  margin-right: 0.5rem;
}

/* Error messages styling */
.error-messages {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #f8d7da;
  border-left: 4px solid #dc3545;
  color: #721c24;
  border-radius: 4px;
}

.error-messages h2 {
  margin-top: 0;
  font-size: 1.1rem;
  color: #721c24;
}

.error-messages ul {
  margin-bottom: 0;
  padding-left: 1.5rem;
}

/* Field with errors styling */
.field_with_errors input,
.field_with_errors textarea,
.field_with_errors select {
  border-color: #dc3545 !important;
  background-color: #fff8f8;
}

.field_with_errors label {
  color: #dc3545;
}

.field-error-message {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: block;
}

.field_with_errors .form-control {
  border-color: #dc3545;
}
/* Authentication Pages Styling */
.auth-container {
  max-width: 500px;
  margin: 2rem auto;
  padding: 1rem;
}

.auth-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  overflow: hidden;
}

.auth-header {
  padding: 2rem 2rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
}

.auth-header h1 {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 1.8rem;
}

.auth-subtitle {
  color: #666;
  margin: 0;
  font-size: 1rem;
}

.auth-form {
  padding: 2rem;
}

.input-with-icon {
  position: relative;
}

.input-with-icon .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

.input-with-icon .form-control {
  padding-left: 40px;
}

.form-hint {
  font-size: 0.85rem;
  color: #666;
  margin-left: 0.5rem;
}

.form-check {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.form-check-input {
  margin-right: 0.5rem;
}

.form-check-label {
  font-size: 0.95rem;
  color: #444;
}

.full-width-button {
  width: 100%;
  justify-content: center;
  padding: 0.75rem;
  font-size: 1.1rem;
}

.auth-footer {
  padding: 1.5rem 2rem;
  background-color: #f9f9f9;
  border-top: 1px solid #e0e0e0;
}

.auth-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-link {
  display: flex;
  align-items: center;
  color: #4a86e8;
  text-decoration: none;
  font-size: 0.95rem;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-link .icon {
  margin-right: 0.5rem;
}

.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem;
  border-radius: 4px;
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  color: #333;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 1rem;
}

.social-button:hover {
  background-color: #e9ecef;
}

.social-button .icon {
  margin-right: 0.5rem;
}
/* Account Settings Page Styling */
.danger-zone {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: #fff5f5;
  border: 1px solid #f8d7da;
  border-radius: 8px;
}

.danger-zone h3 {
  color: #dc3545;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.danger-zone p {
  color: #721c24;
  margin-bottom: 1rem;
}

.danger-button {
  background-color: #dc3545;
  color: white;
  border: none;
}

.danger-button:hover {
  background-color: #c82333;
}

.section-hint {
  color: #666;
  font-size: 0.9rem;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

.form-alert {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  color: #856404;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

/* Clean Authentication Design - Only for auth pages */

/* Global auth page styling */
.auth-page {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  padding: 2rem 1rem;
}

.auth-page .auth-container {
  width: 100%;
  max-width: 400px;
}

.auth-page .auth-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  border: 1px solid #e9ecef;
}

.auth-page .auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-page .auth-header h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #212529;
  margin: 0 0 0.5rem 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.auth-page .auth-subtitle {
  color: #6c757d;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.4;
}

.auth-page .auth-form {
  margin-bottom: 1.5rem;
}

.auth-page .form-group {
  margin-bottom: 1.25rem;
}

.auth-page .form-group label {
  display: block;
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.auth-page .form-hint {
  display: block;
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.auth-page .form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #f8f9fa;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.auth-page .form-input:focus {
  outline: none;
  border-color: #4285f4;
  background-color: white;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.auth-page .form-input:hover {
  border-color: #adb5bd;
}

/* Checkbox styling for auth pages */
.auth-page .form-check {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 0.5rem;
}

.auth-page .form-check-input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #4285f4;
}

.auth-page .form-check-label {
  font-size: 0.9rem;
  color: #495057;
  cursor: pointer;
  margin: 0;
}

.auth-page .form-actions {
  margin-top: 2rem;
}

.auth-page .auth-button {
  width: 100%;
  background-color: #4285f4;
  color: white;
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-family: inherit;
}

.auth-page .auth-button:hover {
  background-color: #3367d6;
}

.auth-page .auth-button:active {
  background-color: #2c5aa0;
}

.auth-page .auth-links {
  text-align: center;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-page .auth-link {
  color: #4285f4;
  text-decoration: none;
  font-size: 0.9rem;
}

.auth-page .auth-link:hover {
  text-decoration: underline;
}

/* Error messages styling for auth pages */
.auth-page .field_with_errors {
  display: contents;
}

.auth-page .field_with_errors .form-input {
  border-color: #dc3545;
  background-color: #fff5f5;
}

.auth-page .field_with_errors .form-input:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.auth-page #error_explanation {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.auth-page #error_explanation h2 {
  color: #721c24;
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
}

.auth-page #error_explanation ul {
  margin: 0;
  padding-left: 1.25rem;
  color: #721c24;
}

.auth-page #error_explanation li {
  font-size: 0.9rem;
}

/* Responsive design for auth pages */
@media (max-width: 768px) {
  .auth-page {
    padding: 1rem 0.5rem;
  }
  
  .auth-page .auth-card {
    padding: 1.5rem;
  }
  
  .auth-page .auth-header h2 {
    font-size: 1.5rem;
  }
}
body {
  background: linear-gradient(180deg, #f8f9fa 0%, #e3f2fd 50%, #f8f9fa 100%);
  min-height: 100vh;
}

/* Homepage Styles */
.homepage {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 0 40px 0;
  text-align: center;
}

.hero-content {
  margin-bottom: 40px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.tagline {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.hero-image {
  width: 100%;
}

.hero-image img {
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.btn {
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  transition: all 0.2s;
}

.btn-primary {
  background: #007bff;
  color: white;
  border: 2px solid #007bff;
}

.btn-primary:hover {
  background: #0056b3;
  border-color: #0056b3;
}

.btn-secondary {
  background: transparent;
  color: #007bff;
  border: 2px solid #007bff;
}

.btn-secondary:hover {
  background: #007bff;
  color: white;
}

.btn-dark {
  background: #1a1a1a;
  color: white;
  border: 2px solid #1a1a1a;
}

.btn-dark:hover {
  background: #333;
  border-color: #333;
}

.stories-section {
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}

.stories-section h2 {
  font-size: 2.5rem;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.section-subtitle {
  color: #666;
  margin-bottom: 48px;
  font-size: 1.1rem;
}

.stories-grid {
  display: flex;
  gap: 24px;
  overflow: hidden;
  animation: scroll-left 60s linear infinite;
  width: max-content;
}

.stories-grid:hover {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.stories-grid .gripe-card {
  min-width: 350px;
  max-width: 350px;
  height: 280px;
  flex-shrink: 0;
}

.post-gripe-section, .about-section {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 80px 0;
}

.post-gripe-section {
  margin: 0 -20px;
  padding: 80px 20px;
}

.about-section {
  margin: 0 -20px;
  padding: 80px 20px;
}

.section-content {
  flex: 1;
  max-width: 50%;
}

.section-content h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.section-content p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 32px;
  line-height: 1.6;
}

.section-image {
  flex: 1;
  max-width: 50%;
}

.section-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-section, .post-gripe-section, .about-section {
    flex-direction: column;
    gap: 40px;
    padding: 60px 0;
  }
  
  .about-section .section-content {
    order: 1;
  }
  
  .about-section .section-image {
    order: 2;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .section-content h2 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .stories-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .hero-image img, .section-image img {
    height: 300px;
  }
}
.rating-icon {
  width: 48px;
  height: 48px;
  display: block;
}
.rating-icon-small {
  width: 32px;
  height: 32px;
  display: inline-block;
}
.rating-icon-medium {
  width: 40px;
  height: 40px;
  display: inline-block;
}
.carrier-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.carrier-card-link:hover .carrier-card {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.site-footer {
  text-align: center;
  padding: 20px 1rem;
  margin-top: 40px;
  border-top: 1px solid #e9ecef;
  color: #6c757d;
  font-size: 0.9rem;
}

.footer-copyright {
  margin-bottom: 8px;
}

.footer-links {
  font-size: 0.85rem;
}

.site-footer a {
  color: #6c757d;
  text-decoration: none;
}

.site-footer a:hover {
  color: #495057;
  text-decoration: underline;
}

/* Mobile footer improvements */
@media (max-width: 768px) {
  .site-footer {
    padding: 15px 1rem;
    font-size: 0.8rem;
  }
  
  .footer-links {
    font-size: 0.75rem;
    line-height: 1.4;
  }
}
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  line-height: 1.6;
}

.legal-effective-date {
  color: #666;
  font-style: italic;
  margin-bottom: 2rem;
}

.legal-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
  color: #666;
  font-size: 0.9rem;
}

/* Checkbox styling for TOS acceptance */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 1rem 0;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.checkbox-group label {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #333;
}

.legal-link {
  color: #4285f4;
  text-decoration: underline;
}

.legal-link:hover {
  color: #3367d6;
}
}

.legal-content h2 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: #333;
}

.legal-content p {
  margin-bottom: 15px;
}

.legal-notice {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 15px;
  margin-top: 30px;
}

.legal-notice p {
  margin: 0;
  font-size: 0.9rem;
  color: #6c757d;
}
.archive-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: rgba(108, 117, 125, 0.9);
  color: white;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
  z-index: 1;
}

.gripe-card {
  position: relative;
}
.action-button.archive-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
  color: #6c757d;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
}

.action-button.archive-button:hover {
  background-color: #e9ecef;
  color: #495057;
}
/* Consistent nav link hover styles */
.nav-link {
  color: inherit;
  text-decoration: none;
  padding: 8px 12px;
  transition: color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  display: inline-block;
}

.nav-link:hover {
  color: #007bff;
  background-color: transparent;
}

/* Make button_to look exactly like link_to */
form .nav-link {
  background: none;
  border: none;
  padding: 8px 12px;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
}

form .nav-link:hover {
  color: #007bff;
  background-color: transparent;
}

button.nav-link.user-profile {
  all: unset;
  font-size: 1.2rem;
  border-radius: 50%;
  color: inherit;
  padding: 8px 12px;
  transition: color 0.2s ease;
  cursor: pointer;
  display: inline-block;
  font-family: inherit;
}

button.nav-link.user-profile:hover {
  color: #007bff !important;
  background-color: transparent !important;
}
/* Capacity Dashboard Styles */
.last-updated {
  font-size: 0.9em;
  color: #666;
  margin-top: 5px;
}

.capacity-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.metric-card {
  display: flex;
  align-items: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #007bff;
}

.metric-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 12px;
  margin-right: 15px;
}

.metric-icon-good { background-color: #28a745; }
.metric-icon-warning { background-color: #ffc107; }
.metric-icon-danger { background-color: #fd7e14; }
.metric-icon-critical { background-color: #dc3545; }
.metric-icon-performance { background-color: #17a2b8; }

.metric-content {
  flex: 1;
}

.metric-label {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 5px;
}

.metric-value {
  font-size: 1.5em;
  font-weight: bold;
  color: #333;
}

.scaling-status {
  margin-top: 20px;
}

.status-row {
  display: flex;
  gap: 40px;
  margin-bottom: 20px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-label {
  font-weight: 500;
  color: #666;
}

.status-value {
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
}

.status-good { color: #28a745; background-color: #d4edda; }
.status-warning { color: #856404; background-color: #fff3cd; }
.status-danger { color: #721c24; background-color: #f8d7da; }
.status-critical { color: #721c24; background-color: #f5c6cb; }

.recommendation-box {
  background: #e9ecef;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #007bff;
}

.recommendation-title {
  font-weight: bold;
  color: #495057;
  margin-bottom: 10px;
}

.recommendation-text {
  font-size: 1.1em;
  color: #333;
  margin-bottom: 10px;
}

.next-review {
  font-size: 0.9em;
  color: #666;
}

.performance-grid, .health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.performance-item, .health-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 3px solid #007bff;
}

.perf-label, .health-label {
  font-size: 0.9em;
  color: #666;
}

.perf-value, .health-value {
  font-weight: bold;
  color: #333;
}

.peak-usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.peak-item {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border-top: 4px solid #007bff;
}

.peak-label {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 10px;
  display: block;
}

.peak-value {
  font-size: 1.3em;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.peak-detail {
  font-size: 0.9em;
  color: #666;
}

/* Historical Trends Styles */
.data-notice {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.fallback-indicator {
  color: #ffc107;
  font-weight: bold;
}

.fallback-note {
  margin-top: 10px;
  font-size: 0.9em;
  color: #666;
  font-style: italic;
}

.trend-summary {
  display: flex;
  gap: 30px;
  margin-bottom: 25px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  flex-wrap: wrap;
}

.trend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trend-label {
  font-weight: 500;
  color: #666;
}

.trend-value {
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
}

.trend-improving { color: #28a745; background-color: #d4edda; }
.trend-degrading { color: #dc3545; background-color: #f8d7da; }
.trend-stable { color: #6c757d; background-color: #e2e3e5; }
.trend-neutral { color: #495057; background-color: #e9ecef; }

.historical-table {
  margin-top: 20px;
  overflow-x: auto;
}

.trend-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.trend-table th {
  background: #007bff;
  color: white;
  padding: 12px;
  text-align: left;
  font-weight: 600;
}

.trend-table td {
  padding: 12px;
  border-bottom: 1px solid #dee2e6;
}

.trend-table tbody tr:hover {
  background-color: #f8f9fa;
}

.period-label {
  font-weight: 500;
  color: #495057;
}

/* Growth and Pattern Styles */
.growth-summary {
  display: flex;
  gap: 30px;
  margin-bottom: 25px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  flex-wrap: wrap;
}

.growth-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.growth-label {
  font-weight: 500;
  color: #666;
}

.growth-value {
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
}

.growth-rapid { color: #dc3545; background-color: #f8d7da; }
.growth-positive { color: #28a745; background-color: #d4edda; }
.growth-negative { color: #fd7e14; background-color: #fff3cd; }
.growth-stable { color: #6c757d; background-color: #e2e3e5; }

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.pattern-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #007bff;
}

.pattern-section h3 {
  margin: 0 0 15px 0;
  color: #495057;
  font-size: 1.1em;
}

.pattern-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pattern-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: white;
  border-radius: 4px;
  border-left: 3px solid #007bff;
}

.pattern-time {
  font-weight: 500;
  color: #495057;
}

.pattern-count {
  font-weight: bold;
  color: #007bff;
}

@media (max-width: 768px) {
  .capacity-metrics {
    grid-template-columns: 1fr;
  }
  
  .status-row {
    flex-direction: column;
    gap: 15px;
  }
  
  .performance-grid, .health-grid {
    grid-template-columns: 1fr;
  }
  
  .peak-usage-grid {
    grid-template-columns: 1fr;
  }
  
  .trend-summary, .growth-summary {
    flex-direction: column;
    gap: 15px;
  }
  
  .pattern-grid {
    grid-template-columns: 1fr;
  }
  
  .trend-table {
    font-size: 0.9em;
  }
}
.page-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 0 20px;
}

.content-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 40px;
  border: 1px solid #e9ecef;
}

.page-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.page-subtitle {
  color: #6c757d;
  font-size: 1rem;
  margin: 0;
}

.account-form .form-section {
  margin-bottom: 32px;
}

.account-form .form-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.section-description {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 500;
  color: #495057;
  margin-bottom: 6px;
}

.form-hint {
  font-size: 0.85rem;
  color: #6c757d;
  margin-left: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-notice {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
  padding: 12px;
  border-radius: 6px;
  margin-top: 8px;
  font-size: 0.9rem;
}

.form-actions {
  margin-top: 24px;
}

.danger-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #e9ecef;
}

.danger-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #dc3545;
  margin-bottom: 8px;
}

.danger-button {
  background-color: #dc3545;
  color: white;
  border: none;
}

.danger-button:hover {
  background-color: #c82333;
}

.page-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
  text-align: center;
}
/* User Menu Dropdown - Accessible Version */
.user-menu {
  position: relative;
  display: inline-block;
}

.user-profile {
  background: none;
  border: none;
  cursor: pointer;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 160px;
  z-index: 1000;
  display: none;
}

.user-dropdown[aria-hidden="false"] {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 12px 16px;
  color: #495057;
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid #f8f9fa;
  transition: background-color 0.2s ease;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #f8f9fa;
  color: #007bff;
  outline: 2px solid #007bff;
  outline-offset: -2px;
}

.dropdown-item:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.dropdown-item:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
/* My Reports Page - Updated to match Account Settings */
.reports-list .form-section {
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 24px;
}

.reports-list .form-section:last-child {
  border-bottom: none;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.report-header h2 {
  margin: 0;
  color: #2c3e50;
}

.report-date {
  font-size: 0.9rem;
  color: #6c757d;
}

.report-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}

.report-meta .form-hint {
  margin: 0;
}

/* Analytics Dashboard */
.funnel-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
}

.funnel-step {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 12px 20px;
  min-width: 300px;
  transition: background-color 0.2s ease;
}

.funnel-step.completed {
  background: #d4edda;
  border-color: #c3e6cb;
}

.step-label {
  font-weight: 500;
  color: #495057;
}

.step-count {
  font-weight: 600;
  color: #007bff;
  font-size: 1.1rem;
}

.funnel-arrow {
  font-size: 1.5rem;
  color: #6c757d;
}

.completion-rate {
  text-align: center;
  margin-top: 20px;
  padding: 12px;
  background: #e7f3ff;
  border-radius: 6px;
  color: #0056b3;
}

.dropoff-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}

.dropoff-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
  align-items: center;
}

.transition {
  font-weight: 500;
}

.dropoff-count {
  color: #dc3545;
  font-weight: 500;
}

.dropoff-rate {
  color: #dc3545;
  font-weight: 600;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}

.activity-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 4px;
}

.event-name {
  color: #495057;
}

.event-count {
  font-weight: 600;
  color: #007bff;
}

/* Share Buttons */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.share-label {
  font-weight: 600;
  color: #495057;
}

.share-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.twitter-btn {
  background: #1da1f2;
  color: white;
}

.twitter-btn:hover {
  background: #0d8bd9;
}

.facebook-btn {
  background: #4267b2;
  color: white;
}

.facebook-btn:hover {
  background: #365899;
}

.copy-btn {
  background: #6c757d;
  color: white;
}

.copy-btn:hover {
  background: #545b62;
}
