/* Main stylesheet with ShadCN-inspired design */
:root {
  /* Colors */
  --background: #ffffff;
  --foreground: #0f172a;
  
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  
  --primary: #3b82f6;
  --primary-foreground: #ffffff;
  
  --secondary: #f1f5f9;
  --secondary-foreground: #1e293b;
  
  --accent: #f1f5f9;
  --accent-foreground: #1e293b;
  
  --border: #e2e8f0;
  --ring: #3b82f6;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0f172a;
    --foreground: #f8fafc;
    
    --muted: #1e293b;
    --muted-foreground: #94a3b8;
    
    --primary: #3b82f6;
    --primary-foreground: #ffffff;
    
    --secondary: #1e293b;
    --secondary-foreground: #f8fafc;
    
    --accent: #1e293b;
    --accent-foreground: #f8fafc;
    
    --border: #1e293b;
    --ring: #3b82f6;
  }
}

/* Base styles */
body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  padding: var(--space-4);
}

/* Container */
.container {
  max-width: 768px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  gap: var(--space-8);
  padding: var(--space-4);
}

/* Header */
header {
  text-align: center;
  padding: var(--space-6) 0;
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
}

/* Main content */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

/* Generator section */
.generator-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  background-color: var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* UUID display */
.uuid-display {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.uuid-output {
  flex: 1;
  font-family: monospace;
  font-size: 1rem;
  white-space: nowrap;
  color: var(--foreground);
}

/* Controls */
.controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.options {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .options {
    flex-direction: row;
    gap: var(--space-6);
  }
  
  .options > fieldset {
    flex: 1;
  }
}

/* Radio groups */
fieldset {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

legend {
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--muted-foreground);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.radio-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
}

.radio-label input[type="radio"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
}

/* Buttons */
.primary-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.primary-btn:hover {
  background-color: #2970ea;
  box-shadow: var(--shadow-md);
}

.primary-btn:active {
  background-color: #1d4ed8;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.2s;
}

.icon-btn:hover {
  background-color: #e2e8f0;
}

.icon-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* History section */
.history-section {
  padding: var(--space-6);
  background-color: var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.history-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: 200px;
  overflow-y: auto;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: monospace;
  transition: background-color 0.2s;
}

.history-item:hover {
  background-color: var(--secondary);
}

/* Footer */
footer {
  text-align: center;
  padding: var(--space-4) 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

footer a {
  color: var(--primary);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
} 