/* ===== GOOGLE MATERIAL 3 EXPRESSIVE ===== */

/* ===== CSS VARIABLES ===== */
:root {
  /* Material Design 3 Color Tokens - Dark Theme */
  --md-sys-color-primary: #D0BCFF;
  --md-sys-color-on-primary: #381E72;
  --md-sys-color-primary-container: #4F378B;
  --md-sys-color-on-primary-container: #EADDFF;
  --md-sys-color-secondary: #CCC2DC;
  --md-sys-color-on-secondary: #332D41;
  --md-sys-color-secondary-container: #4A4458;
  --md-sys-color-on-secondary-container: #E8DEF8;
  --md-sys-color-tertiary: #EFB8C8;
  --md-sys-color-on-tertiary: #492532;
  --md-sys-color-tertiary-container: #633B48;
  --md-sys-color-on-tertiary-container: #FFD8E4;
  --md-sys-color-error: #FFB4AB;
  --md-sys-color-on-error: #690005;
  --md-sys-color-error-container: #93000A;
  --md-sys-color-on-error-container: #FFDAD6;
  --md-sys-color-background: #121212;
  --md-sys-color-on-background: #E6E0E9;
  --md-sys-color-surface: #121212;
  --md-sys-color-on-surface: #E6E0E9;
  --md-sys-color-surface-variant: #49454F;
  --md-sys-color-on-surface-variant: #CAC4D0;
  --md-sys-color-outline: #938F99;
  --md-sys-color-outline-variant: #49454F;
  --md-sys-color-shadow: #000000;
  --md-sys-color-scrim: #000000;
  --md-sys-color-inverse-surface: #E6E0E9;
  --md-sys-color-inverse-on-surface: #1C1B1F;
  --md-sys-color-inverse-primary: #6750A4;
  --md-sys-color-surface-dim: #121212;
  --md-sys-color-surface-bright: #36343B;
  --md-sys-color-surface-container-lowest: #0D0D0D;
  --md-sys-color-surface-container-low: #1C1B1F;
  --md-sys-color-surface-container: #1F1E22;
  --md-sys-color-surface-container-high: #2B2930;
  --md-sys-color-surface-container-highest: #36343B;

  /* Typography Scale */
  --md-sys-typescale-headline-large-font-family: 'Roboto', sans-serif;
  --md-sys-typescale-headline-large-font-weight: 400;
  --md-sys-typescale-headline-large-font-size: 32px;
  --md-sys-typescale-headline-large-line-height: 40px;
  --md-sys-typescale-headline-large-letter-spacing: 0px;

  --md-sys-typescale-title-large-font-family: 'Roboto', sans-serif;
  --md-sys-typescale-title-large-font-weight: 500;
  --md-sys-typescale-title-large-font-size: 22px;
  --md-sys-typescale-title-large-line-height: 28px;
  --md-sys-typescale-title-large-letter-spacing: 0px;

  --md-sys-typescale-body-large-font-family: 'Roboto', sans-serif;
  --md-sys-typescale-body-large-font-weight: 400;
  --md-sys-typescale-body-large-font-size: 16px;
  --md-sys-typescale-body-large-line-height: 24px;
  --md-sys-typescale-body-large-letter-spacing: 0.5px;

  --md-sys-typescale-label-large-font-family: 'Roboto', sans-serif;
  --md-sys-typescale-label-large-font-weight: 500;
  --md-sys-typescale-label-large-font-size: 14px;
  --md-sys-typescale-label-large-line-height: 20px;
  --md-sys-typescale-label-large-letter-spacing: 0.1px;

  /* Shape Tokens */
  --md-sys-shape-corner-none: 0px;
  --md-sys-shape-corner-extra-small: 4px;
  --md-sys-shape-corner-small: 8px;
  --md-sys-shape-corner-medium: 12px;
  --md-sys-shape-corner-large: 16px;
  --md-sys-shape-corner-extra-large: 28px;

  /* Elevation Tokens */
  --md-sys-elevation-level0: 0px 0px 0px 0px rgba(0, 0, 0, 0.2);
  --md-sys-elevation-level1: 0px 2px 1px -1px rgba(0, 0, 0, 0.2);
  --md-sys-elevation-level2: 0px 3px 1px -2px rgba(0, 0, 0, 0.2);
  --md-sys-elevation-level3: 0px 3px 3px -2px rgba(0, 0, 0, 0.2);
  --md-sys-elevation-level4: 0px 2px 4px -1px rgba(0, 0, 0, 0.2);
  --md-sys-elevation-level5: 0px 3px 5px -1px rgba(0, 0, 0, 0.2);

  /* Motion Tokens */
  --md-sys-motion-duration-short4: 200ms;
  --md-sys-motion-duration-medium4: 400ms;
  --md-sys-motion-easing-emphasized: cubic-bezier(0.2, 0.0, 0.0, 1.0);
  --md-sys-motion-easing-standard: cubic-bezier(0.2, 0.0, 0.0, 1.0);

  /* State Tokens */
  --md-sys-state-hover-state-layer-opacity: 0.08;
  --md-sys-state-focus-state-layer-opacity: 0.12;
  --md-sys-state-pressed-state-layer-opacity: 0.12;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Z-index */
  --z-dropdown: 1000;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-toast: 1080;
}

