* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.upload-area {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    text-align: center;
    border: 2px dashed #3498db;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #2980b9;
}

.upload-area i {
    font-size: 48px;
    color: #3498db;
    margin-bottom: 15px;
}

.upload-area h2 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.upload-area p {
    margin-bottom: 20px;
    color: #7f8c8d;
}

.file-input {
    display: none;
}

.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.browse-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.browse-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.create-btn {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.create-btn:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

.create-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.clear-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.clear-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.clear-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.filename-input {
    margin: 20px 0;
    text-align: left;
}

.filename-input label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.filename-input input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.filename-input input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.progress-container {
    margin-top: 30px;
    display: none;
}

.progress-bar {
    height: 20px;
    background: #ecf0f1;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 10px;
}

.progress-text {
    text-align: center;
    color: #7f8c8d;
    font-weight: 500;
}

.file-list {
    margin-top: 20px;
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 10px;
    background: #fafafa;
}

.file-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.file-item:hover {
    background-color: #f0f0f0;
}

.file-item:last-child {
    border-bottom: none;
}

.file-remove {
    color: #e74c3c;
    cursor: pointer;
    margin-left: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.file-remove:hover {
    color: #c0392b;
    background-color: #ffebee;
}

footer {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    border-top: 1px solid #eee;
    background: white;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: #3498db;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    text-decoration: underline;
    color: #2980b9;
}

.success-message {
    color: #2ecc71;
    margin-top: 15px;
    display: none;
    padding: 10px;
    background: #d5f4e6;
    border-radius: 5px;
    border: 1px solid #2ecc71;
}

.error-message {
    color: #e74c3c;
    margin-top: 15px;
    display: none;
    padding: 10px;
    background: #fdeaea;
    border-radius: 5px;
    border: 1px solid #e74c3c;
}

.empty-state {
    text-align: center;
    color: #7f8c8d;
    padding: 20px;
    font-style: italic;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    .upload-area {
        padding: 20px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .button-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .browse-btn, .create-btn, .clear-btn {
        width: 100%;
        margin: 0;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .file-info {
        align-self: flex-end;
    }
}