:root {
    --bg: #1a1a2e;
    --surface: #16213e;
    --accent: #0f3460;
    --primary: #e94560;
    --text: #eee;
    --text-muted: #aaa;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

.container {
    max-width: 520px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

header {
    text-align: center;
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

.install-card,
.info-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.install-card h2 {
    margin-bottom: 0.5rem;
}

#version-info {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

#version-info.error {
    color: var(--primary);
}

.firmware-select-wrapper {
    text-align: left;
    margin: 0.75rem 0 1rem;
}

.firmware-select-wrapper label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.firmware-select-wrapper select {
    width: 100%;
    background: var(--accent);
    color: var(--text);
    border: 1px solid #2a466b;
    border-radius: 8px;
    padding: 0.55rem 0.65rem;
    font-size: 0.9rem;
}

.experimental-note {
    margin-top: 0.55rem;
    font-size: 0.8rem;
    color: #ffb3bf;
}

.board-preview {
    margin-top: 0.9rem;
    border: 1px solid #2a466b;
    border-radius: 10px;
    padding: 0.75rem;
    background: #13233f;
}

.board-preview-title {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-align: left;
}

.board-preview-image {
    display: block;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    border-radius: 8px;
    border: 1px solid #2a466b;
    background: #0f1a2f;
}

.board-preview-caption {
    margin-top: 0.55rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: left;
}

.install-button-wrapper {
    margin: 1.25rem 0;
}

.hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.info-card {
    text-align: left;
}

.info-card h3 {
    margin-bottom: 0.75rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    padding: 0.35rem 0;
    padding-left: 1.2rem;
    position: relative;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
}

footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

footer a:hover {
    color: var(--text);
}

esp-web-install-button {
    --esp-tools-button-color: var(--primary);
    --esp-tools-button-text-color: #fff;
}