/* ===== DARK THEME ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --md-sys-color-primary: #D0BCFF;
    --md-sys-color-on-primary: #371E73;
    --md-sys-color-primary-container: #4F378B;
    --md-sys-color-on-primary-container: #EADDFF;
    --md-sys-color-secondary: #CCC2DC;
    --md-sys-color-on-secondary: #332D41;
    --md-sys-color-secondary-container: #4A4458;
    --md-sys-color-on-secondary-container: #E8DEF8;
    --md-sys-color-background: #1C1B1F;
    --md-sys-color-on-background: #E6E0E9;
    --md-sys-color-surface: #1C1B1F;
    --md-sys-color-on-surface: #E6E0E9;
    --md-sys-color-surface-variant: #49454F;
    --md-sys-color-on-surface-variant: #CAC4D0;
    --md-sys-color-outline: #938F99;
    --md-sys-color-outline-variant: #49454F;
    --md-sys-color-surface-container: #201F23;
    --md-sys-color-surface-container-high: #2B2930;
  }
}

/* ===== VIEW TRANSITIONS ===== */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
}

::view-transition-group(*) {
  animation-duration: var(--md-sys-motion-duration-medium4);
  animation-timing-function: var(--md-sys-motion-easing-emphasized);
}

/* ===== BASE STYLES ===== */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--md-sys-typescale-body-large-font-family);
  font-size: var(--md-sys-typescale-body-large-font-size);
  font-weight: var(--md-sys-typescale-body-large-font-weight);
  line-height: var(--md-sys-typescale-body-large-line-height);
  letter-spacing: var(--md-sys-typescale-body-large-letter-spacing);
  color: var(--md-sys-color-on-background);
  background-color: var(--md-sys-color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ===== TYPOGRAPHY ===== */
h1 {
  font-family: var(--md-sys-typescale-headline-large-font-family);
  font-size: var(--md-sys-typescale-headline-large-font-size);
  font-weight: var(--md-sys-typescale-headline-large-font-weight);
  line-height: var(--md-sys-typescale-headline-large-line-height);
  letter-spacing: var(--md-sys-typescale-headline-large-letter-spacing);
  color: var(--md-sys-color-on-background);
  margin: 0;
}

h3 {
  font-family: var(--md-sys-typescale-title-large-font-family);
  font-size: var(--md-sys-typescale-title-large-font-size);
  font-weight: var(--md-sys-typescale-title-large-font-weight);
  line-height: var(--md-sys-typescale-title-large-line-height);
  letter-spacing: var(--md-sys-typescale-title-large-letter-spacing);
  color: var(--md-sys-color-on-background);
  margin: 0;
}

p {
  font-family: var(--md-sys-typescale-body-large-font-family);
  font-size: var(--md-sys-typescale-body-large-font-size);
  font-weight: var(--md-sys-typescale-body-large-font-weight);
  line-height: var(--md-sys-typescale-body-large-line-height);
  letter-spacing: var(--md-sys-typescale-body-large-letter-spacing);
  color: var(--md-sys-color-on-background);
  margin: 0;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-lg);
  position: relative;
}

.header {
  margin-bottom: var(--space-2xl);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
}

.main-content {
  min-height: calc(100vh - 200px);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: var(--space-xl);
  align-items: start;
}

