/* Biral – minimal workspace with theme support */

:root {
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;
}

/* Dark theme (default) */
:root,
[data-theme="dark"] {
    --bg: #0c0f12;
    --bg-alt: #161c22;
    --surface: rgba(21, 26, 33, 0.92);
    --surface-solid: #161b21;
    --surface-muted: rgba(255, 255, 255, 0.04);
    --text: #f5f7fa;
    --muted: #98a4b4;
    --accent: #6a8b5a;
    --accent-strong: #4f6b45;
    --danger: #f05d5e;
    --warning: #f8ac30;
    --success: #6a8b5a;
    --border: rgba(255, 255, 255, 0.08);
    --shadow-soft: 0 25px 50px rgba(0, 0, 0, 0.45);
}

/* Light theme */
[data-theme="light"] {
    --bg: #f8f9fa;
    --bg-alt: #ffffff;
    --surface: rgba(255, 255, 255, 0.95);
    --surface-solid: #ffffff;
    --surface-muted: rgba(0, 0, 0, 0.04);
    --text: #1a1f2e;
    --muted: #6b7280;
    --accent: #6a8b5a;
    --accent-strong: #4f6b45;
    --danger: #f05d5e;
    --warning: #f8ac30;
    --success: #6a8b5a;
    --border: rgba(0, 0, 0, 0.1);
    --shadow-soft: 0 25px 50px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: "Inter", "SF Pro Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at top, #151a1f 0%, var(--bg) 45%, #080a0d 100%);
    color: var(--text);
    min-height: 100vh;
    padding: 0;
    line-height: 1.6;
    position: relative;
    transition: background 0.3s ease, color 0.3s ease;
}

[data-theme="light"] body {
    background: radial-gradient(circle at top, #f0f2f5 0%, var(--bg) 45%, #e8ebef 100%);
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.55;
    z-index: 0;
    transition: background 0.3s ease;
}

body::before {
    background: rgba(117, 158, 122, 0.2);
    top: -120px;
    right: 5%;
}

[data-theme="light"] body::before {
    background: rgba(106, 139, 90, 0.08);
}

body::after {
    background: rgba(175, 110, 57, 0.18);
    bottom: -120px;
    left: 8%;
}

[data-theme="light"] body::after {
    background: rgba(106, 139, 90, 0.06);
}

.shell {
    width: min(1200px, calc(100% - 4rem));
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.site-header .shell {
    width: 100%;
    max-width: none;
    padding: 0.8rem 1.5rem;
}

main {
    position: relative;
    z-index: 1;
}

.section {
    padding: 4.5rem 0;
}

.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(12, 15, 18, 0.85);
    backdrop-filter: blur(18px);
    z-index: 20;
    transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .site-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
}

.site-header > .shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    color: var(--text);
}

