@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');/* ============================================================================
   ERROR BOUNDARY STYLES
   ============================================================================ */

.error-boundary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  font-family: var(--font-family);
}

.error-boundary-content {
  max-width: 600px;
  width: 100%;
  background: var(--color-background);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

/* Header Section */
.error-boundary-header {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  padding: var(--spacing-xl);
  text-align: center;
}

.error-boundary-title {
  margin: 0 0 var(--spacing-md) 0;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.error-boundary-description {
  margin: 0;
  font-size: var(--font-size-lg);
  opacity: 0.9;
  line-height: 1.5;
}

/* Error Details Section */
.error-boundary-details {
  margin: 0;
  border: none;
}

.error-boundary-summary {
  background: var(--color-surface);
  padding: var(--spacing-md) var(--spacing-lg);
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.2s ease;
  user-select: none;
}

.error-boundary-summary:hover {
  background: var(--color-surface-hover);
}

.error-boundary-summary:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: -2px;
}

.error-boundary-summary::marker {
  color: var(--color-secondary);
}

.error-boundary-error-info {
  padding: var(--spacing-lg);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.error-message {
  margin: 0 0 var(--spacing-md) 0;
  color: var(--color-text);
  font-size: var(--font-size-md);
}

.error-stack {
  background: var(--color-surface-dark);
  color: var(--color-text-muted);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: var(--font-size-sm);
  line-height: 1.4;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 200px;
  overflow-y: auto;
}

/* Actions Section */
.error-boundary-actions {
  padding: var(--spacing-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  justify-content: center;
  background: var(--color-background);
}

.error-boundary-btn {
  padding: var(--spacing-md) var(--spacing-lg);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  text-decoration: none;
  font-family: inherit;
}

.error-boundary-btn:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

.error-boundary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Primary Button */
.error-boundary-btn-primary {
  background: var(--color-secondary);
  color: white;
}

.error-boundary-btn-primary:hover:not(:disabled) {
  background: var(--color-secondary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.error-boundary-btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Secondary Buttons */
.error-boundary-btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.error-boundary-btn-secondary:hover:not(:disabled) {
  background: var(--color-surface-hover);
  border-color: var(--color-border-hover);
}

.error-boundary-btn-secondary:active:not(:disabled) {
  background: var(--color-surface-active);
}

/* Spinner Animation */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Max Retries Section */
.error-boundary-max-retries {
  padding: var(--spacing-lg);
  background: var(--color-warning-light);
  border-top: 1px solid var(--color-warning);
  text-align: center;
}

.max-retries-message {
  margin: 0;
  color: var(--color-warning-dark);
  font-weight: 600;
  font-size: var(--font-size-md);
}

/* Recovery Information */
.error-boundary-recovery {
  padding: var(--spacing-lg);
  background: var(--color-info-light);
  border-top: 1px solid var(--color-info);
}

.error-boundary-recovery h3 {
  margin: 0 0 var(--spacing-md) 0;
  color: var(--color-info-dark);
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.error-boundary-recovery ul {
  margin: 0;
  padding-left: var(--spacing-lg);
  color: var(--color-info-dark);
}

.error-boundary-recovery li {
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
}

.error-boundary-recovery strong {
  color: var(--color-info-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
  .error-boundary {
    padding: var(--spacing-md);
  }
  
  .error-boundary-content {
    max-width: 100%;
  }
  
  .error-boundary-header {
    padding: var(--spacing-lg);
  }
  
  .error-boundary-title {
    font-size: var(--font-size-xl);
  }
  
  .error-boundary-description {
    font-size: var(--font-size-md);
  }
  
  .error-boundary-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .error-boundary-btn {
    width: 100%;
    min-width: auto;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .error-boundary {
    background: #000;
  }
  
  .error-boundary-content {
    border: 3px solid #fff;
  }
  
  .error-boundary-header {
    background: #dc0000;
  }
  
  .error-boundary-btn {
    border: 2px solid currentColor;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .error-boundary-btn {
    transition: none;
  }
  
  .spinner {
    animation: none;
  }
  
  .error-boundary-btn-primary:hover:not(:disabled) {
    transform: none;
  }
}

/* Print Styles */
@media print {
  .error-boundary {
    background: white;
    min-height: auto;
    padding: 0;
  }
  
  .error-boundary-content {
    box-shadow: none;
    border: 1px solid #000;
  }
  
  .error-boundary-actions {
    display: none;
  }
  
  .error-boundary-header {
    background: white !important;
    color: black !important;
  }
}

/* Focus Management */
.error-boundary:focus-within {
  outline: none;
}

.error-boundary-content:focus-within {
  outline: 2px solid var(--color-secondary);
  outline-offset: 4px;
}

/* Accessibility Enhancements */
.error-boundary[role="alert"] {
  position: relative;
}

.error-boundary[aria-live="polite"] {
  position: relative;
}

/* Screen Reader Only Content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Error State Indicators */
.error-boundary.has-error {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Loading States */
.error-boundary.is-loading {
  pointer-events: none;
}

.error-boundary.is-loading .error-boundary-btn {
  opacity: 0.7;
}

/* Success States */
.error-boundary.has-recovered {
  animation: success-pulse 0.5s ease-in-out;
}

@keyframes success-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}
.theme-toggle {
  display: flex;
  align-items: center;
}

.theme-select {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-background);
  color: var(--color-text);
  font-size: var(--font-size-md);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 110px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF6B2D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right var(--spacing-sm) center;
  background-size: 16px;
  padding-right: calc(var(--spacing-md) + 16px);
}

.theme-select:hover {
  border-color: var(--color-secondary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.theme-select:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(255, 107, 45, 0.1);
}

.theme-select:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.theme-select option {
  background-color: var(--color-background);
  color: var(--color-text);
}


.logo {
  display: inline-block;
  line-height: 0;
}

.logo__image {
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Size variants */
.logo--small .logo__image {
  height: 24px;
  width: auto;
}

.logo--medium .logo__image {
  height: 32px;
  width: auto;
}

.logo--large .logo__image {
  height: 48px;
  width: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .logo--large .logo__image {
    height: 40px;
  }
  
  .logo--medium .logo__image {
    height: 28px;
  }
}


.header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--spacing-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-secondary-hover) 100%);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-title {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  min-height: 2.5rem; /* Ensure consistent height whether debug info is shown or not */
  justify-content: center;
}

.app-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  line-height: 1.2;
}

.app-info {
  display: flex;
  gap: var(--spacing-md);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  align-items: center;
}

.version, .environment, .git-branch, .git-commit {
  padding: var(--spacing-xs) var(--spacing-sm);
  background-color: var(--color-background);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.header-right {
  display: flex;
  align-items: center;
}

.app-info .environment {
  color: var(--color-text-secondary);
  font-size: var(--font-size-xs);
}

.offline-indicator {
  background: #dc2626;
  color: white;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 600;
  margin-left: var(--spacing-sm);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }
  
  .header-left {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .app-info {
    justify-content: center;
  }
}


.footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--spacing-lg) 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.footer-left p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin: 0;
}

.footer-right {
  display: flex;
  gap: var(--spacing-md);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}



@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }
  
  .request-crawl-job-btn {
    padding: 14px 20px;
    font-size: var(--font-size-sm);
  }
}



.layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding: var(--spacing-lg) 0;
}





.loading-spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  min-height: 200px;
}

.loading-spinner-container.loading-spinner--small {
  padding: var(--spacing-md);
  min-height: 100px;
}

.loading-spinner-container.loading-spinner--large {
  padding: var(--spacing-xl);
  min-height: 300px;
}

.loading-spinner {
  display: flex;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
}

.loading-spinner--small .spinner-circle {
  width: 8px;
  height: 8px;
}

.loading-spinner--medium .spinner-circle {
  width: 12px;
  height: 12px;
}

.loading-spinner--large .spinner-circle {
  width: 16px;
  height: 16px;
}

.spinner-circle {
  background: var(--primary-color);
  border-radius: 50%;
  animation: spinner-bounce 1.4s ease-in-out infinite both;
}

.spinner-circle:nth-child(1) {
  animation-delay: -0.32s;
}

.spinner-circle:nth-child(2) {
  animation-delay: -0.16s;
}

/* Different colors for different types */
.loading-spinner--search .spinner-circle {
  background: #3b82f6; /* Blue for search */
}

.loading-spinner--jobs .spinner-circle {
  background: var(--primary-color); /* Orange for jobs */
}

.loading-spinner--default .spinner-circle {
  background: var(--text-color-secondary); /* Gray for default */
}

.loading-message {
  color: var(--text-color-secondary);
  font-size: 0.9rem;
  text-align: center;
  margin: 0;
  font-weight: 500;
}

.loading-spinner--small .loading-message {
  font-size: 0.8rem;
}

.loading-spinner--large .loading-message {
  font-size: 1rem;
}

/* Animation */
@keyframes spinner-bounce {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Alternative pulse animation for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .spinner-circle {
    animation: spinner-pulse 2s ease-in-out infinite;
  }

  .spinner-circle:nth-child(1) {
    animation-delay: 0s;
  }

  .spinner-circle:nth-child(2) {
    animation-delay: 0.3s;
  }

  .spinner-circle:nth-child(3) {
    animation-delay: 0.6s;
  }

  @keyframes spinner-pulse {
    0%, 100% {
      opacity: 0.3;
    }
    50% {
      opacity: 1;
    }
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .spinner-circle {
    border: 2px solid var(--primary-color);
    background: transparent;
  }

  .loading-spinner--search .spinner-circle {
    border-color: #3b82f6;
  }

  .loading-spinner--jobs .spinner-circle {
    border-color: var(--primary-color);
  }

  .loading-spinner--default .spinner-circle {
    border-color: var(--text-color);
  }
}

/* Dark theme adjustments */
@media (prefers-color-scheme: dark) {
  .loading-message {
    color: var(--text-color-secondary);
  }
}

/* Focus styles for accessibility */
.loading-spinner-container:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.App {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  gap: var(--spacing-lg);
}

.loading-spinner {
  font-size: 3rem;
  animation: spin 2s linear infinite;
}

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

/* Add any app-specific styles here */




/* ==========================================================================
   COMMON COMPONENT STYLES
   ========================================================================== */
/* ==========================================================================
   TOAST NOTIFICATION STYLES
   ========================================================================== */
.toast {
  position: fixed !important;
  padding: 16px 20px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  z-index: 999999 !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
  max-width: 400px !important;
  word-wrap: break-word !important;
  color: white !important;
  opacity: 0 !important;
  transform: translateX(100%) !important;
  transition: all 0.3s ease-out !important;
  display: block !important;
  visibility: visible !important;
}
/* Position variants */
.toast-top-right {
  top: 20px !important;
  right: 20px !important;
}
.toast-top-left {
  top: 20px !important;
  left: 20px !important;
  transform: translateX(-100%) !important;
}
.toast-bottom-right {
  bottom: 20px !important;
  right: 20px !important;
}
.toast-bottom-left {
  bottom: 20px !important;
  left: 20px !important;
  transform: translateX(-100%) !important;
}
/* Type variants */
.toast-success {
  background: #10b981 !important;
}
.toast-error {
  background: #ef4444 !important;
}
/* Animation states */
.toast-show {
  opacity: 1 !important;
  transform: translateX(0) !important;
}
.toast-hide {
  opacity: 0 !important;
  transform: translateX(100%) !important;
}
.toast-top-left.toast-hide,
.toast-bottom-left.toast-hide {
  transform: translateX(-100%) !important;
}
/* ==========================================================================
   MODAL STYLES
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}
.modal-content {
  background: var(--color-background);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  border: 1px solid var(--color-border);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg);
  border-bottom: 3px solid #F24E1E;
  background: var(--color-surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-header h2,
.modal-header h3 {
  margin: 0;
  color: var(--color-text);
  font-size: var(--font-size-xl);
}
.modal-close {
  background: none;
  border: none;
  font-size: var(--font-size-2xl);
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: var(--spacing-xs);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover:not(:disabled) {
  background: #F24E1E;
  color: var(--color-white);
}
.modal-close:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.modal-body {
  padding: var(--spacing-lg);
}
/* ==========================================================================
   BUTTON STYLES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: var(--font-size-md);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-1px);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
/* ==========================================================================
   FORM STYLES
   ========================================================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
}
.form-group.full-width {
  grid-column: 1 / -1;
}
.form-group label {
  font-weight: 600;
  color: var(--color-text);
  font-size: var(--font-size-sm);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: var(--spacing-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-md);
  font-family: inherit;
  background: var(--color-background);
  color: var(--color-text);
  transition: border-color 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(255, 107, 45, 0.1);
}
.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
  background: var(--color-surface);
  color: var(--color-text-muted);
  cursor: not-allowed;
}
.form-group small {
  color: var(--color-text-secondary);
  font-size: var(--font-size-xs);
  font-style: italic;
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}
.error-message {
  color: #dc3545;
  font-size: var(--font-size-xs);
  font-weight: 500;
  margin-top: var(--spacing-xs);
}
/* Success state styling */
.form-group.success input,
.form-group.success select,
.form-group.success textarea {
  border-color: var(--color-success);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}
/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }
.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-1 { gap: var(--spacing-xs); }
.gap-2 { gap: var(--spacing-sm); }
.gap-3 { gap: var(--spacing-md); }
.gap-4 { gap: var(--spacing-lg); }
.gap-5 { gap: var(--spacing-xl); }
.w-full {
  width: 100%;
}
.h-full {
  height: 100%;
}
.rounded {
  border-radius: var(--radius-sm);
}
.rounded-md {
  border-radius: var(--radius-md);
}
.rounded-lg {
  border-radius: var(--radius-lg);
}
.shadow {
  box-shadow: var(--shadow-sm);
}
.shadow-md {
  box-shadow: var(--shadow-md);
}
.shadow-lg {
  box-shadow: var(--shadow-lg);
}
/* Accessibility Styles */
/* ============================================================================
   FOCUS MANAGEMENT
   ============================================================================ */
/* Focus indicators for all interactive elements */
*:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
/* Remove default focus outline for custom styling */
*:focus:not(:focus-visible) {
  outline: none;
}
/* Custom focus indicator */
*:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 4px rgba(242, 78, 30, 0.2);
}
/* Focus indicators for buttons */
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(242, 78, 30, 0.2);
}
/* Focus indicators for form elements */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(242, 78, 30, 0.1);
}
/* Focus indicators for links */
a:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
  text-decoration: underline;
}
/* Focus indicators for table elements */
th:focus-visible,
td:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 1px;
}
/* ============================================================================
   SCREEN READER SUPPORT
   ============================================================================ */