.page-title {
  text-align: center;
  margin-bottom: var(--space-2xl);
  background: linear-gradient(135deg, var(--md-sys-color-primary), var(--md-sys-color-tertiary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== CHIPS ===== */
.chip {
  display: inline-flex;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--md-sys-shape-corner-small);
  background-color: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface-variant);
  font-family: var(--md-sys-typescale-label-large-font-family);
  font-size: var(--md-sys-typescale-label-large-font-size);
  font-weight: var(--md-sys-typescale-label-large-font-weight);
  line-height: var(--md-sys-typescale-label-large-line-height);
  letter-spacing: var(--md-sys-typescale-label-large-letter-spacing);
  transition: all var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}

.chip:hover {
  background-color: var(--md-sys-color-surface-container-high);
  transform: translateY(-1px);
}

/* ===== PROFILE COMPONENT ===== */
.profile-container {
  position: relative;
}

.profile-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border: none;
  border-radius: var(--md-sys-shape-corner-large);
  background-color: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface);
  font-family: var(--md-sys-typescale-label-large-font-family);
  font-size: var(--md-sys-typescale-label-large-font-size);
  font-weight: var(--md-sys-typescale-label-large-font-weight);
  line-height: var(--md-sys-typescale-label-large-line-height);
  letter-spacing: var(--md-sys-typescale-label-large-letter-spacing);
  cursor: pointer;
  transition: all var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
  position: relative;
  overflow: hidden;
}

.profile-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--md-sys-color-primary);
  opacity: 0;
  transition: opacity var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}

.profile-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--md-sys-elevation-level2);
}

.profile-btn:hover::before {
  opacity: var(--md-sys-state-hover-state-layer-opacity);
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--md-sys-color-outline);
}

.profile-name {
  color: var(--md-sys-color-on-surface);
  font-weight: 500;
}

.dropdown-arrow {
  transition: transform var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}

.profile-menu {
  position: absolute;
  top: calc(100% + var(--space-xs));
  right: 0;
  min-width: 200px;
  background-color: var(--md-sys-color-surface-container);
  border-radius: var(--md-sys-shape-corner-medium);
  box-shadow: var(--md-sys-elevation-level3);
  z-index: var(--z-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}

.profile-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-menu a {
  display: block;
  padding: var(--space-md) var(--space-lg);
  color: var(--md-sys-color-on-surface);
  text-decoration: none;
  font-family: var(--md-sys-typescale-body-large-font-family);
  font-size: var(--md-sys-typescale-body-large-font-size);
  font-weight: var(--md-sys-typescale-body-large-font-weight);
  line-height: var(--md-sys-typescale-body-large-line-height);
  letter-spacing: var(--md-sys-typescale-body-large-letter-spacing);
  transition: all var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}

.profile-menu a:hover {
  background-color: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-primary);
}

.profile-menu a:first-child {
  border-radius: var(--md-sys-shape-corner-medium) var(--md-sys-shape-corner-medium) 0 0;
}

.profile-menu a:last-child {
  border-radius: 0 0 var(--md-sys-shape-corner-medium) var(--md-sys-shape-corner-medium);
}

.logout-btn {
  color: var(--md-sys-color-error) !important;
}

/* ===== CARDS ===== */
.card {
  background-color: var(--md-sys-color-surface-container);
  border-radius: var(--md-sys-shape-corner-large);
  box-shadow: var(--md-sys-elevation-level1);
  transition: all var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
  position: relative;
  overflow: hidden;
  view-transition-name: card;
}

.card:hover {
  box-shadow: var(--md-sys-elevation-level3);
  transform: translateY(-2px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    var(--md-sys-color-primary) 0%, 
    var(--md-sys-color-secondary) 100%);
  opacity: 0;
  transition: opacity var(--md-sys-motion-duration-medium4) var(--md-sys-motion-easing-emphasized);
  pointer-events: none;
}

.card:hover::before {
  opacity: 0.03;
}

.card-header {
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.card-header h3 {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--md-sys-color-on-surface);
}

/* ===== FORMS ===== */
.form {
  padding: var(--space-lg);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group:last-child {
  margin-bottom: 0;
}

label {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--md-sys-color-on-surface);
  font-family: var(--md-sys-typescale-label-large-font-family);
  font-size: var(--md-sys-typescale-label-large-font-size);
  font-weight: var(--md-sys-typescale-label-large-font-weight);
  line-height: var(--md-sys-typescale-label-large-line-height);
  letter-spacing: var(--md-sys-typescale-label-large-letter-spacing);
}

input, textarea, select {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-sys-shape-corner-small);
  background-color: var(--md-sys-color-surface-container-high) !important;
  color: var(--md-sys-color-on-surface);
  font-size: 1rem;
  transition: all var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-emphasized);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--md-sys-color-primary);
  border-width: 2px;
  background-color: var(--md-sys-color-surface-container-highest) !important;
  box-shadow: 0 0 0 4px var(--md-sys-color-primary-container);
}

