:root {
    --accent: #007aff;
    --border-color: #d0d4da;
    --bg-elevated: #f5f5f7;
    --text-main: #111827;
    --text-muted: #6b7280;
    --radius-pill: 999px;
    --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th,
td {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid #e2e3e5;
    text-align: left;
    font-size: 0.9rem;
}

th {
    background: #f0f1f3;
    font-weight: 600;
}

/* Buttons */
.button-primary,
.button-ghost {
    padding: 1rem 1.4rem;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    background: none;
}

.button-small {
    padding: 0.5rem 0.4rem;
    font-size: 0.8rem;
}

.button-primary {
    background: #111111;
    color: #f5f5f7;
}

.button-primary:hover {
    background: #000000;
}

.button-ghost {
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.85);
}

.button-ghost:hover {
    background: #ffffff;
}


.file-upload {
    width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 22px;
    background: var(--bg-elevated);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(16px);
}

.file-upload-label {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Base input */
.file-input {
    font: inherit;
    color: var(--text-main);
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    padding: 6px 10px;
    background: white;
    cursor: pointer;
    transition:
        border-color 120ms ease-out,
        box-shadow 120ms ease-out,
        background-color 120ms ease-out;
}

.file-input:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.3);
}

/* Modern button styling (the “Choose file” part) */
.file-input::file-selector-button {
    font: inherit;
    border: none;
    margin: -6px 10px -6px -10px;
    /* cancel input padding so the pill looks continuous */
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: linear-gradient(180deg, #ffffff, #f3f4f6);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9),
        0 0 0 0.5px rgba(15, 23, 42, 0.08);
    color: var(--accent);
    font-weight: 500;
    cursor: pointer;
    transition:
        background-color 120ms ease-out,
        box-shadow 120ms ease-out,
        transform 80ms ease-out;
}

.file-input::file-selector-button:hover {
    background: linear-gradient(180deg, #f9fafb, #e5e7eb);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.file-input::file-selector-button:active {
    transform: translateY(1px);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.1);
    background: #e5e7eb;
}

/* Text (selected file name) */
.file-input::-ms-value,
.file-input::file-selector-text {
    color: var(--text-main);
}

/* Optional subtle helper text */
.file-helper {
    font-size: 0.78rem;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .file-upload {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Card */
.card {
    margin-top: 2.5rem;
    border-radius: 22px;
    padding: 1.75rem 1.5rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    font-size: 0.92rem;
    color: #424245;
}