/* Screen reader only content */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--color-secondary);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 6px;
}
/* ============================================================================
   KEYBOARD NAVIGATION
   ============================================================================ */
/* Keyboard navigation indicators */
[tabindex]:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}
/* Disabled elements should not be focusable */
[disabled],
[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.6;
}
[disabled]:focus,
[aria-disabled="true"]:focus {
  outline: none;
}
/* ============================================================================
   FORM ACCESSIBILITY
   ============================================================================ */
/* Form field labels */
label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--color-text);
}
/* Required field indicators */
label[for*="required"]::after,
.required::after {
  content: " *";
  color: var(--color-error);
  font-weight: bold;
}
/* Error messages */
.error-message {
  color: var(--color-error);
  font-size: var(--font-size-sm);
  margin-top: var(--spacing-xs);
  display: block;
}
.error-message[role="alert"] {
  font-weight: 500;
}
/* Help text */
.help-text {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin-top: var(--spacing-xs);
  font-style: italic;
}
/* Form validation states */
input:invalid,
select:invalid,
textarea:invalid {
  border-color: var(--color-error);
}
input:invalid:focus,
select:invalid:focus,
textarea:invalid:focus {
  border-color: var(--color-error);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}
/* ============================================================================
   TABLE ACCESSIBILITY
   ============================================================================ */