input:hover, textarea:hover, select:hover {
  background-color: var(--md-sys-color-surface-container-highest) !important;
}

input::placeholder, textarea::placeholder {
  color: var(--md-sys-color-on-surface-variant);
  opacity: 0.7;
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary, .btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border: none;
  border-radius: var(--md-sys-shape-corner-large);
  font-family: var(--md-sys-typescale-label-large-font-family);
  font-size: var(--md-sys-typescale-label-large-font-size);
  font-weight: var(--md-sys-typescale-label-large-font-weight);
  line-height: var(--md-sys-typescale-label-large-line-height);
  letter-spacing: var(--md-sys-typescale-label-large-letter-spacing);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Primary Button */
.btn-primary {
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  box-shadow: var(--md-sys-elevation-level1);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--md-sys-color-on-primary);
  opacity: 0;
  transition: opacity var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}

.btn-primary:hover {
  box-shadow: var(--md-sys-elevation-level3);
  transform: translateY(-1px);
}

.btn-primary:hover::before {
  opacity: var(--md-sys-state-hover-state-layer-opacity);
}

.btn-primary:active {
  box-shadow: var(--md-sys-elevation-level1);
  transform: translateY(0);
}

.btn-primary:active::before {
  opacity: var(--md-sys-state-pressed-state-layer-opacity);
}

/* Secondary Button */
.btn-secondary {
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--md-sys-color-on-secondary-container);
  opacity: 0;
  transition: opacity var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}

.btn-secondary:hover {
  box-shadow: var(--md-sys-elevation-level2);
  transform: translateY(-1px);
}

.btn-secondary:hover::before {
  opacity: var(--md-sys-state-hover-state-layer-opacity);
}

.btn-secondary:active {
  box-shadow: var(--md-sys-elevation-level1);
  transform: translateY(0);
}

.btn-secondary:active::before {
  opacity: var(--md-sys-state-pressed-state-layer-opacity);
}

/* Danger Button */
.btn-danger {
  background-color: var(--md-sys-color-error-container);
  color: var(--md-sys-color-on-error-container);
}

.btn-danger::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--md-sys-color-on-error-container);
  opacity: 0;
  transition: opacity var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}

.btn-danger:hover {
  box-shadow: var(--md-sys-elevation-level2);
  transform: translateY(-1px);
}

.btn-danger:hover::before {
  opacity: var(--md-sys-state-hover-state-layer-opacity);
}

.btn-danger:active {
  box-shadow: var(--md-sys-elevation-level1);
  transform: translateY(0);
}

.btn-danger:active::before {
  opacity: var(--md-sys-state-pressed-state-layer-opacity);
}

/* ===== LISTS ===== */
.content-list {
  padding: var(--space-md);
  max-height: 400px;
  overflow-y: auto;
}

.content-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.content-list li {
  padding: var(--space-md);
  border-radius: var(--md-sys-shape-corner-small);
  margin-bottom: var(--space-sm);
  background-color: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface);
  transition: all var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
  cursor: pointer;
}

.content-list li:hover {
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  transform: translateX(4px);
}

.content-list li:last-child {
  margin-bottom: 0;
}

/* ===== SEARCH ===== */
.search-container {
  padding: var(--space-md);
}

.search-input {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-sys-shape-corner-medium);
  background-color: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface);
  font-family: var(--md-sys-typescale-body-large-font-family);
  font-size: var(--md-sys-typescale-body-large-font-size);
  font-weight: var(--md-sys-typescale-body-large-font-weight);
  line-height: var(--md-sys-typescale-body-large-line-height);
  letter-spacing: var(--md-sys-typescale-body-large-letter-spacing);
  transition: all var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}

.search-input:focus {
  outline: none;
  border-color: var(--md-sys-color-primary);
  border-width: 2px;
  box-shadow: 0 0 0 2px var(--md-sys-color-primary-container);
  background-color: var(--md-sys-color-surface-bright);
}

.search-results {
  list-style: none;
  padding: 0;
  margin: var(--space-sm) 0 0;
  max-height: 200px;
  overflow-y: auto;
}

.search-results li {
  padding: var(--space-md);
  border-radius: var(--md-sys-shape-corner-small);
  margin-bottom: var(--space-xs);
  background-color: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface);
  transition: all var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
  cursor: pointer;
}