.site-header .brand-mark {
    width: 60px;
    height: 60px;
    padding: 0;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-header .brand .app-logo {
    width: 60px;
    height: 60px;
    padding: 0;
    border: 1px solid var(--accent);
    background: transparent;
    box-shadow: none;
    object-fit: contain;
    display: block;
}

.brand-mark {
    width: 52px;
    height: 52px;
    padding: 6px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s ease;
}

[data-theme="light"] .brand-mark {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-tagline {
    font-size: 0.85rem;
    color: var(--muted);
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.primary-nav a {
    text-decoration: none;
    color: var(--muted);
    position: relative;
    padding-bottom: 0.2rem;
    transition: color 0.2s ease;
}

.primary-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.primary-nav a:hover {
    color: var(--text);
}

.primary-nav a:hover::after {
    transform: scaleX(1);
}

.primary-nav a.active {
    color: var(--text);
}

.primary-nav a.active::after {
    transform: scaleX(1);
}

.header-cta {
    white-space: nowrap;
}

.hero {
    padding: 4rem 0 4.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-copy {
    max-width: 600px;
}

.hero h1 {
    font-size: clamp(2.6rem, 4vw, 3.6rem);
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hero-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: grid;
    gap: 0.85rem;
}

.hero-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    color: var(--text);
}

.hero-benefits li::before {
    content: "→";
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-placeholder {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/3;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

.visual-content {
    padding: 2rem;
    text-align: center;
}

.code-preview {
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.product-showcase {
    padding: 4.5rem 0;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease;
}

[data-theme="light"] .product-showcase {
    background: rgba(255, 255, 255, 0.5);
}

.showcase-container {
    max-width: 900px;
    margin: 0 auto;
}

.showcase-visual {
    width: 100%;
}

.mock-interface {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.3s ease;
}

[data-theme="light"] .mock-interface {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.mock-header {
    background: var(--surface-solid);
    padding: 1rem 1.5rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.mock-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--muted);
}

.mock-dot:nth-child(1) {
    background: #ff5f57;
}

.mock-dot:nth-child(2) {
    background: #ffbd2e;
}

.mock-dot:nth-child(3) {
    background: #28c840;
}

.mock-content {
    padding: 2.5rem;
}

.mock-question {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.mock-answer {
    color: var(--muted);
    line-height: 1.7;
}

.mock-answer ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.mock-answer li {
    margin-bottom: 0.5rem;
}

.section-label {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    color: var(--muted);
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    letter-spacing: -0.01em;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.feature-grid-asymmetric {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .feature-card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.feature-card-primary {
    grid-column: 1;
    padding: 3rem;
}

.feature-card-primary h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.feature-card-primary p {
    font-size: 1.1rem;
}

.feature-subgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card-secondary {
    padding: 2rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 1rem;
}

.workflow-container {
    max-width: 700px;
    margin: 0 auto;
}

.workflow-steps-linear {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.workflow-step {
    position: relative;
    padding-left: 4rem;
    padding-bottom: 3rem;
}

.workflow-step:last-child {
    padding-bottom: 0;
}

.step-connector {
    position: absolute;
    left: 15px;
    top: 48px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    opacity: 0.3;
}

.workflow-step:last-child .step-connector {
    display: none;
}

.step-content {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    position: absolute;
    left: 0;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--accent);
    background: var(--bg);
    flex-shrink: 0;
    transition: background 0.3s ease;
}

[data-theme="light"] .step-number {
    background: var(--bg-alt);
}

.workflow-steps-linear h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.workflow-steps-linear p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 1rem;
}

/* Product Main Layout - Full Screen */
.product-main {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 81px); /* Full height minus header */
    overflow: hidden;
}

.product-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: 100%;
    overflow: hidden;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.5rem;
    position: relative;
}

/* Repository Panel - Left Sidebar */
.repo-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    overflow: hidden;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-bottom: none;
    background: var(--bg-alt);
}

.repo-panel-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.repo-panel-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.repo-panel-title svg {
    color: var(--accent);
}

.open-connect-btn {
    display: none;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    white-space: nowrap;
    align-self: stretch;
}

.btn-accent-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-accent-outline:hover {
    background: rgba(106, 139, 90, 0.1);
    border-color: var(--accent);
}

.repo-list-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-right: 0.5rem;
}

.repo-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.repo-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.25rem;
    margin-bottom: 0.25rem;
}

.repo-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.repo-section-count {
    font-size: 0.7rem;
    color: var(--muted);
    background: var(--surface-muted);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-weight: 500;
}

.repo-section-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.repo-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 1rem;
    color: var(--muted);
    font-size: 0.9rem;
}

#repoList .repo-empty {
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 2rem 1rem;
}

/* Main Panel - Full Width Chat Area */
.main-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 1.5rem 2rem;
}

.main-panel .card {
    margin-top: 0;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.main-panel .connect-card {
    overflow: visible !important;
    flex: none;
}

.main-panel .card + .card {
    margin-top: 1rem;
}

.main-panel.center-connect {
    justify-content: center;
    align-items: center;
}

.main-panel.center-connect #connectCard {
    max-width: 560px;
    width: 100%;
    flex: none;
}

/* Connect Card */
.connect-card {
    overflow: visible;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding-bottom: 0.5rem;
}

.connect-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.connect-card-title-group {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.connect-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(106, 139, 90, 0.15);
    border: 1px solid rgba(106, 139, 90, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.connect-card-header h2 {
    margin-bottom: 0.25rem;
}

.connect-card-header h2::after {
    display: none;
}

.connect-copy {
    color: var(--muted);
    font-size: 0.95rem;
    margin-top: 0;
}

.icon-button {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="light"] .icon-button {
    background: rgba(0, 0, 0, 0.03);
}

.icon-button:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(240, 93, 94, 0.1);
}

/* Connect Features */
.connect-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: background 0.3s ease;
}

