/* Phase 1 GUI */

#mandalaApp {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: sans-serif;
}

.mandalaApp {
    background: #f7f7f7 !important;
}

.phase-section {
    margin-top: 20px;
}

.hidden {
    display: none !important;
}

.liked-counter {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: bold;
}

.control-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 300px;
}

.control-group {
    display: flex;
    flex-direction: column;
}

.control-group label {
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

/* Default desktop dropdowns */
.control-group select {
    width: 100%;
    padding: 8px 10px;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    outline: none;
}

/* Default desktop sliders */
.control-group input[type="range"] {
    width: 100%;
}

.primary-btn {
    padding: 10px 20px;
    font-size: 16px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 6px;
    background: #eaeaea;
    border: 1px solid #ccc;
}

/* Phase 1 should NOT style the play-mode control panel */

#svgContainer {
    width: 100%;
    height: calc(100vh - 120px);
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fafafa;
}

#mandalaSVG {
    width: 100%;
    height: auto;
    max-width: 800px;
}

.fullscreen-active #phase1a,
.fullscreen-active #phase1b {
    display: none !important;
}

.fullscreen-active #svgContainer {
    height: 100vh;
}

.fullscreen-active body {
    overflow: hidden;
}

/* ============================================================
   ⭐ MOBILE UI UPGRADE — Light theme, compact dropdowns
   ============================================================ */

@media (max-width: 600px) {

    .control-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 1.4rem;
        padding: 0 4px;
    }

    .control-group {
        width: 100%;
        margin-bottom: 1rem;
    }

    .control-group label {
        font-size: 15px;
        margin-bottom: 6px;
    }

    /* ⭐ Improved mobile dropdowns (not oversized) */
    .control-group select {
        width: 100%;
        padding: 10px 12px;
        font-size: 16px; /* safe size */
        border-radius: 8px;
        border: 1px solid #bbb;
        background: #fff;
        color: #333;

        background-image: url("data:image/svg+xml;utf8,<svg fill='%23666' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
        background-repeat: no-repeat;
        background-position: right 10px center;
        background-size: 18px;
    }

    /* ⭐ Improved mobile sliders */
    .control-group input[type="range"] {
        width: 100%;
        height: 32px;
        -webkit-appearance: none;
        background: transparent;
    }

    .control-group input[type="range"]::-webkit-slider-runnable-track {
        height: 6px;
        background: #ccc;
        border-radius: 3px;
    }

    .control-group input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        height: 22px;
        width: 22px;
        background: #666;
        border-radius: 50%;
        margin-top: -8px;
    }

    /* ⭐ Better mobile buttons */
    .primary-btn {
        padding: 12px 18px;
        font-size: 17px;
        border-radius: 8px;
        background: #f0f0f0;
        border: 1px solid #bbb;
    }

    #svgContainer {
        height: calc(100vh - 160px);
    }
}
