* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.logo {
    width: 40px;
    height: 40px;
    padding: 8px;
    background-color: #f5f3ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b5cf6;
}

.magic-wand {
    width: 24px;
    height: 24px;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(5deg) scale(1.1);
    }

    50% {
        transform: rotate(0deg) scale(1);
    }

    75% {
        transform: rotate(-5deg) scale(1.1);
    }

    100% {
        transform: rotate(0deg) scale(1);
    }
}

h1 {
    font-size: 32px;
    color: #8b5cf6;
    font-weight: 600;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

.main-content {
    max-width: 800px;
    margin: 0 auto;
}

.input-section {
    margin-bottom: 24px;
}

.input-section label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #444;
}

#promptInput {
    width: 100%;
    height: 80px;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #e4e4e7;
    border-radius: 8px;
    resize: none;
    transition: border-color 0.2s;
}

#promptInput:focus {
    outline: none;
    border-color: #8b5cf6;
}

.image-container {
    position: relative;
    background-color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Yellow outline container */
.image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid #FFD700;
    border-radius: 12px;
    pointer-events: none;
}

/* Inner dashed border */
.image-container::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px dashed #e4e4e7;
    border-radius: 8px;
    pointer-events: none;
}

/* Device-specific container sizes */
.image-container[data-device="desktop"] {
    width: 800px;
    height: 450px;
    margin-left: auto;
    margin-right: auto;
}

.image-container[data-device="tablet"] {
    width: 600px;
    height: 450px;
    margin-left: auto;
    margin-right: auto;
}

.image-container[data-device="phone"] {
    width: 338px;
    height: 600px;
    margin-left: auto;
    margin-right: auto;
}

.placeholder-text {
    text-align: center;
    color: #a1a1aa;
    position: relative;
    z-index: 1;
}

.sub-text {
    display: block;
    font-size: 14px;
    margin-top: 8px;
}

.generated-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.device-selection {
    margin-bottom: 24px;
}

.device-selection h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #444;
}

.device-options {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.device-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border: 2px solid #e4e4e7;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
}

.device-btn.active {
    border-color: #8b5cf6;
    background-color: #f5f3ff;
}

.device-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.resolution {
    font-size: 12px;
    color: #666;
}

.generate-btn {
    width: 100%;
    padding: 16px;
    background-color: #8b5cf6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 32px;
}

.generate-btn:hover {
    background-color: #7c3aed;
}

.generate-btn:disabled {
    background-color: #e4e4e7;
    cursor: not-allowed;
}

.download-container {
    text-align: center;
    margin: 20px 0;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.download-btn:hover {
    background-color: #059669;
}

.download-btn svg {
    width: 20px;
    height: 20px;
}

.inspiration-section {
    margin-top: 40px;
}

.inspiration-section h3 {
    font-size: 16px;
    margin-bottom: 16px;
    color: #444;
}

.inspiration-prompts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prompt-btn {
    width: 100%;
    padding: 12px;
    text-align: left;
    background: white;
    border: 1px solid #e4e4e7;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.prompt-btn h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: inherit;
}

.prompt-btn:hover {
    background-color: #f5f3ff;
    border-color: #8b5cf6;
    color: #8b5cf6;
}