* {
    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: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

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

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

.prompt-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.prompt-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.prompt-section textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

.prompt-section textarea:focus {
    outline: none;
    border-color: #667eea;
}

.columns-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.column {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.column h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.drop-zone {
    border: 3px dashed #cbd5e0;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    background: #f8f9fa;
}

.drop-zone:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.drop-zone.drag-over {
    border-color: #667eea;
    background: #e0e8ff;
    transform: scale(1.02);
}

.drop-message {
    pointer-events: none;
}

.drop-message svg {
    color: #667eea;
    margin-bottom: 10px;
}

.drop-message p {
    color: #4a5568;
    font-weight: 500;
    margin: 5px 0;
}

.drop-message .small {
    font-size: 0.9rem;
    color: #718096;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.file-info {
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #4a5568;
}

.file-info.processing {
    background: #fff4e6;
    color: #856404;
}

.file-info.complete {
    background: #d4edda;
    color: #155724;
}

.file-info.error {
    background: #f8d7da;
    color: #721c24;
}

.results {
    margin-top: 15px;
    flex: 1;
}

.result-section {
    margin-bottom: 15px;
}

.result-section h3 {
    color: #333;
    font-size: 1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-section h3 svg {
    width: 18px;
    height: 18px;
}

.result-content {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #2d3748;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 1024px) {
    .columns-container {
        grid-template-columns: 1fr;
    }
}

