:root {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    color: #222;
    background: #f5f6f8;

    --border-color: #d9dce1;
    --card-background: #ffffff;
    --primary-color: #2457a6;
    --primary-hover: #1d4788;
    --success-color: #247a42;
    --error-color: #a52828;
    --muted-color: #6b7280;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #f5f6f8;
}


/* Header */

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 24px 32px;

    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.app-header h1 {
    margin: 0 0 4px 0;
    font-size: 26px;
}

.app-header p {
    margin: 0;
    color: var(--muted-color);
}

.version {
    color: var(--muted-color);
    font-size: 14px;
}


/* Hauptbereich */

.container {
    width: min(1000px, calc(100% - 32px));
    margin: 32px auto;
}

.card {
    margin-bottom: 24px;
    padding: 24px;

    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 10px;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.card h2 {
    margin-top: 0;
    margin-bottom: 24px;
}


/* Dateiauswahl */

.file-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 24px;

    padding: 20px 0;

    border-bottom: 1px solid #e5e7eb;
}

.file-row:last-of-type {
    border-bottom: none;
}

.file-info {
    flex: 1;
}

.file-info h3 {
    margin: 0 0 6px 0;
    font-size: 17px;
}

.status {
    margin: 0;
    color: var(--muted-color);
    font-size: 14px;
}

.status.success {
    color: var(--success-color);
}

.status.error {
    color: var(--error-color);
}

.file-controls {
    display: flex;
    align-items: end;
    gap: 12px;
}

.delimiter-label {
    display: flex;
    flex-direction: column;
    gap: 6px;

    font-size: 13px;
    color: #555;
}

select {
    min-width: 130px;
    padding: 9px;

    border: 1px solid #cfd3d8;
    border-radius: 6px;

    background: #fff;
    font-size: 14px;
}


/* Datei-Button */

.file-button {
    display: inline-block;

    padding: 10px 16px;

    border: 1px solid #c5cad1;
    border-radius: 6px;

    background: #fff;

    cursor: pointer;
    font-size: 14px;
}

.file-button:hover {
    background: #f2f3f5;
}

.file-button input {
    display: none;
}


/* Buttons */

.actions {
    margin-top: 24px;
}

button {
    border: none;
    border-radius: 6px;

    padding: 11px 18px;

    font-size: 14px;
    cursor: pointer;
}

.primary-button {
    color: white;
    background: var(--primary-color);
}

.primary-button:hover {
    background: var(--primary-hover);
}

.secondary-button {
    background: #e5e7eb;
    color: #777;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}


/* Status */

.application-status {
    padding: 14px;

    border-radius: 6px;

    background: #f1f3f5;

    color: #555;
}

.validation-list {
    margin-top: 16px;
}

.validation-item {
    padding: 10px 14px;
    margin-bottom: 8px;

    border-radius: 5px;

    background: #f5f5f5;
}

.validation-item.success {
    border-left: 4px solid var(--success-color);
}

.validation-item.error {
    border-left: 4px solid var(--error-color);
}


/* Export */

.export-buttons {
    display: flex;
    gap: 12px;
}


/* Footer */

footer {
    padding: 24px;

    text-align: center;

    color: var(--muted-color);
    font-size: 13px;
}


/* Responsive */

@media (max-width: 700px) {

    .app-header {
        padding: 20px;
    }

    .container {
        width: calc(100% - 20px);
        margin: 20px auto;
    }

    .card {
        padding: 18px;
    }

    .file-row {
        align-items: stretch;
        flex-direction: column;
    }

    .file-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .delimiter-label,
    select {
        width: 100%;
    }

    .file-button {
        text-align: center;
    }
}