* {
    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, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #2a2a2a;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ff0000;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #ff0000, #ff6666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header p {
    color: #aaa;
    font-size: 1.1rem;
}

.error {
    background: #ff000020;
    border: 1px solid #ff0000;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    color: #ff6666;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
}

input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    background: #1a1a1a;
    border: 2px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: #ff0000;
}

input[type="text"]::placeholder {
    color: #666;
}

small {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 0.85rem;
}

button[type="submit"],
.download-btn,
.btn-secondary {
    width: 100%;
    padding: 15px;
    background: #ff0000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

button[type="submit"]:hover,
.download-btn:hover {
    background: #cc0000;
    transform: translateY(-2px);
}

button[type="submit"]:active,
.download-btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #444;
    margin-top: 30px;
}

.btn-secondary:hover {
    background: #555;
}

.help-section {
    margin-top: 40px;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 8px;
    border-left: 4px solid #ff0000;
}

.help-section h3 {
    margin-bottom: 15px;
    color: #ff6666;
}

.help-section ul {
    list-style: none;
}

.help-section li {
    padding: 8px 0;
    color: #ccc;
}

.help-section strong {
    color: #fff;
}

/* Results Page Styles */
.results {
    margin-top: 30px;
}

.image-section {
    margin-bottom: 40px;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 8px;
}

.image-section h2 {
    margin-bottom: 20px;
    color: #ff6666;
    font-size: 1.5rem;
}

.image-container {
    text-align: center;
}

.generated-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
}

.actions {
    text-align: center;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }
}