[data-theme="light"] .connect-features {
    background: rgba(0, 0, 0, 0.02);
}

.connect-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--accent);
}

.connect-feature svg {
    flex-shrink: 0;
}

.connect-feature.coming-soon {
    color: var(--muted);
}

/* Connect Form */
.connect-form {
    padding-bottom: 1rem;
}

.connect-form .form-group {
    margin-bottom: 1.25rem;
}

.connect-form .form-group:last-of-type {
    margin-bottom: 1.75rem;
}

.connect-form button[type="submit"] {
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

.connect-form label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.label-text {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.label-hint {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--muted);
}

.input-with-icon {
    position: relative;
}

.input-with-icon svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.input-with-icon input {
    padding-left: 2.75rem;
}

/* GitHub Status */
.github-status {
    margin-bottom: 1.5rem;
}

.github-connected {
    padding: 1rem;
    background: rgba(106, 139, 90, 0.1);
    border: 1px solid rgba(106, 139, 90, 0.3);
    border-radius: var(--radius-sm);
}

.github-status-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.github-status-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9rem;
}

.github-username {
    color: var(--muted);
    font-weight: 400;
}

.github-not-connected {
    padding: 1.25rem;
    background: rgba(248, 172, 48, 0.08);
    border: 1px solid rgba(248, 172, 48, 0.3);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.github-warning-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(248, 172, 48, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--warning);
    flex-shrink: 0;
}

.github-warning-content {
    flex: 1;
}

.github-warning-content strong {
    display: block;
    color: var(--warning);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.github-warning-content p {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0;
}

.github-not-connected .btn {
    flex-shrink: 0;
    align-self: center;
}

/* Button Variants */
.btn-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--muted);
    padding: 0.4rem 0.8rem;
}

.btn-ghost:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .btn-ghost:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Empty State */
.empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    flex: 1;
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(106, 139, 90, 0.1);
    border: 1px solid rgba(106, 139, 90, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0;
}

.empty-state p {
    color: var(--muted);
    max-width: 320px;
    line-height: 1.5;
}

.empty-state .btn {
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Chat Card - Full Height */
.chat-card {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    min-height: 0;
}

.chat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.chat-header-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.chat-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(106, 139, 90, 0.15);
    border: 1px solid rgba(106, 139, 90, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.chat-card-header h2 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.chat-card-header h2::after {
    display: none;
}

.selected-repo-label {
    font-size: 0.85rem;
    color: var(--muted);
}

.chat-header-hints {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hint-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--muted);
    transition: background 0.3s ease;
}

[data-theme="light"] .hint-tag {
    background: rgba(0, 0, 0, 0.03);
}

.chat-subtext {
    color: var(--muted);
    font-size: 0.9rem;
}

.cta-section {
    padding: 4rem 0;
    text-align: center;
}

.cta-mid {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease;
}

[data-theme="light"] .cta-mid {
    background: rgba(255, 255, 255, 0.5);
}

.cta-final {
    background: linear-gradient(135deg, rgba(106, 139, 90, 0.1) 0%, rgba(106, 139, 90, 0.05) 100%);
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

.cta-section h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
}

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.4);
    padding: 1.5rem 0 2rem;
    transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .site-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.6);
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0 1rem;
}

.footer-copy {
    color: var(--muted);
    margin-top: 0.25rem;
}

.footer-cta {
    text-align: right;
}

.footer-cta p {
    margin-bottom: 0.5rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
    position: relative;
    z-index: 1;
}

.App-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(24px);
    padding: 1.5rem 2rem;
    margin: 2.5rem auto 0;
    max-width: 1100px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 1;
}

.App-header::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-muted);
    border-radius: 16px;
    padding: 10px;
}

.app-logo {
    width: 68px;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--accent);
    padding: 4px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.3s ease;
}

