:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --accent: #34a853;
    --dark: #202a44;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #333;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

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

.hero-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    color: white;
    padding: 5rem 0;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
}

.feature-card {
    border: none;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.material-card {
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.2s;
}

.material-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 12px rgba(26, 115, 232, 0.15);
}

.pricing-card {
    border-radius: 16px;
    border: 2px solid #e9ecef;
    transition: all 0.3s;
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(26, 115, 232, 0.2);
    transform: scale(1.03);
}

.pricing-card:hover {
    border-color: var(--primary);
}

.outline-section {
    background: white;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.progress-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.progress-item.pending { background-color: #f8f9fa; }
.progress-item.generating { background-color: #fff3cd; }
.progress-item.ready { background-color: #d4edda; }
.progress-item.failed { background-color: #f8d7da; }

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

.cost-bar {
    height: 24px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.gallery-item .attribution {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-block;
}

.htmx-request.htmx-indicator {
    display: inline-block;
}

/* KaTeX math styling */
.katex-display {
    margin: 0.75em 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.25em 0;
}

.katex {
    font-size: 1.1em;
}

.outline-section .katex {
    font-size: 1.05em;
}