/* Table structure */
table {
  border-collapse: collapse;
  width: 100%;
}
/* Table headers */
th {
  background-color: var(--color-surface);
  color: var(--color-text);
  font-weight: 600;
  text-align: left;
  padding: var(--spacing-sm) var(--spacing-md);
  border-bottom: 2px solid var(--color-border);
}
/* Table cells */
td {
  padding: var(--spacing-sm) var(--spacing-md);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
/* Table row hover */
tr:hover {
  background-color: var(--color-surface-hover);
}
/* Table row focus */
tr:focus-within {
  background-color: var(--color-surface-hover);
  outline: 2px solid var(--color-secondary);
  outline-offset: -2px;
}
/* ============================================================================
   MODAL ACCESSIBILITY
   ============================================================================ */
/* Modal backdrop */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}
/* Modal content */
.modal-content {
  position: relative;
  background-color: var(--color-background);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
}
/* Modal focus trap */
.modal-content:focus {
  outline: none;
}
/* ============================================================================
   BUTTON ACCESSIBILITY
   ============================================================================ */
/* Button states */
button,
.btn {
  cursor: pointer;
  border: none;
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--font-size-md);
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 44px;
}
/* Touch-friendly buttons (for mobile) */
button[type="submit"],
button[type="button"]:not(.view-properties-btn):not(.view-metadata-btn):not(.content-button):not(.metadata-button),
.btn:not(.view-properties-btn):not(.view-metadata-btn):not(.content-button):not(.metadata-button) {
  min-height: 44px; /* Minimum touch target size for primary buttons */
}
/* Button hover states */
button:hover:not([disabled]),
.btn:hover:not([disabled]) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
/* Button active states */
button:active:not([disabled]),
.btn:active:not([disabled]) {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}
/* Button focus states */
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(242, 78, 30, 0.2);
}
/* ============================================================================
   LINK ACCESSIBILITY
   ============================================================================ */
