* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: #f1f1f1;
    color: #333;
}

/* Layout / Branding */

.page-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 16px 80px;
}
.page-header {
    text-align: center;
    margin-bottom: 40px;
}
.brand {
    font-size: 56px;
    font-weight: 300;
    letter-spacing: 2px;
}
.brand-icon {
    font-size: 44px;
    vertical-align: middle;
    margin: 0 4px;
}
.subtitle {
    margin-top: 8px;
    font-size: 18px;
    color: #666;
}
.subsubtitle {
    font-size: 14px;
    color: #888;
}

/* Card */

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.16);
    padding: 40px 32px;
}
.center {
    text-align: center;
}

/* Drop-Zone / Upload */

.drop-zone {
    border-radius: 8px;
    border: 2px dashed #bbb;
    background: #fafafa;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease,
    box-shadow 0.2s ease;
}
.drop-zone.drag-over {
    border-color: #3f51b5;
    background: #eef1ff;
    box-shadow: 0 0 0 3px rgba(63,81,181,0.2);
}
.drop-icon {
    font-size: 60px;
    color: #777;
    margin-bottom: 16px;
}
.drop-title {
    font-size: 22px;
    font-weight: 500;
    color: #555;
    margin-bottom: 4px;
}
.drop-subtitle {
    font-size: 14px;
    color: #777;
}
.drop-subtitle a {
    color: #3f51b5;
    text-decoration: underline;
    cursor: pointer;
}
.drop-hint {
    font-size: 12px;
    color: #aaa;
    margin-top: 12px;
}

.file-info {
    margin-top: 16px;
    font-size: 14px;
    color: #555;
}

/* Buttons */

.actions {
    margin-top: 24px;
    text-align: right;
}
.btn {
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: #3f51b5;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn:disabled {
    background: #b0b0b0;
    cursor: default;
    box-shadow: none;
}

/* Progress */

.progress-wrapper {
    margin-top: 24px;
}
.progress-label {
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
}
.progress-bar-bg {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    width: 0;
    background: #3f51b5;
    transition: width 0.1s linear;
}
.progress-percent {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
    text-align: right;
}

.status-text {
    margin-top: 12px;
    font-size: 14px;
    color: #555;
}

.error-box {
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 4px;
    background: #ffebee;
    color: #c62828;
    font-size: 13px;
}

.hidden {
    display: none;
}

/* Job-Status-Seite */

.job-id {
    font-size: 14px;
    color: #777;
    margin-bottom: 8px;
}
.spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #ddd;
    border-top-color: #3f51b5;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.links {
    margin-top: 24px;
}
.btn-link {
    display: inline-block;
    margin: 0 4px;
    font-size: 13px;
    color: #3f51b5;
    text-decoration: none;
}
.btn-link:hover {
    text-decoration: underline;
}
.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    background: #3f51b5;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.primary-btn:hover {
    box-shadow: 0 3px 6px rgba(0,0,0,0.25);
}

@media (max-width: 600px) {
    .brand {
        font-size: 40px;
    }
    .card {
        padding: 24px 16px;
    }
}
