@font-face {
    font-family: 'Athletics';
    src: url('fonts/Athletics-Light.woff2') format('woff2'),
         url('fonts/Athletics-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Athletics';
    src: url('fonts/Athletics-Medium.woff2') format('woff2'),
         url('fonts/Athletics-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Athletics';
    src: url('fonts/Athletics-Black.woff2') format('woff2'),
         url('fonts/Athletics-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --brand: #2337ba;
    /* --brand split into channels, so the translucent tints below stay in sync with it. */
    --brand-rgb: 35, 55, 186;
    --brand-light: rgba(var(--brand-rgb), 0.08);
    --brand-hover: #1b2b94;
}

body {
    font-family: Athletics, Arial, sans-serif;
    background: #fff;
    color: #000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 2rem 1rem;
}

h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--brand);
}

h2 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--brand);
}

.card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(var(--brand-rgb), 0.15);
}

.card.success {
    border-left: 4px solid var(--brand);
    background: var(--brand-light);
}

.card.declined {
    border-left: 4px solid #f59e0b;
}

.card.error {
    border-left: 4px solid #ef4444;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #000;
}

label:first-child {
    margin-top: 0;
}

input[type="text"],
input[type="password"],
select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid rgba(var(--brand-rgb), 0.25);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: Athletics, Arial, sans-serif;
    background: #fff;
    color: #000;
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(var(--brand-rgb), 0.15);
}

button {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.6rem 1.5rem;
    background: #ffd700;
    color: var(--brand);
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: Athletics, Arial, sans-serif;
    cursor: pointer;
    font-weight: 600;
}

button:hover {
    background: #e6c200;
}

.url-field {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.url-field input {
    flex: 1;
    font-family: monospace;
    font-size: 0.82rem;
    background: var(--brand-light);
}

.url-field button {
    margin-top: 0;
    padding: 0.6rem 1rem;
    white-space: nowrap;
    font-size: 0.85rem;
}

.error-text {
    color: #ef4444;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

p {
    line-height: 1.6;
    margin-top: 0.5rem;
    color: #000;
}

input[type="file"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px dashed rgba(var(--brand-rgb), 0.35);
    border-radius: 6px;
    background: #fff;
    font-family: Athletics, Arial, sans-serif;
    font-size: 0.9rem;
}

.nav-link {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.nav-link a {
    color: var(--brand);
    text-decoration: none;
}

.nav-link a:hover {
    text-decoration: underline;
}

ul.report {
    list-style: none;
    margin-top: 0.75rem;
}

ul.report li {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(var(--brand-rgb), 0.1);
    font-size: 0.95rem;
}

ul.report li:last-child {
    border-bottom: none;
}

ul.report.errors li {
    font-size: 0.85rem;
    word-break: break-all;
}

ul.report code {
    font-family: monospace;
    background: var(--brand-light);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
}

.choose-plusone {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.5rem;
    font-weight: 500;
    cursor: pointer;
}

.choose-plusone input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--brand);
    cursor: pointer;
    flex-shrink: 0;
}

.choose-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.choose-btn {
    display: block;
    width: 100%;
    margin-top: 0;
    padding: 0.85rem 1rem;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    background: #ffd700;
    color: var(--brand);
    border: 1px solid #ffd700;
    cursor: pointer;
    font-family: Athletics, Arial, sans-serif;
}

.choose-btn:hover {
    background: #e6c200;
    border-color: #e6c200;
}

.choose-cancel {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9rem;
}

.choose-cancel a {
    color: #6b7280;
    text-decoration: underline;
}

.choose-cancel a:hover {
    color: #000;
}

.url-list-name {
    font-weight: 400;
    color: #6b7280;
}