[data-theme="light"] .app-logo {
    background: rgba(0, 0, 0, 0.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.app-logo:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 45px rgba(18, 162, 95, 0.35);
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.App-header h1 {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.App-header p {
    color: var(--muted);
    font-size: 0.95rem;
}

.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    margin-top: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.connect-card.card {
    overflow: visible !important;
    padding-bottom: 2.5rem !important;
    margin-bottom: 1rem;
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 40%);
    opacity: 0.25;
    pointer-events: none;
    transition: background 0.3s ease;
}

[data-theme="light"] .card::after {
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.02), transparent 40%);
}

.card h2 {
    font-size: 1.35rem;
    text-transform: none;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 1rem;
    position: relative;
}

.card h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: var(--accent);
    border-radius: 999px;
    margin-top: 0.75rem;
}

/* Repository Empty State */
.repo-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--muted);
}

.repo-empty-state svg {
    opacity: 0.4;
    margin-bottom: 1rem;
}

.repo-empty-state p {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.repo-empty-state span {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Repository Item */
.repo-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    background: var(--surface-solid);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
    position: relative;
    cursor: pointer;
    align-items: center;
}

.repo-item:hover {
    border-color: rgba(106, 139, 90, 0.3);
    background: rgba(106, 139, 90, 0.05);
}

.repo-item.active {
    border-color: rgba(106, 139, 90, 0.5);
    background: rgba(106, 139, 90, 0.1);
}

.repo-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--accent);
    border-radius: 0 2px 2px 0;
}

.repo-info {
    min-width: 0;
    overflow: hidden;
}

.repo-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.4;
    color: var(--text);
}

.repo-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.repo-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.repo-meta svg {
    opacity: 0.7;
}

