* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #FFE5B4 0%, #FFCCCB 50%, #E6E6FA 100%);
    min-height: 100vh;
    color: #8B4513;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

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

.logo h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 3rem;
    color: #D2691E;
    text-shadow: 3px 3px 0px #8B4513, 6px 6px 0px rgba(139, 69, 19, 0.3);
    margin-bottom: 10px;
    animation: bounce 2s ease-in-out infinite;
}

.logo p {
    font-size: 1.2rem;
    color: #A0522D;
    font-weight: 600;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.creator-panel {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 3px solid #FFB6C1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.prompt-section h2 {
    font-family: 'Fredoka One', cursive;
    color: #D2691E;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

#cookiePrompt {
    width: 100%;
    padding: 15px;
    border: 3px solid #FFB6C1;
    border-radius: 15px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    resize: vertical;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

#cookiePrompt:focus {
    outline: none;
    border-color: #FF69B4;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.3);
}

.style-options {
    margin: 20px 0;
}

.style-options h3 {
    color: #D2691E;
    margin-bottom: 15px;
    font-weight: 700;
}

.style-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.style-btn {
    padding: 10px 15px;
    border: 3px solid #FFB6C1;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.8);
    color: #8B4513;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.style-btn:hover {
    background: #FFB6C1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 182, 193, 0.4);
}

.style-btn.active {
    background: #FF69B4;
    color: white;
    border-color: #FF69B4;
}

.generate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #FF69B4, #FFB6C1);
    border: none;
    border-radius: 25px;
    color: white;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 105, 180, 0.4);
}

.generate-btn:active {
    transform: translateY(0);
}

.generate-btn.loading .btn-text {
    opacity: 0;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.generate-btn.loading .btn-loader {
    opacity: 1;
    animation: spin 1s linear infinite;
}

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

.result-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-display {
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid #FFB6C1;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: #A0522D;
}

.cookie-icon {
    font-size: 4rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.placeholder p {
    font-size: 1.1rem;
    font-weight: 600;
}

.generated-cookie {
    width: 100%;
    max-width: 250px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.cookie-stats {
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid #FFB6C1;
    border-radius: 20px;
    padding: 20px;
}

.cookie-stats h3 {
    color: #D2691E;
    margin-bottom: 15px;
    font-family: 'Fredoka One', cursive;
}

.stat {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.stat span {
    min-width: 80px;
    font-weight: 600;
    color: #8B4513;
}

.stat-bar {
    flex: 1;
    height: 20px;
    background: #FFE5B4;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #FFB6C1;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF69B4, #FFB6C1);
    border-radius: 8px;
    transition: width 1s ease-out;
    width: 0%;
}

.gallery-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 3px solid #FFB6C1;
}

.gallery-section h2 {
    font-family: 'Fredoka One', cursive;
    color: #D2691E;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
}

.cookie-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #FFB6C1;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 182, 193, 0.3);
    border-color: #FF69B4;
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.gallery-item p {
    font-size: 0.9rem;
    color: #8B4513;
    font-weight: 600;
}

@media (max-width: 768px) {
    .creator-panel {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .style-buttons {
        justify-content: center;
    }
    
    .cookie-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

