/* STT Healthcare Website - Design System for Login and Chat Pages */

:root {
    /* Color Palette */
    --primary-color: #0D1B2A; /* Deep Midnight Blue for background */
    --secondary-color: #2EC4B6; /* Vibrant Turquoise for interactive elements */
    --accent-color: #8A2BE2; /* Neon Violet for hover effects and CTAs */
    --white-color: #FFFFFF; /* Pure White for text and icons */
    --text-color: #E5E5E5; /* Soft Light Grey for text */
    --background-color: #14213D; /* Dark Slate for depth */
    
    /* Additional UI Colors */
    --card-bg: #1A2A42; /* Slightly lighter than background for cards */
    --border-color: #2A3A5C; /* Subtle borders */
    --shadow-color: rgba(0, 0, 0, 0.3); /* Shadows for depth */
    --success-color: #4CAF50; /* Green for success messages */
    --error-color: #F44336; /* Red for error messages */
    --warning-color: #FFC107; /* Yellow for warnings */
    --info-color: #2196F3; /* Blue for information */
    
    /* Chat-specific Colors */
    --user-message-bg: #2A3A5C; /* Slightly lighter than background for user messages */
    --ai-message-bg: #1A2A42; /* Darker for AI messages */
    --transcription-bg: #1E3A5C; /* Special background for transcriptions */
    --recording-active: #8A2BE2; /* Accent color for active recording */
    --recording-inactive: #2EC4B6; /* Secondary color for inactive recording */
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Manrope', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 2.5rem;
    --font-size-4xl: 3rem;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.2);
    
    /* Z-index layers */
    --z-base: 1;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;
  }
  
  /* Base Styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    font-size: 16px;
    scroll-behavior: smooth;
  }
  
  body {
    font-family: var(--font-primary);
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
  }
  
  h1 {
    font-size: var(--font-size-4xl);
  }
  
  h2 {
    font-size: var(--font-size-3xl);
  }
  
  h3 {
    font-size: var(--font-size-2xl);
  }
  
  h4 {
    font-size: var(--font-size-xl);
  }
  
  p {
    margin-bottom: var(--space-md);
  }
  
  a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
  }
  
  a:hover {
    color: var(--accent-color);
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Container */
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
  }
  
  /* Buttons */
  .btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    outline: none;
  }
  
  .btn-primary {
    background-color: var(--secondary-color);
    color: var(--white-color);
  }
  
  .btn-primary:hover,
  .btn-primary:active {
    background-color: var(--accent-color) !important;
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
  }
  
  .btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
  }
  
  .btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
  }
  
  .btn-accent {
    background-color: var(--accent-color);
    color: var(--text-color);
  }
  
  .btn-accent:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    background-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
  }
  
  .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
  }
  
  .btn-icon i {
    font-size: 1.25rem;
  }
  
  .btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-lg);
  }
  
  .btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-size-sm);
  }
  
  .btn-block {
    display: block;
    width: 100%;
  }
  
  /* Cards */
  .card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal);
  }
  
  .card:hover {
    transform: translateY(-5px);
  }
  
  /* Form Elements */
  .form-group {
    margin-bottom: var(--space-lg);
  }
  
  .form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--text-color);
  }
  
  .form-control {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    transition: all var(--transition-normal);
  }
  .form-control:disabled {
    background-color: rgba(255, 255, 255, 0.01);
  }
  
  .form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(46, 196, 182, 0.25);
  }
  
  .form-control::placeholder {
    color: rgba(229, 229, 229, 0.5);
  }
  
  .form-control:focus::placeholder {
    color: var(--bs-body-color) !important;
    opacity: 0.7;
  }
  
  .form-select {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23E5E5E5' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-md) center;
    background-size: 16px 12px;
  }
  
  .form-select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(46, 196, 182, 0.25);
  }
  
  .form-check {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-sm);
  }
  
  .form-check-input {
    margin-right: var(--space-sm);
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.05);
    cursor: pointer;
  }
  
  .form-check-input:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
  }
  
  .form-check-label {
    cursor: pointer;
  }
  
  /* Validation Styles */
  .is-valid {
    border-color: var(--success-color) !important;
  }
  
  .is-invalid {
    border-color: var(--error-color) !important;
  }
  
  .invalid-feedback {
    display: block;
    width: 100%;
    margin-top: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--error-color);
  }
  
  /* Gradients */
  .gradient-bg {
    background: linear-gradient(135deg, var(--primary-color), var(--background-color));
  }
  
  .gradient-text {
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  
  /* Animations */
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
  }
  
  .fade-in {
    animation: fadeIn var(--transition-normal) forwards;
  }
  
  .slide-up {
    animation: slideUp var(--transition-normal) forwards;
  }
  
  .pulse {
    animation: pulse 2s infinite;
  }
  
  /* Utilities */
  .text-center { text-align: center; }
  .text-left { text-align: left; }
  .text-right { text-align: right; }
  
  .mt-1 { margin-top: var(--space-xs); }
  .mt-2 { margin-top: var(--space-sm); }
  .mt-3 { margin-top: var(--space-md); }
  .mt-4 { margin-top: var(--space-lg); }
  .mt-5 { margin-top: var(--space-xl); }
  
  .mb-1 { margin-bottom: var(--space-xs); }
  .mb-2 { margin-bottom: var(--space-sm); }
  .mb-3 { margin-bottom: var(--space-md); }
  .mb-4 { margin-bottom: var(--space-lg); }
  .mb-5 { margin-bottom: var(--space-xl); }
  
  .mx-auto { margin-left: auto; margin-right: auto; }
  
  .w-full { width: 100%; }
  .w-half { width: 50%; }
  
  .flex { display: flex; }
  .flex-col { flex-direction: column; }
  .items-center { align-items: center; }
  .justify-center { justify-content: center; }
  .justify-between { justify-content: space-between; }
  .flex-wrap { flex-wrap: wrap; }
  .gap-1 { gap: var(--space-xs); }
  .gap-2 { gap: var(--space-sm); }
  .gap-3 { gap: var(--space-md); }
  .gap-4 { gap: var(--space-lg); }
  .gap-5 { gap: var(--space-xl); }

  /* Responsive Utilities */
  @media (max-width: 1200px) {
    .container {
      max-width: 960px;
    }
  }
  
  @media (max-width: 992px) {
    .container {
      max-width: 720px;
    }
  }
  
  @media (max-width: 768px) {
    .container {
      max-width: 540px;
    }
    
    h1 {
      font-size: var(--font-size-3xl);
    }
    
    h2 {
      font-size: var(--font-size-2xl);
    }
  }
  
  @media (max-width: 576px) {
    .container {
      max-width: 100%;
      padding: 0 var(--space-md);
    }
    
    h1 {
      font-size: var(--font-size-2xl);
    }
    
    h2 {
      font-size: var(--font-size-xl);
    }
    
    .card {
      padding: var(--space-lg);
    }
  }
  