/* AI Autocomplete Component Styles */

/* Container for input and ghost text overlay */
.ai-autocomplete-container {
  position: relative;
}

/* Ghost text overlay styling */
.ai-autocomplete-suggestion {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

/* Ghost text content that appears behind input */
.ai-autocomplete-suggestion-text {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.5rem 0.75rem; /* Match input padding */
  font-family: inherit;
  font-size: 0.875rem; /* sm:text-sm */
  line-height: 1.25rem;
  color: rgb(156, 163, 175); /* text-gray-400 */
  white-space: pre-wrap;
  word-break: break-word;
  opacity: 0.6;
}

/* Ensure input has higher z-index and transparent background */
.ai-autocomplete-input {
  position: relative;
  z-index: 2;
  background-color: transparent;
}

/* Loading indicator animation */
.ai-autocomplete-loading {
  animation: ai-spin 1s linear infinite;
}

@keyframes ai-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Feedback UI styling */
.ai-autocomplete-feedback {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background-color: rgb(249, 250, 251); /* bg-gray-50 */
  border-radius: 0.375rem;
  margin-top: 0.5rem;
}

.ai-autocomplete-feedback button {
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: background-color 0.15s ease;
}

.ai-autocomplete-feedback button:hover {
  background-color: rgb(229, 231, 235); /* bg-gray-200 */
}

/* Highlight text when suggestion is active */
.ai-autocomplete-active .ai-autocomplete-suggestion-text {
  animation: ai-pulse 2s ease-in-out infinite;
}

@keyframes ai-pulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
  }
}

/* Textarea specific adjustments */
textarea.ai-autocomplete-input {
  resize: vertical;
  min-height: 4rem;
}

