/* Isomorphic Theme Styles - Converted for HTML/CSS */

/* CSS Variables - Color System */
:root {
  /* Gray colors */
  --gray-0: 255 255 255;
  --gray-50: 250 250 250;
  --gray-100: 241 241 241;
  --gray-200: 227 227 227;
  --gray-300: 223 223 223;
  --gray-400: 146 146 146;
  --gray-500: 102 102 102;
  --gray-600: 72 72 72;
  --gray-700: 51 51 51;
  --gray-800: 34 34 34;
  --gray-900: 17 17 17;
  --gray-1000: 0 0 0;

  /* Body style */
  --background: 255 255 255;
  --foreground: 72 72 72;
  --muted: 227 227 227;
  --muted-foreground: 146 146 146;

  /* Primary colors */
  --primary-lighter: 227 227 227;
  --primary-default: 17 17 17;
  --primary-dark: 0 0 0;
  --primary-foreground: 255 255 255;

  /* Secondary colors */
  --secondary-lighter: 221 227 255;
  --secondary-default: 78 54 245;
  --secondary-dark: 67 42 216;
  --secondary-foreground: 255 255 255;

  /* Red/Error colors */
  --red-lighter: 247 212 214;
  --red-default: 238 0 0;
  --red-dark: 197 0 0;

  /* Orange/Warning colors */
  --orange-lighter: 255 239 207;
  --orange-default: 245 166 35;
  --orange-dark: 171 87 10;

  /* Blue/Info colors */
  --blue-lighter: 211 229 255;
  --blue-default: 0 112 243;
  --blue-dark: 7 97 209;

  /* Green/Success colors */
  --green-lighter: 185 249 207;
  --green-default: 17 168 73;
  --green-dark: 17 132 60;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;
}

/* Dark theme */
[data-theme='dark'] {
  --gray-0: 0 0 0;
  --gray-50: 17 17 17;
  --gray-100: 34 34 34;
  --gray-200: 51 51 51;
  --gray-300: 72 72 72;
  --gray-400: 102 102 102;
  --gray-500: 146 146 146;
  --gray-600: 223 223 223;
  --gray-700: 241 241 241;
  --gray-800: 250 250 250;
  --gray-900: 255 255 255;
  --gray-1000: 255 255 255;

  --background: 0 0 0;
  --foreground: 241 241 241;
  --muted: 51 51 51;
  --muted-foreground: 146 146 146;

  --primary-lighter: 34 34 34;
  --primary-default: 241 241 241;
  --primary-dark: 255 255 255;
  --primary-foreground: 0 0 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: rgb(var(--background));
  color: rgb(var(--foreground));
  line-height: 1.5;
}

/* Layout styles */
.layout-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding: 1.5rem;
  margin: 0 auto;
  width: 100%;
}

/* Card styles */
.card {
  background: rgb(var(--background));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  border: 1px solid rgb(var(--gray-200));
}

.card-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgb(var(--gray-200));
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgb(var(--foreground));
  margin: 0;
}

/* Table styles */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgb(var(--gray-200));
  background: rgb(var(--background));
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table thead {
  background: rgb(var(--gray-50));
  border-bottom: 2px solid rgb(var(--gray-200));
}

.table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: rgb(var(--foreground));
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgb(var(--gray-200));
  color: rgb(var(--foreground));
}

.table tbody tr:hover {
  background: rgb(var(--gray-50));
  transition: background-color 0.2s;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: rgb(var(--primary-default));
  color: rgb(var(--primary-foreground));
}

.btn-primary:hover {
  background: rgb(var(--primary-dark));
}

.btn-secondary {
  background: rgb(var(--secondary-default));
  color: rgb(var(--secondary-foreground));
}

.btn-secondary:hover {
  background: rgb(var(--secondary-dark));
}

.btn-outline {
  background: transparent;
  border-color: rgb(var(--gray-300));
  color: rgb(var(--foreground));
}

.btn-outline:hover {
  background: rgb(var(--gray-50));
}

/* Input styles */
.input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid rgb(var(--gray-300));
  border-radius: var(--radius-md);
  background: rgb(var(--background));
  color: rgb(var(--foreground));
  transition: border-color 0.2s;
}

.input:focus {
  outline: none;
  border-color: rgb(var(--primary-default));
  box-shadow: 0 0 0 3px rgba(var(--primary-default), 0.1);
}

/* Badge styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-full);
}

.badge-success {
  background: rgb(var(--green-lighter));
  color: rgb(var(--green-dark));
}

.badge-error {
  background: rgb(var(--red-lighter));
  color: rgb(var(--red-dark));
}

.badge-warning {
  background: rgb(var(--orange-lighter));
  color: rgb(var(--orange-dark));
}

.badge-info {
  background: rgb(var(--blue-lighter));
  color: rgb(var(--blue-dark));
}

/* Tab styles */
.tabs {
  display: flex;
  border-bottom: 2px solid rgb(var(--gray-200));
  margin-bottom: 1.5rem;
}

.tab {
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(var(--gray-500));
  transition: all 0.2s;
  position: relative;
  bottom: -2px;
}

.tab:hover {
  color: rgb(var(--foreground));
  background: rgb(var(--gray-50));
}

.tab.active {
  color: rgb(var(--primary-default));
  border-bottom-color: rgb(var(--primary-default));
  background: transparent;
}

/* Status message styles */
.status {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-success {
  background: rgb(var(--green-lighter));
  color: rgb(var(--green-dark));
  border: 1px solid rgb(var(--green-default));
}

.status-error {
  background: rgb(var(--red-lighter));
  color: rgb(var(--red-dark));
  border: 1px solid rgb(var(--red-default));
}

.status-info {
  background: rgb(var(--blue-lighter));
  color: rgb(var(--blue-dark));
  border: 1px solid rgb(var(--blue-default));
}

.status-warning {
  background: rgb(var(--orange-lighter));
  color: rgb(var(--orange-dark));
  border: 1px solid rgb(var(--orange-default));
}

/* Loading spinner */
.spinner {
  border: 2px solid rgb(var(--gray-200));
  border-top-color: rgb(var(--primary-default));
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  animation: spin 0.8s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
  .main-content {
    padding: 1rem;
  }

  .table-container {
    font-size: 0.75rem;
  }

  .table th,
  .table td {
    padding: 0.5rem;
  }
}

