/* Travel App Web Styles - Matching Flutter Theme */

/* Import IBM Plex Sans Arabic font */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@100;200;300;400;500;600;700&display=swap');

/* CSS Variables matching your AppColors */
:root {
  /* Light theme colors */
  --main-color: #2196F3;
  --primary-light: #FFFFFF;
  --secondary-color: #FF9800;
  --scaffold-light: #FFFFFF;
  --black-text-87: rgba(33, 33, 33, 0.87);
  --black-text: #212121;
  --black-400: #757575;
  --black-37: rgba(0, 0, 0, 0.37);
  --text-grey: #9E9E9E;
  --border-grey: #E0E0E0;
  --red-color: #F44336;
  --white-color: #FFFFFF;

  /* Dark theme colors */
  --primary-dark: #121212;
  --scaffold-dark: #121212;
  --white-text-87: rgba(255, 255, 255, 0.87);
  --white-text: #FFFFFF;
}

/* Dark theme overrides */
@media (prefers-color-scheme: dark) {
  :root {
    --scaffold-light: var(--scaffold-dark);
    --primary-light: var(--primary-dark);
    --black-text-87: var(--white-text-87);
    --black-text: var(--white-text);
    --black-400: #BDBDBD;
    --border-grey: #333333;
  }
}

/* Base styles */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--scaffold-light);
  color: var(--black-text);
  direction: rtl; /* RTL for Arabic */
  text-align: right;
}

/* Flutter web specific fixes */
flt-glass-pane {
  background-color: transparent !important;
}

/* Selection styles */
::selection {
  background-color: var(--main-color);
  color: white;
}

::-moz-selection {
  background-color: var(--main-color);
  color: white;
}

/* Focus styles */
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--main-color);
  outline-offset: 2px;
}

/* Button styles matching your theme */
button {
  font-family: inherit;
  border-radius: 16px;
  transition: all 0.2s ease;
}

/* Input styles matching your InputDecorationTheme */
input, textarea {
  font-family: inherit;
  border-radius: 16px;
  border: 1.6px solid var(--border-grey);
  padding: 12px 24px;
  background-color: var(--white-color);
  color: var(--black-text);
  transition: border-color 0.2s ease;
}

input:focus, textarea:focus {
  border-color: var(--main-color);
}

input::placeholder, textarea::placeholder {
  color: var(--black-37);
  font-weight: 500;
  font-size: 14px;
}

/* Loading animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.3s ease-in;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--border-grey);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--text-grey);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--black-400);
}

/* Hide scrollbar for Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--text-grey) var(--border-grey);
}

/* Progress indicator styles */
.progress-indicator {
  color: var(--main-color) !important;
}

/* Typography matching your TextTheme */
.headline-large {
  font-size: 26px;
  font-weight: 600;
  color: var(--black-text-87);
}

.headline-small {
  font-size: 20px;
  font-weight: 500;
  color: var(--black-text-87);
}

.title-medium {
  font-size: 16px;
  font-weight: 500;
  color: var(--black-text);
}

.body-medium {
  font-size: 14px;
  font-weight: 400;
  color: var(--black-text);
}

.body-small {
  font-size: 12px;
  font-weight: 400;
  color: var(--black-text);
}

.label-small {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-grey);
}

/* Responsive design */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .headline-large {
    font-size: 22px;
  }

  .headline-small {
    font-size: 18px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border-grey: #000000;
    --text-grey: #000000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}