.repo-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.btn-icon-danger {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(240, 93, 94, 0.08);
    border: 1px solid rgba(240, 93, 94, 0.2);
    border-radius: var(--radius-sm);
    color: var(--danger) !important;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.btn-icon-danger svg {
    width: 16px !important;
    height: 16px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: var(--danger) !important;
    stroke: var(--danger) !important;
    fill: none !important;
    pointer-events: none;
    flex-shrink: 0;
}

[data-theme="light"] .btn-icon-danger {
    background: rgba(240, 93, 94, 0.1);
    border-color: rgba(240, 93, 94, 0.25);
}

.repo-item:hover .btn-icon-danger {
    background: rgba(240, 93, 94, 0.15);
    border-color: rgba(240, 93, 94, 0.4);
    color: var(--danger);
}

[data-theme="light"] .repo-item:hover .btn-icon-danger {
    background: rgba(240, 93, 94, 0.15);
    border-color: rgba(240, 93, 94, 0.4);
}

.btn-icon-danger:hover {
    background: rgba(240, 93, 94, 0.2);
    border-color: rgba(240, 93, 94, 0.6);
    color: var(--danger);
    transform: scale(1.05);
}

.repo-status {
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
}

.status-indexed {
    background: rgba(106, 139, 90, 0.15);
    color: var(--success);
    border-color: rgba(106, 139, 90, 0.3);
}

.status-indexing {
    background: rgba(248, 172, 48, 0.12);
    color: var(--warning);
    border-color: rgba(248, 172, 48, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.status-cloning {
    background: rgba(100, 149, 237, 0.12);
    color: #6495ed;
    border-color: rgba(100, 149, 237, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.status-not_indexed {
    background: rgba(240, 93, 94, 0.12);
    color: var(--danger);
    border-color: rgba(240, 93, 94, 0.3);
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface-solid);
    color: var(--text);
    transition: border 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    font-size: 0.95rem;
}

.form-group input:focus {
    outline: none;
    border-color: rgba(30, 199, 120, 0.6);
    box-shadow: 0 0 0 3px rgba(30, 199, 120, 0.2);
    background: rgba(23, 28, 34, 0.9);
}

[data-theme="light"] .form-group input:focus {
    border-color: rgba(106, 139, 90, 0.6);
    box-shadow: 0 0 0 3px rgba(106, 139, 90, 0.2);
    background: rgba(255, 255, 255, 0.95);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

[data-theme="light"] .form-group input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--muted);
}

.btn {
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: #051407;
    box-shadow: none;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
}

.btn-secondary:hover {
    border-color: rgba(30, 199, 120, 0.5);
}

[data-theme="light"] .btn-secondary:hover {
    border-color: rgba(106, 139, 90, 0.5);
}


.btn-danger {
    background: rgba(240, 93, 94, 0.15);
    color: var(--danger);
    border: 1px solid rgba(240, 93, 94, 0.4);
    box-shadow: none;
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-1px);
    background: rgba(240, 93, 94, 0.22);
    border-color: rgba(240, 93, 94, 0.6);
}

.chat-container {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    overflow: hidden;
    min-height: 0;
    height: 0;
}

.chat-messages {
    flex: 1 1 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: 0;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.chat-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    color: var(--muted);
}

.welcome-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(106, 139, 90, 0.1);
    border: 1px solid rgba(106, 139, 90, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 1rem;
}

.chat-welcome h4 {
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.chat-welcome p {
    font-size: 0.9rem;
    max-width: 320px;
    line-height: 1.5;
}

.message {
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    max-width: 85%;
    border: 1px solid transparent;
    animation: messageIn 0.2s ease;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    margin-left: auto;
    background: linear-gradient(135deg, rgba(106, 139, 90, 0.2) 0%, rgba(106, 139, 90, 0.1) 100%);
    color: var(--text);
    border-color: rgba(106, 139, 90, 0.3);
}

.message.assistant {
    background: var(--surface-solid);
    border-color: var(--border);
}

.message-loading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.message-content {
    line-height: 1.6;
}

.message-error {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(240, 93, 94, 0.08);
    border-color: rgba(240, 93, 94, 0.2);
}

.error-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(240, 93, 94, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger);
}

.error-content strong {
    display: block;
    color: var(--danger);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.error-content p {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0;
    word-break: break-word;
}

.message pre {
    background: var(--bg);
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-top: 0.75rem;
    font-size: 0.85rem;
    overflow-x: auto;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    transition: background 0.3s ease;
}

[data-theme="light"] .message pre {
    background: var(--bg-alt);
}

/* Process diagram styles */
.message-diagram {
    margin-top: 1.25rem;
    padding: 1rem;
    background: rgba(106, 139, 90, 0.08);
    border: 1px solid rgba(106, 139, 90, 0.25);
    border-radius: var(--radius-md);
}

.diagram-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(106, 139, 90, 0.2);
}

.message-diagram .mermaid,
.message-diagram .mermaid-container {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font-size: 1rem;
    display: flex;
    justify-content: center;
}

.message-diagram .mermaid svg,
.message-diagram .mermaid-container svg {
    max-width: 100%;
    height: auto;
}

.diagram-loading {
    color: var(--muted);
    font-size: 0.9rem;
    padding: 1.5rem;
}

.diagram-error {
    color: var(--muted);
    font-size: 0.9rem;
    font-style: italic;
    padding: 1rem;
    text-align: center;
}

.code-references {
    background: var(--bg);
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-top: 0.75rem;
    font-size: 0.85rem;
    overflow-x: auto;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    transition: background 0.3s ease;
}

[data-theme="light"] .code-references {
    background: var(--bg-alt);
}

.chat-input-container {
    padding: 1rem 0 1rem;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
    flex-shrink: 0;
}

.chat-input {
    display: flex;
    gap: 0.75rem;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: rgba(106, 139, 90, 0.5);
    box-shadow: 0 0 0 3px rgba(106, 139, 90, 0.1);
}

.chat-input input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 0.95rem;
    min-width: 0;
    width: 100%;
}

.chat-input input:focus {
    outline: none;
}

.chat-input input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

[data-theme="light"] .chat-input input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.chat-send-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    min-width: auto;
}

.chat-send-btn span {
    display: none;
}

@media (min-width: 600px) {
    .chat-send-btn span {
        display: inline;
    }
}

.chat-disclaimer {
    font-size: 0.75rem;
    color: var(--muted);
    text-align: center;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    padding: 0 0.5rem;
    opacity: 0.7;
}

.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transition: border-color 0.3s ease;
}

[data-theme="light"] .loading {
    border: 3px solid rgba(0, 0, 0, 0.1);
}

.hidden {
    display: none !important;
}

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

::selection {
    background: rgba(30, 199, 120, 0.3);
    color: var(--text);
}

[data-theme="light"] ::selection {
    background: rgba(106, 139, 90, 0.3);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    transition: background 0.3s ease;
}

