body {
    margin: 0;
    padding: 40px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    line-height: 1.6;
    color: #e5e7eb;
    background:
        radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.18), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.25), transparent 55%),
        radial-gradient(circle at 0% 100%, rgba(244, 114, 182, 0.18), transparent 55%),
        #020617;
    min-height: 100vh;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 24px 40px;
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9))
            padding-box,
        linear-gradient(135deg, rgba(56, 189, 248, 0.85), rgba(129, 140, 248, 0.6), rgba(236, 72, 153, 0.7))
            border-box;
    border: 1.5px solid transparent;
    box-shadow:
        0 18px 60px rgba(15, 23, 42, 0.7),
        0 0 0 1px rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(18px) saturate(150%);
}

h1 {
    margin-top: 0;
    margin-bottom: 8px;
    text-align: center;
    font-size: clamp(2rem, 3vw, 2.6rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #e5e7eb;
    text-shadow: 0 0 28px rgba(59, 130, 246, 0.6);
}

h2 {
    margin-top: 32px;
    margin-bottom: 12px;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #c4d3ff;
}

p {
    margin-top: 0;
    margin-bottom: 12px;
    color: #9ca3af;
}

strong {
    color: #e5e7eb;
}

/* Center the introductory paragraphs at the top of the page */
.container > p {
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Center the standalone notice line */
.container > strong {
    display: block;
    text-align: center;
    max-width: 720px;
    margin: 8px auto 16px;
}

form {
    margin: 28px auto 0;
    max-width: 540px;
    padding: 24px 24px 28px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.86))
        padding-box;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.85),
        0 0 0 1px rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px) saturate(160%);
}

label {
    display: block;
    margin-top: 16px;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
}

input,
select {
    width: 100%;
    padding: 10px 12px;
    margin-top: 4px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.8);
    color: #e5e7eb;
    font-size: 0.95rem;
    outline: none;
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.08s ease;
}

input::placeholder {
    color: #6b7280;
}

input:focus,
select:focus {
    border-color: #38bdf8;
    box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.7),
        0 0 0 8px rgba(56, 189, 248, 0.15);
    background: rgba(15, 23, 42, 0.98);
    transform: translateY(-1px);
}

select {
    cursor: pointer;
}

button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    width: 100%;
    padding: 11px 14px;
    border: none;
    border-radius: 999px;
    background: radial-gradient(circle at 0% 0%, #38bdf8, #4f46e5);
    color: #f9fafb;
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 18px 40px rgba(59, 130, 246, 0.6),
        0 0 0 1px rgba(15, 23, 42, 0.9);
    transition:
        transform 0.08s ease-out,
        box-shadow 0.1s ease-out,
        filter 0.12s ease-out;
}

button::before {
    content: "";
    position: absolute;
    inset: -30%;
    background:
        radial-gradient(circle at 0% 0%, rgba(248, 250, 252, 0.32), transparent 50%);
    opacity: 0;
    transform: translateX(-40%);
    transition:
        opacity 0.16s ease-out,
        transform 0.35s ease-out;
}

button:hover {
    transform: translateY(-1px) scale(1.01);
    filter: brightness(1.08);
    box-shadow:
        0 22px 55px rgba(59, 130, 246, 0.8),
        0 0 0 1px rgba(15, 23, 42, 0.9);
}

button:hover::before {
    opacity: 1;
    transform: translateX(0);
}

button:active {
    transform: translateY(1px) scale(0.99);
    box-shadow:
        0 10px 26px rgba(59, 130, 246, 0.7),
        0 0 0 1px rgba(15, 23, 42, 0.9);
}

#successMessage {
    display: none;
    margin-top: 18px;
    text-align: center;
    font-weight: 500;
    color: #4ade80;
    text-shadow: 0 0 12px rgba(74, 222, 128, 0.5);
}

/* Dashboard-specific styling */

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin: 20px 0 10px;
}

.stats p {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: #e5e7eb;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats span {
    font-weight: 600;
    color: #38bdf8;
}

canvas {
    margin-top: 12px;
    border-radius: 16px;
    padding: 12px;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(148, 163, 184, 0.4);
}

/* Mobile responsiveness */

@media (max-width: 768px) {
    body {
        padding: 18px;
    }

    .container {
        padding: 18px 16px 26px;
        border-radius: 18px;
    }

    form {
        padding: 18px 16px 22px;
        border-radius: 16px;
    }

    h1 {
        font-size: 1.7rem;
    }

    h2 {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 14px;
    }

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

    canvas {
        width: 100% !important;
        height: auto !important;
    }
}