@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  /* BlackRidge Cyber dark theme - default */
  --font-size: 16px;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --background: #121212; /* Main background */
  --foreground: #ffffff;
  --card: #1a1a1a;
  --card-foreground: #ffffff;
  --popover: #1a1a1a;
  --popover-foreground: #ffffff;
  --primary: #06b6d4; /* Teal/Cyan accent */
  --primary-foreground: #0a0a0a;
  --secondary: #1e293b;
  --secondary-foreground: #ffffff;
  --muted: #1e293b;
  --muted-foreground: #94a3b8;
  --accent: #0e7490; /* Darker teal for hover states */
  --accent-foreground: #ffffff;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #2d2d2d;
  --input: #2d2d2d;
  --input-background: #1a1a1a;
  --switch-background: #2d2d2d;
  --ring: #06b6d4;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --chart-1: #06b6d4;
  --chart-2: #8b5cf6;
  --chart-3: #10b981;
  --chart-4: #f59e0b;
  --chart-5: #ef4444;
  --radius: 0.5rem;
  --sidebar: #0f0f0f; /* Sidebar background */
  --sidebar-foreground: #ffffff;
  --sidebar-primary: #06b6d4; /* Teal accent for active state */
  --sidebar-primary-foreground: #0a0a0a;
  --sidebar-accent: #1e1e1e; /* Active item background */
  --sidebar-accent-foreground: #ffffff;
  --sidebar-border: #2d2d2d;
  --sidebar-ring: #06b6d4;
}

html {
  font-size: var(--font-size);
}

/* Base typography matching React app exactly */
h1 {
  font-size: var(--text-2xl); /* 1.5rem */
  font-weight: var(--font-weight-medium); /* 500 */
  line-height: 1.5;
  color: var(--foreground);
  margin: 0;
}

h2 {
  font-size: var(--text-xl); /* 1.25rem */
  font-weight: var(--font-weight-medium); /* 500 */
  line-height: 1.5;
  color: var(--foreground);
  margin: 0;
}

h3 {
  font-size: var(--text-lg); /* 1.125rem */
  font-weight: var(--font-weight-medium); /* 500 */
  line-height: 1.5;
  color: var(--foreground);
  margin: 0;
}

h4 {
  font-size: var(--text-base); /* 1rem */
  font-weight: var(--font-weight-medium); /* 500 */
  line-height: 1.5;
  color: var(--foreground);
  margin: 0;
}

p {
  font-size: var(--text-base); /* 1rem */
  font-weight: var(--font-weight-normal); /* 400 */
  line-height: 1.5;
  color: var(--foreground);
  margin: 0;
}

label {
  font-size: var(--text-base); /* 1rem */
  font-weight: var(--font-weight-medium); /* 500 */
  line-height: 1.5;
  color: var(--foreground);
}

button {
  font-size: var(--text-base); /* 1rem */
  font-weight: var(--font-weight-medium); /* 500 */
  line-height: 1.5;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
}

input, select, textarea {
  font-size: var(--text-base); /* 1rem */
  font-weight: var(--font-weight-normal); /* 400 */
  line-height: 1.5;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
}

/* Utility classes for consistent typography */
.text-xs { font-size: var(--text-xs); } /* 0.75rem */
.text-sm { font-size: var(--text-sm); } /* 0.875rem */
.text-base { font-size: var(--text-base); } /* 1rem */
.text-lg { font-size: var(--text-lg); } /* 1.125rem */
.text-xl { font-size: var(--text-xl); } /* 1.25rem */
.text-2xl { font-size: var(--text-2xl); } /* 1.5rem */

.font-normal { font-weight: var(--font-weight-normal); } /* 400 */
.font-medium { font-weight: var(--font-weight-medium); } /* 500 */
.font-semibold { font-weight: var(--font-weight-semibold); } /* 600 */
.font-bold { font-weight: var(--font-weight-bold); } /* 700 */

.text-foreground { color: var(--foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-primary { color: var(--primary); }
.text-destructive { color: var(--destructive); }

/* Additional utility classes */
.title { font-size: var(--text-lg); font-weight: var(--font-weight-semibold); color: var(--foreground); }
.muted { color: var(--muted-foreground); }
.tiny { font-size: var(--text-xs); }
.small { font-size: var(--text-sm); }
.big { font-size: var(--text-xl); font-weight: var(--font-weight-semibold); color: var(--foreground); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

/* Input field styling for modals */
.input,
input.input {
  width: 100% !important;
/*  height: 36px !important;*/
padding: 0 12px !important;
  background-color: var(--input-background) !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
  color: var(--foreground) !important;
  font-size: 14px !important;
  transition: border-color 0.2s ease !important;
  outline: none !important;
}

.input:focus,
input.input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2) !important;
}

.input::placeholder,
input.input::placeholder {
  color: var(--muted-foreground) !important;
}

/* Date/time inputs - Dark Theme */
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"] {
  color-scheme: light;
  color: var(--foreground);
}

/* Calendar icon visibility - make it white */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator,
input[type="week"]::-webkit-calendar-picker-indicator,
.input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(2) !important;
  cursor: pointer !important;
  opacity: 0.8 !important;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
input[type="month"]::-webkit-calendar-picker-indicator:hover,
input[type="week"]::-webkit-calendar-picker-indicator:hover,
.input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1 !important;
  filter: invert(1) brightness(2) !important;
}

/* Number input spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  opacity: 1;
}