/* Shared styles for the UniUI pages (based on the Music 7 pages), with UniUI's neon violet accent. */
:root {
    --primary-color: #7c3aed;
    --primary-dark: #4c1d95;
    --text-dark: #1f2937;
    --text-light: #4b5563;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #c4b5fd;
        --primary-dark: #a78bfa;
        --text-dark: #e5e7eb;
        --text-light: #9ca3af;
        --bg-light: #0f172a;
        --bg-white: #111827;
        --border: #1f2937;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.65;
    color: var(--text-dark);
    background: var(--bg-light);
}

header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    padding: 2.5rem 1rem 2rem;
    text-align: center;
}

header h1 { margin: 0 0 0.25rem; font-size: 1.9rem; }
header p { margin: 0; opacity: 0.9; }

nav.tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

nav.tabs a {
    color: #fff;
    text-decoration: none;
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    font-size: 0.95rem;
}

nav.tabs a[aria-current="page"] { background: rgba(255, 255, 255, 0.2); }

main {
    max-width: 820px;
    margin: -1rem auto 3rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 2rem clamp(1rem, 4vw, 2.5rem);
}

h2 {
    margin-top: 2rem;
    font-size: 1.3rem;
    color: var(--primary-color);
}

h3 { margin-top: 1.4rem; font-size: 1.05rem; }

p, li { color: var(--text-dark); }
.muted { color: var(--text-light); }

a { color: var(--primary-color); }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.95rem;
}

th, td {
    text-align: left;
    vertical-align: top;
    padding: 0.6rem;
    border-bottom: 1px solid var(--border);
}

th { color: var(--text-light); font-weight: 600; }

.table-wrap { overflow-x: auto; }

footer {
    text-align: center;
    padding: 0 1rem 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* UniUI headers use the logo's night sky in both light and dark mode, so white text always reads. */
header {
    background:
        radial-gradient(circle at 12% 80%, rgba(236, 72, 153, 0.30), transparent 45%),
        radial-gradient(circle at 88% 20%, rgba(34, 211, 238, 0.28), transparent 45%),
        linear-gradient(180deg, #010518, #120a35);
}

header p { color: #e0e7ff; opacity: 1; }
