:root {
    --primary-color: #d97706;
    --primary-hover: #b45309;
    --secondary-color: #64748b;
    --background: #fafaf9;
    --surface: #ffffff;
    --border: #e7e5e4;
    --text-primary: #1c1917;
    --text-secondary: #57534e;
    --success: #16a34a;
    --error: #dc2626;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    padding: 20px;
}

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

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px 20px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.version {
    font-size: 0.875rem;
    color: var(--secondary-color);
    font-family: 'Courier New', monospace;
}

.info-banner {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 2px solid #fed7aa;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 30px;
    text-align: center;
}

.info-banner p {
    color: var(--text-primary);
    margin: 0;
}

.drop-zone {
    background: var(--surface);
    border: 3px dashed var(--border);
    border-radius: 16px;
    padding: 60px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drop-zone:hover {
    border-color: var(--primary-color);
    background: #fffbeb;
}

.drop-zone.dragover {
    border-color: var(--primary-color);
    background: #fffbeb;
    transform: scale(1.02);
}

.drop-content svg {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.drop-content h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.drop-content p {
    color: var(--text-secondary);
    margin: 10px 0;
}

.hint {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-top: 15px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-large {
    font-size: 1.125rem;
    padding: 16px 48px;
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 2px solid var(--border);
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.files-list {
    background: var(--surface);
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: var(--shadow);
}

.files-list h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.files-list ul {
    list-style: none;
    margin-bottom: 25px;
}

.files-list li {
    padding: 12px;
    background: var(--background);
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-icon {
    font-size: 1.5rem;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 500;
    color: var(--text-primary);
}

.file-size {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.results {
    background: var(--surface);
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: var(--shadow);
}

.results h3 {
    margin-bottom: 20px;
}

.result-item {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.result-item.success {
    background: #f0fdf4;
    border: 1px solid #86efac;
}

.result-item.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.result-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress {
    background: var(--surface);
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: var(--shadow);
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

footer {
    margin-top: 60px;
    text-align: center;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.feature {
    padding: 20px;
}

.feature h4 {
    font-size: 1.125rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature p {
    color: var(--text-secondary);
    font-size: 0.938rem;
}

.links {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.links a:hover {
    text-decoration: underline;
}

.links span {
    margin: 0 10px;
}

.copyright {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .drop-zone {
        padding: 40px 20px;
    }

    .actions {
        flex-direction: column;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