.ai-autocomplete-container textarea + .ai-autocomplete-suggestion .ai-autocomplete-suggestion-text {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
/* Purposive Design System Components */

/*
 * Layout Components
 */

/* Full-page authentication layout with gradient background */
.app-page {
  @apply min-h-screen bg-gradient-to-br from-slate-50 via-blue-50 to-slate-100;
}

/* Centered authentication container */
.app-container {
  @apply flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8;
}

/*
 * Brand Components
 */

/* Main Purposive logo icon */
.app-logo {
  @apply h-16 w-16 bg-gradient-to-br from-primary-500 to-primary-700 rounded-xl flex items-center justify-center shadow-soft mb-6 mx-auto;
}

/* Small logo for navigation */
.app-logo-small {
  @apply w-8 h-8 bg-gradient-to-br from-primary-500 to-primary-700 rounded-lg flex items-center justify-center shadow-soft;
}

/*
 * Card Components
 */

/* Main content card */
.app-card {
  @apply bg-white rounded-2xl shadow-soft p-8;
}

/* Large form container */
.app-card-large {
  @apply max-w-md w-full space-y-8;
}

/* Extra large form container for settings pages */
.app-card-xl {
  @apply max-w-2xl mx-auto space-y-8;
}

/* Danger/warning card with left border */
.app-card-danger {
  @apply bg-white rounded-2xl shadow-soft p-8 border-l-4 border-error-500;
}

/*
 * Typography Components
 */

/* Main page heading */
.app-heading {
  @apply text-3xl font-bold text-slate-900 mb-2;
}

/* Page subheading */
.app-subheading {
  @apply text-slate-600;
}

/* Section heading */
.app-section-heading {
  @apply text-xl font-bold text-slate-900 mb-6;
}

/* Subsection heading */
.app-subsection-heading {
  @apply text-lg font-semibold text-slate-900 mb-4;
}

/*
 * Form Components
 */

/* Form container with spacing */
.app-form {
  @apply space-y-6;
}

/* Standard form field container */
.app-field {
  @apply space-y-4;
}

/* Form label */
.app-label {
  @apply block text-sm font-medium text-slate-700 mb-2;
}

/* Helper text for forms */
.app-help-text {
  @apply text-xs text-slate-500 mb-2;
}

/* Validation text */
.app-validation-text {
  @apply mt-1 text-xs text-slate-500;
}

/* Standard text input */
.app-input {
  @apply w-full px-4 py-3 border border-slate-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-primary-500 transition-colors;
}

/*
 * Button Components
 */

/* Primary button with gradient and hover effects */
.app-btn-primary {
  @apply w-full bg-[#1e3a5f] hover:bg-[#2d5aa0] text-white font-semibold py-3 px-6 rounded-lg transition-colors duration-200;
}

/* Small primary button */
.app-btn-primary-sm {
  @apply inline-flex items-center bg-[#1e3a5f] hover:bg-[#2d5aa0] text-white font-medium py-2 px-4 rounded-md text-sm transition-colors duration-200;
}

/* Secondary button with white background */
.app-btn-secondary {
  @apply w-full bg-white hover:bg-slate-50 text-slate-700 font-semibold py-3 px-6 rounded-lg transition-all duration-200 border border-slate-300 hover:border-slate-400 shadow-soft;
}

/* Small secondary button */
.app-btn-secondary-sm {
  @apply inline-flex items-center bg-white hover:bg-slate-50 text-slate-700 font-medium py-2 px-4 rounded-md text-sm transition-all duration-200 border border-slate-300 hover:border-slate-400;
}

/* Outline button */
.app-btn-outline {
  @apply inline-flex items-center bg-white hover:bg-slate-50 text-slate-700 font-medium py-3 px-6 rounded-lg transition-all duration-200 border border-slate-300 hover:border-slate-400;
}

/* Small outline button */
.app-btn-outline-sm {
  @apply inline-flex items-center bg-white hover:bg-slate-50 text-slate-700 font-medium py-2 px-4 rounded-md text-sm transition-all duration-200 border border-slate-300 hover:border-slate-400;
}

/* Danger button for destructive actions */
.app-btn-danger {
  @apply bg-error-600 hover:bg-error-700 text-white font-semibold py-3 px-6 rounded-lg transition-all duration-200 shadow-soft;
}

/* Small danger button */
.app-btn-danger-sm {
  @apply inline-flex items-center bg-red-600 hover:bg-red-700 text-white font-medium py-2 px-4 rounded-md text-sm transition-all duration-200;
}

/* Link-style button */
.app-btn-link {
  @apply text-primary-600 hover:text-primary-700 font-medium transition-colors;
}

/*
 * Alert Components
 */

/* Success alert */
.app-alert-success {
  @apply bg-success-50 border border-success-200 rounded-lg p-4;
}

/* Error alert */
.app-alert-error {
  @apply bg-error-50 border border-error-200 rounded-lg p-4;
}

/* Warning alert */
.app-alert-warning {
  @apply bg-warning-50 border border-warning-200 rounded-lg p-4;
}

/*
 * Utility Components
 */

/* Section divider */
.app-divider {
  @apply border-t pt-6;
}

/* Center content */
.app-center {
  @apply text-center;
}

/* Icon in alerts */
.app-icon-alert {
  @apply w-5 h-5 mt-0.5;
}

/* SVG icon in logo */
.app-icon-logo {
  @apply w-8 h-8 text-white;
}

/* Small SVG icon in navigation logo */
.app-icon-logo-small {
  @apply w-5 h-5 text-white;
}

/*
 * Layout Utilities for Responsive Design
 */

/* Flex layout for button groups */
.app-button-group {
  @apply flex flex-col sm:flex-row gap-4;
}

/* Grid layout for form sections */
.app-form-section {
  @apply space-y-4;
}

/* Mobile-responsive padding */
.app-mobile-padding {
  @apply py-12 px-4 sm:px-6 lg:px-8;
}

/*
 * Component Combinations
 */

/* Complete authentication page layout */
.app-auth-page {
  @apply min-h-screen bg-gradient-to-br from-slate-50 via-blue-50 to-slate-100 flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8;
}

/* Authentication form container */
.app-auth-container {
  @apply max-w-md w-full space-y-8;
}

/* Settings page layout */
.app-settings-page {
  @apply min-h-screen bg-gradient-to-br from-slate-50 via-blue-50 to-slate-100 py-12 px-4 sm:px-6 lg:px-8;
}

/* Settings form container */
.app-settings-container {
  @apply max-w-2xl mx-auto space-y-8;
}
/* Dashboard Styles */

.organization-dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dashboard-title h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
}

.dashboard-title p {
  color: #6b7280;
  margin: 0;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.progress-indicator {
  margin-right: 1rem;
}

.progress-label {
  display: block;
  font-size: 0.875rem;
  color: #374151;
  margin-bottom: 0.5rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon--blue {
  background-color: #dbeafe;
  color: #2563eb;
}

.stat-icon--green {
  background-color: #d1fae5;
  color: #10b981;
}

.stat-icon--purple {
  background-color: #ede9fe;
  color: #8b5cf6;
}

.stat-icon--yellow {
  background-color: #fef3c7;
  color: #f59e0b;
}

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1f2937;
}

/* Actions Grid */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.action-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
  display: block;
}

.action-card:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.action-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.action-icon--objectives {
  background-color: #dbeafe;
  color: #2563eb;
}

.action-icon--team {
  background-color: #ede9fe;
  color: #8b5cf6;
}

.action-icon--settings {
  background-color: #e5e7eb;
  color: #6b7280;
}

.action-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.action-description {
  color: #6b7280;
  font-size: 0.875rem;
}

/* OKR Summary */
.okr-summary {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

/* Objective Cards */
.objective-cards {
  display: grid;
  gap: 1rem;
}

.objective-card {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.objective-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.objective-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.objective-period {
  font-size: 0.875rem;
  color: #6b7280;
  background: #e5e7eb;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.objective-description {
  color: #4b5563;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Key Results */
.key-results {
  display: grid;
  gap: 0.75rem;
}

.key-result {
  background: white;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.key-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.key-result-title {
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

.key-result-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background-color: #3b82f6;
  color: white;
}

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

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

.btn--secondary:hover {
  background-color: #4b5563;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 3rem;
}

.empty-state__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  opacity: 0.3;
}

.empty-state__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.empty-state__description {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .organization-dashboard {
    padding: 1rem;
  }

  .dashboard-header {
    flex-direction: column;
    gap: 1rem;
  }

  .dashboard-actions {
    flex-direction: column;
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .actions-grid {
    grid-template-columns: 1fr;
  }
}
/* Icon component styles and animations */

/* Brand colors for icons */
.text-brand-navy {
  color: #1e3a5f;
}

.text-brand-coral {
  color: #ff6b47;
}

.text-brand-gold {
  color: #f5a623;
}

.text-brand-teal {
  color: #2d5aa0;
}

/* Sparkles animation - sequential twinkling effect */
@keyframes sparkle-sequence {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(0.8);
  }
}

/* Apply animation to sparkles icon paths */
.animate-sparkle > path:nth-child(1) {
  animation: sparkle-sequence 1.5s ease-in-out infinite;
  animation-delay: 0s;
  transform-origin: center;
}

.animate-sparkle > path:nth-child(2) {
  animation: sparkle-sequence 1.5s ease-in-out infinite;
  animation-delay: 0.5s;
  transform-origin: center;
}

.animate-sparkle > path:nth-child(3) {
  animation: sparkle-sequence 1.5s ease-in-out infinite;
  animation-delay: 1s;
  transform-origin: center;
}

/* Ensure smooth transitions for icon state changes */
.icon-transition {
  transition: all 0.3s ease;
}
.sidebar {
  position: fixed;
  left: 0;
  top: 64px; /* Height of the header navigation */
  bottom: 0;
  width: 280px;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  z-index: 40;
  transition: transform 0.3s ease;
}

.sidebar__content {
  height: 100%;
  overflow-y: auto;
  padding: 0.8rem; /* 20% smaller than 1rem */
  display: flex;
  flex-direction: column;
}

.sidebar__header {
  margin-bottom: 0.4rem;
}

.sidebar__title {
  font-size: 1rem; /* 20% smaller than 1.25rem */
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.sidebar__back-link {
  display: flex;
  align-items: center;
  color: #6b7280;
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 0.8rem; /* 20% smaller than 1rem */
}

.sidebar__back-link:hover {
  color: #374151;
}

.sidebar__back-icon {
  margin-right: 0.4rem; /* 20% smaller than 0.5rem */
}

.sidebar__organization-name {
  font-size: 0.9rem; /* 20% smaller than 1.125rem */
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 1.2rem 0; /* 20% smaller than 1.5rem */
}

.sidebar__nav-list,
.sidebar__org-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar__nav-item,
.sidebar__org-item {
  margin-bottom: 0.2rem; /* 20% smaller than 0.25rem */
}

.sidebar__nav-link,
.sidebar__org-link {
  display: flex;
  align-items: center;
  padding: 0.4rem;
  color: #374151;
  text-decoration: none;
  border-radius: 0.4rem; /* 20% smaller than 0.5rem */
  transition: background-color 0.2s;
  font-size: 0.875rem; /* 20% smaller text */
}

.sidebar__nav-link:hover,
.sidebar__org-link:hover {
  background-color: #f3f4f6;
}

.sidebar__nav-link--active {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.sidebar__nav-icon {
  margin-right: 0.6rem; /* 20% smaller than 0.75rem */
  color: currentColor;
}

.sidebar__org-name {
  font-weight: 500;
}

.sidebar__actions {
  margin-top: 1.2rem; /* 20% smaller than 1.5rem */
  padding-top: 1.2rem; /* 20% smaller than 1.5rem */
  border-top: 1px solid #e5e7eb;
}

.sidebar__new-org-btn {
  display: flex;
  align-items: center;
  width: 70%; /* 30% less wide than 100% */
  padding: 0.6rem; /* 20% smaller than 0.75rem */
  background-color: #3b82f6;
  color: white;
  text-decoration: none;
  border-radius: 0.4rem; /* 20% smaller than 0.5rem */
  font-weight: 500;
  font-size: 0.875rem; /* 20% smaller text */
  transition: background-color 0.2s;
}

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

.sidebar__new-org-icon {
  margin-right: 0.4rem; /* 20% smaller than 0.5rem */
}

/* Account Settings link styling */
.sidebar__bottom {
  margin-top: auto;
  padding: 1.2rem 0; /* Add space above */
  border-top: 1px solid #e5e7eb;
}

.sidebar__account-settings-link {
  display: flex;
  align-items: center;
  padding: 0.4rem;
  color: #6b7280;
  text-decoration: none;
  border-radius: 0.4rem;
  transition: all 0.2s;
  font-size: 0.875rem;
  font-weight: 500;
}

.sidebar__account-settings-link:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.sidebar__account-settings-icon {
  margin-right: 0.6rem;
  color: currentColor;
  width: 16px;
  height: 16px;
}

/* Mobile styles */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 1000;
    /* Ensure mobile sidebar also starts below header with separator line */
    top: 64px;
    border-top: 1px solid #e5e7eb;
  }

  .sidebar.visible {
    transform: translateX(0);
  }
}

/* Mobile menu backdrop */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 30;
  transition: opacity 0.2s;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

/* Main content adjustment */
.main-wrapper {
  margin-left: 280px;
  padding-top: 64px; /* Height of the header navigation */
  min-height: 100vh;
  overflow-y: auto;
}

/* Flash messages adjustment for authenticated users (always have sidebar) */
.flash-wrapper {
  margin-left: 280px; /* Always account for sidebar */
  max-width: calc(100% - 280px);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  margin-top: 87px; /* Account for fixed header */
}

@media (max-width: 768px) {
  .main-wrapper {
    margin-left: 0;
    padding-top: 64px; /* Keep padding-top on mobile */
  }

  /* On mobile, sidebar is hidden so flash-wrapper should have no margin */
  .flash-wrapper {
    margin-left: 0;
    max-width: 100%;
    margin-top: 87px; /* Account for fixed header on mobile */
  }
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px 0 rgba(0, 0, 0, 0.06);
  transition: all 0.2s;
}

/* Only show on mobile screens */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Hide on desktop screens */
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle:hover {
  background-color: #f9fafb;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.mobile-menu-toggle svg {
  color: #374151;
}

/* Ensure header border extends full width on mobile */
@media (max-width: 768px) {
  nav.bg-white.border-b {
    margin-left: -280px;
    padding-left: 280px;
    width: calc(100vw + 280px);
  }
}
/*
 * 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.
 *


 */

/* Reset and base styles */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial,
    sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
  position: relative;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #333;
  margin-top: 0;
}

/* Links */
a:not([class*='btn']):not([class*='bg-']):not([class*='sidebar__']):not([class*='text-']):not(
    [class*='hover:']
  ) {
  color: #007bff;
  text-decoration: none;
}

a:not([class*='btn']):not([class*='bg-']):not([class*='sidebar__']):not([class*='text-']):not(
    [class*='hover:']
  ):hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.btn-primary:hover {
  background-color: #0056b3;
  text-decoration: none;
}

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

.btn-secondary:hover {
  background-color: #545b62;
  text-decoration: none;
}

/* Forms */
.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 16px;
}

.form-control:focus {
  border-color: #007bff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Utility class to hide placeholder text when AI ghost text is shown */
.placeholder-transparent::placeholder {
  opacity: 0;
}

/* Flash messages */
.alert {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
}

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

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

/* Progress bars */
.progress-bar {
  height: 8px;
  background-color: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #28a745;
  transition: width 0.3s ease;
}

/* Cards */
.card {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Navigation */
.navbar {
  background-color: #007bff;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.navbar a {
  color: white;
  margin-right: 1rem;
}

.navbar a:hover {
  color: #cce7ff;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .btn {
    width: 100%;
    margin-bottom: 10px;
  }
}

/* Three-part layout classes - brand-agnostic naming per UI guide */

/* Main layout container - handles scrolling */
.app-layout-main {
  margin-left: 280px;
  padding-top: 64px; /* Height of the header navigation */
  min-height: 100vh;
  overflow-y: auto;
  background-color: #f8fafc; /* slate-50 per UI guide */
}

/* Reduced padding when flash messages are present */
.app-layout-main--with-flash {
  padding-top: 4px; /* Minimal gap when flash messages present */
}

/* Content area - no height restrictions to allow natural scrolling */
.app-main-content {
  padding: 1rem;
}

.app-page-container {
  /* Consistent page container for authenticated content */
  max-width: 1280px; /* max-w-7xl */
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem; /* 1.5rem on all sides */
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .app-layout-main {
    margin-left: 0;
    padding-top: 64px; /* Keep padding-top on mobile */
  }

  .app-layout-main--with-flash {
    padding-top: 4px; /* Consistent minimal padding on mobile */
  }

  .app-main-content {
    padding: 0.5rem;
  }

  .app-page-container {
    padding: 1rem;
  }
}