.search-results li:hover {
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  transform: translateX(4px);
}

.search-results li:last-child {
  margin-bottom: 0;
}

/* ===== LICENSES ===== */
.licenses-section {
  padding: var(--space-md);
}

.license-card {
  background-color: var(--md-sys-color-surface-container-high);
  border-radius: var(--md-sys-shape-corner-medium);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  transition: all var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
  position: relative;
  overflow: hidden;
}

.license-card:hover {
  box-shadow: var(--md-sys-elevation-level2);
  transform: translateY(-1px);
}

/* ===== STATUS BADGES ===== */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--md-sys-shape-corner-small);
  font-family: var(--md-sys-typescale-label-medium-font-family);
  font-size: var(--md-sys-typescale-label-medium-font-size);
  font-weight: var(--md-sys-typescale-label-medium-font-weight);
  line-height: var(--md-sys-typescale-label-medium-line-height);
  letter-spacing: var(--md-sys-typescale-label-medium-letter-spacing);
  text-transform: uppercase;
}

.status-active {
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.status-inactive {
  background-color: var(--md-sys-color-surface-variant);
  color: var(--md-sys-color-on-surface-variant);
}

.status-warning {
  background-color: var(--md-sys-color-tertiary-container);
  color: var(--md-sys-color-on-tertiary-container);
}

/* ===== USAGE BARS ===== */
.usage-bar {
  width: 100%;
  height: 8px;
  background-color: var(--md-sys-color-surface-variant);
  border-radius: var(--md-sys-shape-corner-none);
  overflow: hidden;
  margin-top: var(--space-sm);
}

.usage-fill {
  height: 100%;
  border-radius: var(--md-sys-shape-corner-none);
  transition: width var(--md-sys-motion-duration-medium4) var(--md-sys-motion-easing-emphasized);
  position: relative;
  overflow: hidden;
}

.usage-fill::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;
}

.usage-low {
  background-color: var(--md-sys-color-primary);
}

.usage-medium {
  background-color: var(--md-sys-color-tertiary);
}

.usage-high {
  background-color: var(--md-sys-color-error);
}

/* ===== MODALS ===== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--md-sys-color-scrim);
  opacity: 0.5;
  z-index: var(--z-modal-backdrop);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--md-sys-color-surface-container);
  border-radius: var(--md-sys-shape-corner-extra-large);
  box-shadow: var(--md-sys-elevation-level5);
  z-index: var(--z-modal);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-xl);
}

/* ===== NOTIFICATIONS ===== */
.notification {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  background-color: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--md-sys-shape-corner-medium);
  box-shadow: var(--md-sys-elevation-level3);
  z-index: var(--z-toast);
  max-width: 400px;
  animation: slideInRight var(--md-sys-motion-duration-medium4) var(--md-sys-motion-easing-emphasized);
}

.notification.success {
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.notification.error {
  background-color: var(--md-sys-color-error-container);
  color: var(--md-sys-color-on-error-container);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

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

.fade-in {
  animation: fadeIn var(--md-sys-motion-duration-medium4) var(--md-sys-motion-easing-emphasized);
}

.slide-in {
  animation: slideInRight var(--md-sys-motion-duration-medium4) var(--md-sys-motion-easing-emphasized);
}

/* ===== HELPER TEXT ===== */
.helper {
  font-family: var(--md-sys-typescale-body-small-font-family);
  font-size: var(--md-sys-typescale-body-small-font-size);
  font-weight: var(--md-sys-typescale-body-small-font-weight);
  line-height: var(--md-sys-typescale-body-small-line-height);
  letter-spacing: var(--md-sys-typescale-body-small-letter-spacing);
  color: var(--md-sys-color-on-surface-variant);
  margin: var(--space-xs) 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .container {
    padding: var(--space-md);
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .header-content {
    flex-direction: column;
    gap: var(--space-md);
    align-items: stretch;
  }
  
  .profile-menu {
    right: 0;
    left: 0;
    min-width: auto;
  }
  
  .modal-content {
    width: 95%;
    padding: var(--space-lg);
  }
  
  .notification {
    right: var(--space-md);
    left: var(--space-md);
    max-width: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: var(--space-sm);
  }
  
  .page-title {
    font-size: 24px;
  }
  
  .btn-primary, .btn-secondary, .btn-danger {
    padding: var(--space-sm) var(--space-md);
    font-size: 12px;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== FOCUS STYLES ===== */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 2px;
}

/* ===== ROBOTO FONT ===== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
