/* Grundlayout */
:root {
    --bg: #ffffff;
    --bg-elevated: #f8f9fa;
    --bg-elevated-soft: #f3f4f6;
    --accent: #1a1a1a;
    --accent-soft: rgba(0, 0, 0, 0.05);
    --accent-strong: #000000;
    --text-main: #1a1a1a;
    --text-muted: #6b7280;
    --border-subtle: #e5e7eb;
    --error: #dc2626;
    --success: #16a34a;
    --radius-lg: 16px;
    --radius-md: 10px;
    --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.05);
}

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

html, body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

.app-root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 10;
}

.app-header-inner {
    max-width: 920px;
    margin: 0 auto;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
    box-shadow: var(--shadow-subtle);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.brand-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.app-main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px 52px;
}

.card {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    background: var(--bg);
    border-radius: 16px;
    padding: 32px 28px 28px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
    .card {
        padding: 40px 40px 36px;
    }
}

.card h1 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    letter-spacing: 0.01em;
    font-weight: 600;
}

.intro {
    margin: 0 0 24px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.alert {
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.alert-error {
    border-color: var(--error);
    background: rgba(220, 38, 38, 0.08);
    color: #991b1b;
}

.alert-success {
    border-color: var(--success);
    background: rgba(22, 163, 74, 0.08);
    color: #166534;
}

.form {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

label {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-main);
}

input[type="email"],
select,
textarea,
input[type="file"] {
    width: 100%;
    padding: 11px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: var(--bg);
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="email"]::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

input[type="email"]:focus,
select:focus,
textarea:focus,
input[type="file"]:focus {
    border-color: var(--accent);
    border-width: 2px;
    padding: 10px 11px;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.file-input-wrapper {
    border-radius: 8px;
    padding: 24px 16px;
    background: var(--bg-elevated-soft);
    border: 2px dashed var(--border-subtle);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-input-wrapper:hover {
    border-color: var(--accent);
    background: var(--bg-elevated);
}

.file-input-wrapper.drag-over {
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: scale(1.01);
}

.drop-zone-content {
    pointer-events: none;
}

.drop-zone-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    color: var(--text-muted);
}

.drop-zone-text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-main);
}

.drop-zone-text strong {
    font-weight: 600;
}

.file-browse-link {
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
}

.file-browse-link:hover {
    color: var(--accent-strong);
}

.file-input-wrapper input[type="file"] {
    display: none;
}

.help-text {
    margin: 6px 0 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.file-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    font-size: 0.85rem;
    color: var(--text-main);
}

.file-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--bg-elevated-soft);
}

.file-list li:last-child {
    border-bottom: none;
}

.file-list-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 240px;
}

.file-list-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.file-list-error {
    color: var(--error);
}

.file-list-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.btn-secondary {
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 6px 12px;
    background: var(--bg);
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--accent);
}

.btn-secondary svg {
    width: 16px;
    height: 16px;
}

.file-list-remove {
    background: none;
    border: none;
    color: var(--error);
    cursor: pointer;
    padding: 2px 6px;
    margin-left: 8px;
    font-size: 1.1rem;
    line-height: 1;
    transition: opacity 0.15s ease;
}

.file-list-remove:hover {
    opacity: 0.7;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.btn-primary {
    border: none;
    border-radius: 999px;
    padding: 11px 24px;
    background: var(--accent);
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-subtle);
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary::after {
    content: "➜";
    font-size: 0.86rem;
}

.btn-primary:hover {
    background: #2a2a2a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    background: var(--accent);
    box-shadow: var(--shadow-subtle);
}

.app-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 12px 20px 16px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-elevated);
}

