@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');/* Import utility classes (must be first per CSS spec) */
/* ============================================================
   Utility Classes (TailwindCSS replacement)
   Lightweight utility classes used by this project's components.
   ============================================================ */
/* ===== DISPLAY ===== */
.hidden { display: none; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
/* ===== FLEX ===== */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-grow { flex-grow: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
/* ===== GRID ===== */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
/* ===== GAP ===== */
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
/* ===== SPACE (adjacent sibling margins) ===== */
.space-y-2 > :not(:first-child) { margin-top: 0.5rem; }
.space-y-3 > :not(:first-child) { margin-top: 0.75rem; }
.space-y-4 > :not(:first-child) { margin-top: 1rem; }
.space-y-6 > :not(:first-child) { margin-top: 1.5rem; }
.space-y-10 > :not(:first-child) { margin-top: 2.5rem; }
.space-x-2 > :not(:first-child) { margin-left: 0.5rem; }
.space-x-4 > :not(:first-child) { margin-left: 1rem; }
/* ===== WIDTH ===== */
.w-full { width: 100%; }
.w-8 { width: 2rem; }
/* ===== HEIGHT ===== */
.h-2 { height: 0.5rem; }
.h-3 { height: 0.75rem; }
.h-8 { height: 2rem; }
/* ===== MIN / MAX SIZE ===== */
.min-h-screen { min-height: 100vh; }
.min-h-\[240px\] { min-height: 240px; }
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
/* ===== MARGIN ===== */
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.ml-6 { margin-left: 1.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
/* ===== PADDING ===== */
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
/* ===== TYPOGRAPHY ===== */
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.leading-relaxed { line-height: 1.625; }
.underline { text-decoration: underline; }
/* ===== BORDER RADIUS ===== */
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
/* ===== BORDER ===== */
.border-2 { border-width: 2px; border-style: solid; }
.border-dashed { border-style: dashed; }
/* ===== BOX SHADOW ===== */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
/* ===== OPACITY ===== */
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
/* ===== POSITION ===== */
.relative { position: relative; }
.sticky { position: sticky; }
.absolute { position: absolute; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
/* ===== OVERFLOW ===== */
.overflow-hidden { overflow: hidden; }
/* ===== TRANSFORM ===== */
.scale-75 { transform: scale(0.75); }
.scale-105 { transform: scale(1.05); }
.scale-125 { transform: scale(1.25); }
.scale-150 { transform: scale(1.5); }
/* ===== TRANSITION ===== */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.duration-300 { transition-duration: 300ms; }
/* ===== CURSOR ===== */
.cursor-pointer { cursor: pointer; }
/* ===== VERTICAL ALIGN ===== */
.align-middle { vertical-align: middle; }
/* ===== HOVER STATES ===== */
.hover\:underline:hover { text-decoration: underline; }
.hover\:no-underline:hover { text-decoration: none; }
/* ===== MATERIAL COLOR UTILITIES ===== */
.border-primary { border-color: var(--md-sys-color-primary); }
.border-outline-variant { border-color: var(--md-sys-color-outline-variant); }
.bg-primary\/5 { background-color: color-mix(in srgb, var(--md-sys-color-primary) 5%, transparent); }
.bg-white { background-color: #ffffff; }
.bg-gray-200 { background-color: #e5e7eb; }
.text-red-500 { color: #ef4444; }
.hover\:border-primary:hover { border-color: var(--md-sys-color-primary); }
.hover\:bg-surface-container-high:hover { background-color: var(--md-sys-color-surface-container-high); }
/* ===== RESPONSIVE (min-width: 768px) ===== */
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:text-left { text-align: left; }
  .md\:text-right { text-align: right; }
  .md\:justify-end { justify-content: flex-end; }
}
/* ============================================================
   Global Styles & CSS Reset
   Replaces TailwindCSS preflight with a minimal, targeted reset
   that does NOT interfere with Material Web Components.
   ============================================================ */
/* Minimal CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}
body {
  margin: 0;
  padding: 0;
  line-height: inherit;
}
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: inherit;
}
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
img, svg, video, canvas {
  display: block;
  max-width: 100%;
}
input, button, textarea, select {
  font: inherit;
  color: inherit;
}
/* Material Web Component host element display fixes.
   Custom elements default to display:inline in HTML.
   Material Web sets :host { display: inline-flex } in Shadow DOM,
   but we reinforce it here for reliability. */
md-filled-button,
md-outlined-button,
md-text-button,
md-filled-tonal-button,
md-elevated-button {
  display: inline-flex;
}
md-outlined-text-field,
md-filled-text-field,
md-outlined-select,
md-filled-select {
  display: inline-flex;
}
md-checkbox,
md-radio,
md-switch {
  display: inline-flex;
}
md-circular-progress,
md-linear-progress {
  display: inline-flex;
}
md-icon {
  display: inline-flex;
}


/* Material 3 Expressive Theme for TMC File Transfer */
/* Global font loading */
:root {
  /* Reference Typeface Tokens (recommended by Material Web docs) */
  --md-ref-typeface-brand: 'Inter', 'Roboto', sans-serif;
  --md-ref-typeface-plain: 'Inter', 'Roboto', sans-serif;

  /* Primary Color Palette - Blue Theme */
  --md-sys-color-primary: #1565C0;
  --md-sys-color-on-primary: #FFFFFF;
  --md-sys-color-primary-container: #D1E4FF;
  --md-sys-color-on-primary-container: #001D36;
  
  /* Secondary Color Palette */
  --md-sys-color-secondary: #535F70;
  --md-sys-color-on-secondary: #FFFFFF;
  --md-sys-color-secondary-container: #D7E3F7;
  --md-sys-color-on-secondary-container: #101C2B;
  
  /* Tertiary Color Palette */
  --md-sys-color-tertiary: #6B5778;
  --md-sys-color-on-tertiary: #FFFFFF;
  --md-sys-color-tertiary-container: #F2DAFF;
  --md-sys-color-on-tertiary-container: #251431;
  
  /* Error Color Palette */
  --md-sys-color-error: #BA1A1A;
  --md-sys-color-on-error: #FFFFFF;
  --md-sys-color-error-container: #FFDAD6;
  --md-sys-color-on-error-container: #410002;
  
  /* Success/Positive Color Palette */
  --md-sys-color-success: #146C2E;
  --md-sys-color-on-success: #FFFFFF;
  --md-sys-color-success-container: #A6F2BB;
  --md-sys-color-on-success-container: #002109;
  
  /* Surface Color Palette */
  --md-sys-color-surface: #FEFBFF;
  --md-sys-color-on-surface: #1A1C1E;
  --md-sys-color-surface-variant: #DFE2EB;
  --md-sys-color-on-surface-variant: #43474E;
  --md-sys-color-surface-container-lowest: #FFFFFF;
  --md-sys-color-surface-container-low: #F3F4FA;
  --md-sys-color-surface-container: #EDEEF4;
  --md-sys-color-surface-container-high: #E7E8EE;
  --md-sys-color-surface-container-highest: #E1E2E8;
  
  /* Background */
  --md-sys-color-background: #FEFBFF;
  --md-sys-color-on-background: #1A1C1E;
  
  /* Outline */
  --md-sys-color-outline: #73777F;
  --md-sys-color-outline-variant: #C3C7CF;
  
  /* Shape System - More expressive, softer shapes */
  --md-sys-shape-corner-extra-small: 8px;
  --md-sys-shape-corner-small: 12px;
  --md-sys-shape-corner-medium: 16px;
  --md-sys-shape-corner-large: 20px;
  --md-sys-shape-corner-extra-large: 28px;
  
  /* Typography Scale */
  --md-sys-typescale-display-large-font: 'Inter', 'Roboto', sans-serif;
  --md-sys-typescale-display-large-weight: 400;
  --md-sys-typescale-display-large-size: 57px;
  --md-sys-typescale-display-large-line-height: 64px;
  
  --md-sys-typescale-headline-large-font: 'Inter', 'Roboto', sans-serif;
  --md-sys-typescale-headline-large-weight: 500;
  --md-sys-typescale-headline-large-size: 32px;
  --md-sys-typescale-headline-large-line-height: 40px;
  
  --md-sys-typescale-body-large-font: 'Inter', 'Roboto', sans-serif;
  --md-sys-typescale-body-large-weight: 400;
  --md-sys-typescale-body-large-size: 16px;
  --md-sys-typescale-body-large-line-height: 24px;
  
  /* Custom Expressive Enhancements */
  --md-expressive-motion-duration-short: 200ms;
  --md-expressive-motion-duration-medium: 300ms;
  --md-expressive-motion-duration-long: 500ms;
  --md-expressive-motion-easing-standard: cubic-bezier(0.2, 0, 0, 1);
  --md-expressive-motion-easing-emphasized: cubic-bezier(0.05, 0.7, 0.1, 1);
  
  /* Enhanced elevation and shadow */
  --md-sys-elevation-shadow-color: rgba(26, 28, 30, 0.08);
  --md-expressive-elevation-1: 0 1px 3px var(--md-sys-elevation-shadow-color), 0 1px 2px rgba(26, 28, 30, 0.16);
  --md-expressive-elevation-2: 0 2px 6px var(--md-sys-elevation-shadow-color), 0 1px 2px rgba(26, 28, 30, 0.16);
  --md-expressive-elevation-3: 0 4px 8px var(--md-sys-elevation-shadow-color), 0 1px 3px rgba(26, 28, 30, 0.16);
  --md-expressive-elevation-4: 0 6px 12px var(--md-sys-elevation-shadow-color), 0 2px 4px rgba(26, 28, 30, 0.16);
  --md-expressive-elevation-5: 0 8px 16px var(--md-sys-elevation-shadow-color), 0 2px 6px rgba(26, 28, 30, 0.16);
}
/* Dark theme */
@media (prefers-color-scheme: dark) {
  :root {
    --md-sys-color-primary: #9CCAFF;
    --md-sys-color-on-primary: #003258;
    --md-sys-color-primary-container: #00497D;
    --md-sys-color-on-primary-container: #D1E4FF;
    
    --md-sys-color-secondary: #BBC7DB;
    --md-sys-color-on-secondary: #253140;
    --md-sys-color-secondary-container: #3B4858;
    --md-sys-color-on-secondary-container: #D7E3F7;
    
    --md-sys-color-surface: #101418;
    --md-sys-color-on-surface: #E1E2E8;
    --md-sys-color-surface-variant: #43474E;
    --md-sys-color-on-surface-variant: #C3C7CF;
    --md-sys-color-surface-container-lowest: #0B0F14;
    --md-sys-color-surface-container-low: #191C20;
    --md-sys-color-surface-container: #1D2024;
    --md-sys-color-surface-container-high: #27292F;
    --md-sys-color-surface-container-highest: #32343A;
    
    --md-sys-color-background: #101418;
    --md-sys-color-on-background: #E1E2E8;
    
    --md-sys-color-outline: #8D9199;
    --md-sys-color-outline-variant: #43474E;
    
    --md-sys-elevation-shadow-color: rgba(0, 0, 0, 0.4);
  }
}
/* Global base styles with Material 3 Expressive enhancements */
body {
  font-family: var(--md-sys-typescale-body-large-font);
  font-size: var(--md-sys-typescale-body-large-size);
  line-height: var(--md-sys-typescale-body-large-line-height);
  color: var(--md-sys-color-on-background);
  background-color: var(--md-sys-color-background);
  transition: background-color var(--md-expressive-motion-duration-medium) var(--md-expressive-motion-easing-standard);
}
/* Enhanced Material 3 card styles */
.md-expressive-card {
  background-color: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface);
  border-radius: var(--md-sys-shape-corner-large);
  padding: 24px;
  box-shadow: var(--md-expressive-elevation-2);
  transition: all var(--md-expressive-motion-duration-medium) var(--md-expressive-motion-easing-standard);
  border: 1px solid var(--md-sys-color-outline-variant);
}
.md-expressive-card:hover {
  box-shadow: var(--md-expressive-elevation-3);
  transform: translateY(-2px);
}
/* Progress indicator enhancements */
.md-expressive-progress {
  background-color: var(--md-sys-color-surface-container-high);
  border-radius: var(--md-sys-shape-corner-small);
  overflow: hidden;
  position: relative;
}
.md-expressive-progress-bar {
  background-color: var(--md-sys-color-primary);
  height: 100%;
  border-radius: var(--md-sys-shape-corner-small);
  transition: width var(--md-expressive-motion-duration-medium) var(--md-expressive-motion-easing-emphasized);
  position: relative;
  overflow: hidden;
}
/* Material Web Icons configuration */
md-icon {
  --md-icon-font: 'Material Symbols Outlined';
  --md-icon-size: 24px;
}
/* Material Icon size utilities */
md-icon.text-sm { --md-icon-size: 16px; }
md-icon.text-2xl { --md-icon-size: 32px; }
md-icon.text-4xl { --md-icon-size: 48px; }
md-icon.text-6xl { --md-icon-size: 64px; }
md-icon.text-8xl { --md-icon-size: 80px; }
/* Large icons with proper spacing */
md-icon.text-6xl, md-icon.text-8xl {
  margin: 8px;
  line-height: 1.2;
}
/* Material Web handles button icon spacing and typography internally */
.md-expressive-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
/* Enhanced form field styles */
.md-expressive-field {
  --md-outlined-text-field-container-shape: var(--md-sys-shape-corner-medium);
  --md-outlined-text-field-outline-color: var(--md-sys-color-outline);
  --md-outlined-text-field-focus-outline-color: var(--md-sys-color-primary);
  --md-outlined-text-field-label-text-color: var(--md-sys-color-on-surface-variant);
  --md-outlined-text-field-input-text-color: var(--md-sys-color-on-surface);
  
  transition: all var(--md-expressive-motion-duration-short) var(--md-expressive-motion-easing-standard);
}
.md-expressive-field:focus-within {
  transform: scale(1.01);
}
/* Checkbox and switch enhancements */
.md-expressive-checkbox {
  --md-checkbox-container-shape: var(--md-sys-shape-corner-extra-small);
  --md-checkbox-selected-container-color: var(--md-sys-color-primary);
  --md-checkbox-selected-icon-color: var(--md-sys-color-on-primary);
  
  transition: transform var(--md-expressive-motion-duration-short) var(--md-expressive-motion-easing-emphasized);
}
.md-expressive-checkbox:active {
  transform: scale(0.9);
}
/* Enhanced typography classes */
.md-expressive-headline {
  font-family: var(--md-sys-typescale-headline-large-font);
  font-weight: var(--md-sys-typescale-headline-large-weight);
  font-size: var(--md-sys-typescale-headline-large-size);
  line-height: var(--md-sys-typescale-headline-large-line-height);
  color: var(--md-sys-color-on-surface);
  margin: 0 0 16px 0;
}
.md-expressive-body {
  font-family: var(--md-sys-typescale-body-large-font);
  font-weight: var(--md-sys-typescale-body-large-weight);
  font-size: var(--md-sys-typescale-body-large-size);
  line-height: var(--md-sys-typescale-body-large-line-height);
  color: var(--md-sys-color-on-surface-variant);
  margin: 0 0 12px 0;
}
/* Utility classes */
.md-expressive-surface {
  background-color: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
}
.md-expressive-surface-container {
  background-color: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface);
}
.md-expressive-primary {
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}
.md-expressive-secondary {
  background-color: var(--md-sys-color-secondary);
  color: var(--md-sys-color-on-secondary);
}
.md-expressive-error {
  background-color: var(--md-sys-color-error);
  color: var(--md-sys-color-on-error);
}
.md-expressive-success {
  background-color: var(--md-sys-color-success);
  color: var(--md-sys-color-on-success);
}
/* Animation utilities */
.md-expressive-fade-in {
  animation: fadeIn var(--md-expressive-motion-duration-medium) var(--md-expressive-motion-easing-standard) forwards;
}
.md-expressive-slide-up {
  animation: slideUp var(--md-expressive-motion-duration-medium) var(--md-expressive-motion-easing-emphasized) forwards;
}
.md-expressive-scale-in {
  animation: scaleIn var(--md-expressive-motion-duration-short) var(--md-expressive-motion-easing-emphasized) forwards;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(32px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes scaleIn {
  from { 
    opacity: 0;
    transform: scale(0.8);
  }
  to { 
    opacity: 1;
    transform: scale(1);
  }
}
/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .md-expressive-card {
    padding: 16px;
    border-radius: var(--md-sys-shape-corner-medium);
  }
  
  .md-expressive-headline {
    font-size: 28px;
    line-height: 36px;
  }
}