/* Link styles */
a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}
/* Link hover */
a:hover {
  color: var(--color-secondary-hover);
  text-decoration: underline;
}
/* Link focus */
a:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
  text-decoration: underline;
}
/* External link indicators - removed "opens in new tab" text */
/* ============================================================================
   IMAGE ACCESSIBILITY
   ============================================================================ */
/* Decorative images */
img[alt=""] {
  border: 0;
}
/* Image focus */
img:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}
/* ============================================================================
   COLOR CONTRAST IMPROVEMENTS
   ============================================================================ */
/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-border: #000000;
    --color-text: #000000;
    --color-background: #ffffff;
  }
  
  .dark {
    --color-border: #ffffff;
    --color-text: #ffffff;
    --color-background: #000000;
  }
}
/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::before {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* ============================================================================
   MOBILE ACCESSIBILITY
   ============================================================================ */
/* Touch target sizes */
@media (max-width: 768px) {
  button:not(.view-properties-btn):not(.view-metadata-btn):not(.content-button):not(.metadata-button),
  .btn:not(.view-properties-btn):not(.view-metadata-btn):not(.content-button):not(.metadata-button),
  input[type="button"],
  input[type="submit"],
  input[type="reset"] {
    min-height: 48px; /* Larger touch targets on mobile */
    min-width: 48px;
  }
  
  /* Increase spacing for mobile */
  .form-group {
    margin-bottom: var(--spacing-lg);
  }
  
  /* Larger text on mobile */
  body {
    font-size: var(--font-size-lg);
  }
}
/* ============================================================================
   PRINT ACCESSIBILITY
   ============================================================================ */
@media print {
  /* Hide non-essential elements */
  .no-print,
  .modal-overlay,
  .skip-link {
    display: none !important;
  }
  
  /* Ensure good contrast for printing */
  * {
    color: black !important;
    background: white !important;
  }
  
  /* Ensure links are visible */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: var(--font-size-sm);
    color: black;
  }
}
/* ============================================================================
   ARIA SUPPORT
   ============================================================================ */
