/* --------------------------------------
   Base Variables and Typography
---------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&display=swap');

:root {
    --pink: #e48bae;
    --purple: #9575cd;
    --lavender: #f3e8ff;
    --mint: #7cdfff;
    --text: #333;
    --white: #fff;
    --shadow: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Nunito', sans-serif;
    background: var(--lavender);
    color: var(--text);
    line-height: 1.6;
    padding: 1rem;
    font-size: 16px;
}

/* --------------------------------------
   Header Hero
---------------------------------------- */
.hero {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: white;
    padding: 3rem 1rem 2rem;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px var(--shadow);
    position: relative;
}

.labubu-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

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

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
}

.birthday-message {
    font-size: 1.1rem;
    margin-top: 1rem;
    opacity: 0.95;
    font-style: italic;
}

.banner {
    margin-top: 1rem;
    height: 150px;
    background: url('banner-placeholder.png') center/cover no-repeat;
    border-radius: 12px;
}

/* --------------------------------------
   Navigation Tabs
---------------------------------------- */
.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    border-bottom: 2px solid var(--purple);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tabs button {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: bold;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    color: var(--text);
    border-radius: 30px;
}

.tabs button.active {
    border-color: var(--purple);
    color: var(--purple);
}

.tabs button:hover {
    color: var(--pink);
    transform: scale(1.05);
}

/* --------------------------------------
   Main Content
---------------------------------------- */
main {
    max-width: 900px;
    margin: auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow);
}

/* --------------------------------------
   Tab Sections
---------------------------------------- */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* --------------------------------------
   Products Table
---------------------------------------- */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
}

#products-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    min-width: 400px;
}

#products-table th, #products-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

#products-table th {
    background: var(--mint);
    color: var(--text);
}

#products-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

#products-table tr:hover {
    background-color: #f1f1f1;
}

/* --------------------------------------
   Logs Section
---------------------------------------- */
#log-text {
    background: #f4f4f4;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 8px;
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 0.9rem;
    max-height: 400px;
    overflow-y: auto;
}

/* --------------------------------------
   Responsive Design
---------------------------------------- */
@media (max-width: 768px) {
    body {
        font-size: 15px;
        padding: 0.5rem;
    }

    .hero {
        padding: 2rem 1rem 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .tabs {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .tabs button {
        width: 100%;
        text-align: center;
        padding: 0.75rem 0;
    }

    main {
        padding: 1rem;
    }

    .banner {
        height: 100px;
    }

    .labubu-emoji {
        font-size: 3rem;
    }
}
