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

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: #f4f5f7;
    color: #1c1c1c;
    line-height: 1.5;
    padding: 24px;
}

.container {
    max-width: 960px;
    margin: 0 auto;
}

header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2b5a8e 100%);
    color: white;
    padding: 24px 32px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

header h1 { font-size: 22px; margin-bottom: 4px; }
header p { opacity: 0.9; font-size: 14px; }

section {
    background: white;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

section h2 {
    font-size: 16px;
    color: #1e3a5f;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8ebf0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #3a3a3a;
    margin-bottom: 4px;
}

input[type="text"], input[type="number"], textarea, select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccd0d6;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    transition: border-color 0.15s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #2b5a8e;
    box-shadow: 0 0 0 2px rgba(43,90,142,0.15);
}

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

.field { margin-bottom: 12px; }

.upload-zone {
    border: 2px dashed #ccd0d6;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    background: #fafbfc;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: #2b5a8e;
    background: #f0f5fb;
}

.upload-zone p { color: #6a6a6a; font-size: 14px; }
.upload-zone input[type="file"] { display: none; }

.file-list {
    margin-top: 12px;
    font-size: 13px;
    color: #4a4a4a;
}

.file-list li {
    padding: 4px 8px;
    background: #f0f2f5;
    border-radius: 4px;
    margin-bottom: 4px;
    list-style: none;
    display: flex;
    justify-content: space-between;
}

button {
    background: #2b5a8e;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

button:hover:not(:disabled) { background: #1e3a5f; }
button:disabled { background: #a0a8b4; cursor: not-allowed; }

.btn-secondary { background: #6a7380; }
.btn-secondary:hover:not(:disabled) { background: #4a5260; }

.btn-row {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
}

.radio-group { display: flex; gap: 16px; flex-wrap: wrap; }
.radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: normal;
}
.radio-group input[type="radio"] { margin: 0; }

.hidden { display: none !important; }

.status {
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 12px;
    font-size: 14px;
}
.status.info { background: #e3f2fd; color: #1565c0; }
.status.success { background: #e8f5e9; color: #2e7d32; }
.status.error { background: #ffebee; color: #c62828; }

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #ffffff50;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

.result-links { margin-top: 12px; }
.result-links a {
    display: inline-block;
    padding: 8px 16px;
    background: #2e7d32;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    margin-right: 8px;
}
.result-links a:hover { background: #1b5e20; }