/* Live regions */
[aria-live="polite"] {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
[aria-live="assertive"] {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* Hidden elements */
[aria-hidden="true"] {
  display: none !important;
}
/* Expanded state indicators */
[aria-expanded="true"]::after {
  content: " ▼";
  font-size: var(--font-size-sm);
}
[aria-expanded="false"]::after {
  content: " ▶";
  font-size: var(--font-size-sm);
}
/* Current page indicators */
[aria-current="page"] {
  font-weight: bold;
  color: var(--color-secondary);
}
/* ============================================================================
   CUSTOM ACCESSIBILITY COMPONENTS
   ============================================================================ */
/* Accessible dropdown */
.accessible-dropdown {
  position: relative;
}
.accessible-dropdown[aria-expanded="true"] .dropdown-content {
  display: block;
}
.accessible-dropdown[aria-expanded="false"] .dropdown-content {
  display: none;
}
/* Accessible tabs */
.tab-list[role="tablist"] {
  display: flex;
  border-bottom: 1px solid var(--color-border);
}
.tab-button[role="tab"] {
  padding: var(--spacing-sm) var(--spacing-md);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.tab-button[role="tab"][aria-selected="true"] {
  border-bottom-color: var(--color-secondary);
  color: var(--color-secondary);
}
.tab-panel[role="tabpanel"] {
  padding: var(--spacing-md);
}
/* Accessible progress bar */
.progress-bar[role="progressbar"] {
  width: 100%;
  height: 20px;
  background-color: var(--color-surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.progress-bar[role="progressbar"] .progress-fill {
  height: 100%;
  background-color: var(--color-secondary);
  transition: width 0.3s ease;
}
/* Accessible tooltip */
.tooltip {
  position: relative;
  display: inline-block;
}
.tooltip .tooltip-text {
  visibility: hidden;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-primary);
  color: white;
  text-align: center;
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  white-space: nowrap;
}
.tooltip:hover .tooltip-text,
.tooltip:focus .tooltip-text {
  visibility: visible;
}
:root {
  /* Driflyte Brand Colors */
  --color-primary: #1A2E3B;      /* Koyu lacivert - Ana renk */
  --color-secondary: #FF6B2D;     /* Turuncu - 2. ana renk */
  --color-white: #FFFFFF;         /* Beyaz */
  
  /* Semantic Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;
  
  /* Background Colors */
  --color-background: var(--color-white);
  --color-surface: #f8fafc;
  --color-surface-hover: #f1f5f9;
  
  /* Text Colors */
  --color-text: var(--color-primary);
  --color-text-secondary: #64748b;
  --color-text-muted: #94a3b8;
  
  /* Border Colors */
  --color-border: #e2e8f0;
  --color-border-hover: var(--color-secondary);
  --color-border-selected: var(--color-secondary);
  
  /* Interactive Colors */
  --color-primary-hover: #0f172a;
  --color-primary-dark: #0f172a;
  --color-secondary-hover: #e55a1a;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Font Sizes */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-orange: 0 6px 20px rgba(255, 107, 45, 0.3);
  
  /* Layout */
  --row-height: 42px;
}
/* Dark theme colors */
.dark {
  --color-primary: #60a5fa;
  --color-primary-dark: #3b82f6;
  --color-secondary: #94a3b8;
  --color-background: #0f172a;
  --color-surface: #1e293b;
  --color-text: #f1f5f9;
  --color-text-secondary: #cbd5e1;
  --color-border: #334155;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--color-background);
  color: var(--color-text);
}
#root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* Utility classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}
/* Button styles moved to components.css */
/* Responsive utilities */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
}


