* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2em;
}

.stats {
    text-align: center;
    color: #2980b9;
    margin-bottom: 30px;
    font-size: 1.2em;
    font-weight: bold;
}

.input-container {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.prompt-section {
    margin-bottom: 20px;
}

.prompt-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

#promptInput {
    width: 100%;
    padding: 12px;
    border: 2px solid #3498db;
    border-radius: 8px;
    resize: vertical;
    font-size: 16px;
}

.model-section {
    margin-bottom: 20px;
}

.model-options {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.model-option {
    cursor: pointer;
    padding: 10px;
    border: 2px solid #3498db;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.model-option:hover {
    background-color: #f7f9fc;
}

.generate-btn {
    width: 100%;
    padding: 15px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.generate-btn:hover {
    background: #27ae60;
}

.generate-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.loading-indicator {
    text-align: center;
    margin: 20px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.result-container {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.image-container {
    text-align: center;
    margin: 20px 0;
}

#generatedImage {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.download-btn {
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.download-btn:hover {
    background: #2980b9;
}

.prompt-display {
    margin-top: 15px;
    padding: 10px;
    background: #f7f9fc;
    border-radius: 5px;
}

.info-section {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.info-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.info-section ul {
    list-style-position: inside;
    color: #7f8c8d;
}

.info-section li {
    margin-bottom: 8px;
}

.faq-section {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.faq-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h4 {
    color: #3498db;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

.save-tip {
    color: #666;
    font-size: 0.9em;
    margin-top: 10px;
    padding: 8px;
    background: #f7f9fc;
    border-radius: 5px;
    text-align: center;
}

.guide-item {
    margin-bottom: 25px;
}

.guide-item:last-child {
    margin-bottom: 0;
}

.guide-item h4 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.1em;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8f0fe;
}

.guide-item ul {
    list-style-position: inside;
    color: #666;
}

.guide-item li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.guide-item li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3498db;
}

.guide-item li strong {
    color: #2c3e50;
}

.footer {
    position: relative;
    margin-top: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    line-height: 0;
}

.footer-wave svg {
    position: relative;
    display: block;
    width: 100%;
    height: 100px;
}

.footer-main {
    position: relative;
    padding: 60px 20px;
    text-align: center;
}

.footer-logo {
    margin-bottom: 30px;
}

.logo-text {
    font-size: 2em;
    font-weight: bold;
    background: linear-gradient(to right, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-subtitle {
    margin-top: 5px;
    font-size: 1em;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
}

.footer-copyright {
    color: rgba(255,255,255,0.9);
    font-size: 0.9em;
    line-height: 1.8;
}

.footer-copyright p {
    margin: 5px 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    .model-options {
        flex-direction: column;
    }
    
    .model-option {
        width: 100%;
    }
    
    .faq-section {
        padding: 15px;
    }
    
    .faq-item h4 {
        font-size: 1em;
    }
    
    .info-section {
        padding: 20px;
    }
    
    .guide-item h4 {
        font-size: 1em;
    }
    
    .footer {
        margin-top: 60px;
    }
    
    .footer-wave {
        top: -50px;
        height: 50px;
    }
    
    .footer-wave svg {
        height: 50px;
    }
    
    .footer-main {
        padding: 40px 15px;
    }
    
    .logo-text {
        font-size: 1.5em;
    }
    
    .logo-subtitle {
        font-size: 0.9em;
    }
} 