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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 90%;
    max-width: 600px;
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin: 20px;
}

h1 {
    text-align: center;
    margin: 30px 0 20px;
    color: #444;
    font-size: 2.2em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section {
    padding: 30px;
    border-bottom: 1px solid #eee;
}

.section:last-child {
    border-bottom: none;
}

h2 {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.4em;
}

.input-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-weight: 500;
}

input[type="text"],
input[type="file"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="file"]:focus {
    outline: none;
    border-color: #667eea;
}

.btn-upload,
.btn-download {
    padding: 14px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-upload {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.btn-download {
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    color: white;
}

.btn-upload:hover,
.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.result {
    margin-top: 20px;
    min-height: 50px;
}

.success,
.error {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.download-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-link:hover {
    background: linear-gradient(45deg, #45a049, #4CAF50);
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .container {
        margin: 10px;
        width: 95%;
    }
    h1 {
        font-size: 1.8em;
        margin: 20px 0 15px;
    }
}