/* Main Stylesheet for pgdesktop */

/* Variables */
:root {
    /* Light theme colors */
    --background-light: #ffffff;
    --foreground-light: #0f0f0f;
    --muted-light: #f5f5f4;
    --muted-foreground-light: #737373;
    --popover-light: #ffffff;
    --popover-foreground-light: #0f0f0f;
    --card-light: #ffffff;
    --card-foreground-light: #0f0f0f;
    --border-light: #e5e5e5;
    --input-light: #e5e5e5;
    --primary-light: #1c8adb;
    --primary-foreground-light: #f8fafc;
    --secondary-light: #f5f5f4;
    --secondary-foreground-light: #1a1a1a;
    --accent-light: #f5f5f4;
    --accent-foreground-light: #1a1a1a;
    --destructive-light: #ef4444;
    --destructive-foreground-light: #fafaf9;
    --ring-light: #0f0f0f;
    --radius: 0.5rem;
    
    /* Apply light theme by default */
    --background: var(--background-light);
    --foreground: var(--foreground-light);
    --muted: var(--muted-light);
    --muted-foreground: var(--muted-foreground-light);
    --popover: var(--popover-light);
    --popover-foreground: var(--popover-foreground-light);
    --card: var(--card-light);
    --card-foreground: var(--card-foreground-light);
    --border: var(--border-light);
    --input: var(--input-light);
    --primary: var(--primary-light);
    --primary-foreground: var(--primary-foreground-light);
    --secondary: var(--secondary-light);
    --secondary-foreground: var(--secondary-foreground-light);
    --accent: var(--accent-light);
    --accent-foreground: var(--accent-foreground-light);
    --destructive: var(--destructive-light);
    --destructive-foreground: var(--destructive-foreground-light);
    --ring: var(--ring-light);
}

/* Dark theme colors */
.dark {
    --background: #0a0a0a;
    --foreground: #fafaf9;
    --muted: #1f1f1f;
    --muted-foreground: #a3a3a3;
    --popover: #0a0a0a;
    --popover-foreground: #fafaf9;
    --card: #0a0a0a;
    --card-foreground: #fafaf9;
    --border: #1f1f1f;
    --input: #1f1f1f;
    --primary: #1c8adb;
    --primary-foreground: #f8fafc;
    --secondary: #1f1f1f;
    --secondary-foreground: #fafaf9;
    --accent: #1f1f1f;
    --accent-foreground: #fafaf9;
    --destructive: #7f1d1d;
    --destructive-foreground: #fafaf9;
    --ring: #d4d4d4;
}

/* Base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-color: var(--border);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--foreground);
    background-color: var(--background);
    min-height: 100vh;
    transition: color 200ms, background-color 200ms;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--foreground);
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 150ms;
}

a:hover {
    color: color-mix(in srgb, var(--primary) 80%, black);
}

img {
    max-width: 100%;
    height: auto;
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 150ms ease;
}

a:hover {
    color: color-mix(in srgb, var(--primary) 80%, black);
    text-decoration: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-sm {
    padding: 2rem 0;
}

.section-lg {
    padding: 6rem 0;
}

/* Forms */
form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--foreground);
}

input,
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--background);
    color: var(--foreground);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(28, 138, 219, 0.2);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background-color: color-mix(in srgb, var(--primary) 80%, black);
    border-color: color-mix(in srgb, var(--primary) 80%, black);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}