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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

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

.header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding-top: 20px;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 40px;
}

.info-box {
    background: #f0f4ff;
    border-left: 4px solid #667eea;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.info-box h2 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.info-box ul {
    margin-left: 20px;
    color: #333;
    line-height: 1.8;
}

.upload-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.file-input-wrapper {
    position: relative;
    margin-bottom: 15px;
}

#csvInput {
    display: none;
}

.file-label {
    display: block;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1em;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

.file-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.file-label span {
    display: block;
}

.file-hint {
    color: #666;
    font-size: 0.9em;
    text-align: center;
}

.status-section {
    margin-top: 30px;
}

.status {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.status.processing {
    display: block;
    background: #e3f2fd;
    color: #1976d2;
    border-left: 4px solid #1976d2;
}

.status.success {
    display: block;
    background: #e8f5e9;
    color: #388e3c;
    border-left: 4px solid #388e3c;
}

.status.error {
    display: block;
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.results-container {
    display: none;
}

.results-container.show {
    display: block;
}

.result-item {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #667eea;
}

.result-info h3 {
    color: #333;
    font-size: 1em;
    margin-bottom: 5px;
}

.result-info p {
    color: #666;
    font-size: 0.9em;
}

.download-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.download-btn:hover {
    background: #764ba2;
}

.download-btn:active {
    transform: scale(0.98);
}

@media (max-width: 600px) {
    .header h1 {
        font-size: 2em;
    }

    .content {
        padding: 20px;
    }

    .file-label {
        padding: 20px;
    }

    .result-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .download-btn {
        margin-top: 10px;
    }
}