[data-theme="light"] ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.04);
}

::-webkit-scrollbar-thumb {
    background: rgba(30, 199, 120, 0.45);
    border-radius: 999px;
    transition: background 0.3s ease;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: rgba(106, 139, 90, 0.45);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(30, 199, 120, 0.65);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(106, 139, 90, 0.65);
}

@media (max-width: 768px) {
    .site-header {
        position: static;
    }

    .site-header .shell,
    .site-header > .shell {
        flex-direction: column;
        padding: 0.8rem 1rem;
    }

    .primary-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero {
        padding: 3.5rem 0 4rem;
    }

    .section {
        padding: 4rem 0;
    }

    .product-showcase {
        padding: 4rem 0;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .feature-grid-asymmetric {
        grid-template-columns: 1fr;
    }

    .feature-subgrid {
        grid-template-columns: 1fr;
    }

    .workflow-step {
        padding-left: 3.5rem;
    }

    .cta-section {
        padding: 3.5rem 0;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .product-main {
        height: auto;
        min-height: calc(100vh - 120px);
    }

    .product-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .repo-panel {
        height: auto;
        max-height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .main-panel {
        padding: 1rem;
        min-height: 400px;
    }

    .panel {
        padding: 1rem;
    }

    .open-connect-btn {
        width: 100%;
    }

    .footer-grid {
        flex-direction: column;
        text-align: center;
        padding: 0;
    }

    .footer-cta {
        text-align: center;
    }

    .card {
        padding: 1.5rem;
    }

    .repo-item {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .message {
        max-width: 100%;
    }

    .chat-input {
        flex-direction: row;
    }

    .chat-card-header {
        flex-direction: column;
        gap: 1rem;
    }

    .chat-header-hints {
        display: none;
    }

    .connect-card-header {
        flex-direction: column;
    }

    .connect-card-title-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .connect-features {
        flex-direction: column;
        gap: 0.5rem;
    }

    .github-not-connected {
        flex-direction: column;
        text-align: center;
    }

    .github-warning-icon {
        align-self: center;
    }

    .github-not-connected .btn {
        align-self: stretch;
    }

    .empty-state {
        padding: 2rem 1.5rem;
    }

    .empty-state-icon {
        width: 64px;
        height: 64px;
    }
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .workflow-grid {
        grid-template-columns: 1fr;
    }

    .site-header .shell,
    .site-header > .shell {
        flex-wrap: wrap;
    }

    .product-layout {
        grid-template-columns: 240px 1fr;
    }
}

/* Auth Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
    transition: background 0.3s ease;
}

[data-theme="light"] .modal {
    background: rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-soft);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.auth-tab {
    background: none;
    border: none;
    color: var(--muted);
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    margin-bottom: -1px;
}

.auth-tab:hover {
    color: var(--text);
}

.auth-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.auth-form h2 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
}

.auth-form input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 15px;
    transition: all 0.2s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg);
}

.auth-form small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.error-message {
    background: rgba(240, 93, 94, 0.1);
    border: 1px solid rgba(240, 93, 94, 0.3);
    color: var(--danger);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
}

.success-message {
    background: rgba(30, 199, 120, 0.1);
    border: 1px solid rgba(30, 199, 120, 0.3);
    color: var(--success);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
}

.admin-form {
    margin-top: 20px;
}

.admin-form .form-group {
    margin-bottom: 1.2rem;
}

.admin-form input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

/* Auth divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--muted);
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.auth-divider span {
    padding: 0 16px;
}

/* Google Sign-In button container */
.google-signin-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 8px;
}

/* Override Google button styles to match our theme */
.google-signin-container > div {
    width: 100% !important;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-user span {
    color: var(--muted);
    font-size: 14px;
}

.header-user button {
    padding: 8px 16px;
    font-size: 14px;
}

.header-auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Remove underlines from button links */
.btn, a.btn {
    text-decoration: none;
}

.btn:hover, a.btn:hover {
    text-decoration: none;
}

/* Theme Toggle Button */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
    flex-shrink: 0;
}

[data-theme="light"] .theme-toggle {
    background: rgba(0, 0, 0, 0.03);
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(106, 139, 90, 0.1);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: none;
}
