* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
    color: #e2e8f0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(129, 140, 248, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
}

.main-content {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.generation-panel {
    margin-bottom: 40px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #cbd5e1;
}

.input-group textarea {
    width: 100%;
    padding: 16px;
    background: #1e293b;
    border: 2px solid #334155;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #f1f5f9;
    resize: vertical;
    transition: all 0.3s;
}

.input-group textarea:focus {
    outline: none;
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
}

.input-group textarea::placeholder {
    color: #64748b;
}

.settings-panel {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.setting-item {
    flex: 1;
}

.setting-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #cbd5e1;
}

.setting-item select {
    width: 100%;
    padding: 12px;
    background: #1e293b;
    border: 2px solid #334155;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #f1f5f9;
    cursor: pointer;
    transition: all 0.3s;
}

.setting-item select:focus {
    outline: none;
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
}

.setting-item select option {
    background: #1e293b;
}

.generate-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(129, 140, 248, 0.5);
}

.generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.result-panel {
    margin-bottom: 40px;
    text-align: center;
}

.image-container {
    min-height: 400px;
    border: 2px dashed #334155;
    border-radius: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0f172a;
}

.placeholder {
    color: #64748b;
    text-align: center;
    padding: 20px;
}

.placeholder p {
    font-size: 18px;
    margin-bottom: 10px;
}

.placeholder .small {
    font-size: 14px;
    color: #475569;
}

.generated-image {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
}

.download-section {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.download-btn, .copy-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.download-btn {
    background: #10b981;
    color: white;
}

.download-btn:hover {
    background: #059669;
    transform: translateY(-2px);
}

.copy-btn {
    background: #3b82f6;
    color: white;
}

.copy-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.info-panel {
    background: #0f172a;
    border-radius: 16px;
    padding: 20px;
}

.info-panel h3 {
    color: #cbd5e1;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.example-item {
    background: #1e293b;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #334155;
    color: #94a3b8;
}

.example-item:hover {
    background: #334155;
    transform: translateY(-2px);
    border-color: #818cf8;
    color: #f1f5f9;
}

@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    
    .settings-panel {
        flex-direction: column;
        gap: 10px;
    }
    
    .container {
        padding: 20px 10px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .download-section {
        flex-direction: column;
    }
}