﻿.segmented-picker {
    align-items: center;
    background: linear-gradient(to bottom, #ffffff 0%,azure 50%,#ffffff 100%);
    border-radius: 8px;
    display: flex;
    overflow: hidden;
    padding: 10px 7px 10px 7px;
    width: 300px;
    height: 50px;
    border: 1px solid #ccc;
}

    .segmented-picker > input {
        pointer-events: none;
        position: absolute;
        visibility: hidden;
    }

        .segmented-picker > input:nth-last-of-type(1):checked ~ label:last-of-type::before {
            left: 0;
        }

        .segmented-picker > input:nth-last-of-type(2):checked ~ label:last-of-type::before {
            left: -100%;
        }

        .segmented-picker > input:nth-last-of-type(3):checked ~ label:last-of-type::before {
            left: -200%;
        }

    .segmented-picker > label {
        align-items: center;
        cursor: pointer;
        display: flex;
        flex: 1;
        justify-content: center;
        padding: 4px;
        position: relative;
    }

        .segmented-picker > label > span {
            font-size: 16px;
            font-weight: 600;
            letter-spacing: 0.02em;
            position: relative;
            z-index: 2;
        }

        .segmented-picker > label:not(:first-of-type)::after {
            background-color: rgba(0, 0, 0, 0.12);
            content: "";
            display: block;
            height: 16px;
            left: 0;
            position: absolute;
            width: 1px;
            z-index: 0;
        }

        .segmented-picker > label:last-of-type::before {
            background-color: white;
            border-radius: 6px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), 0 0 0 2px #f2f2f7;
            content: "";
            display: block;
            height: 100%;
            left: 0;
            position: absolute;
            top: 0;
            transition: 0.25s ease;
            width: 100%;
            z-index: 1;
        }

span[id*="tesmn"] {
    white-space: nowrap;
}

.formula-badge-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    padding: 10px 0;
}

.flip-card {
    background-color: transparent;
    height: 160px;
    perspective: 1000px;
    cursor: pointer;
    width: 100%;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.flip-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 10px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.05);
    border: 2px solid #edf2f7;
}

.card-front {
    background-color: #ffffff;
    color: #2d3748;
}

.card-back {
    transform: rotateY(180deg);
    color: #ffffff;
}

/* Theme Palettes matching bclick panels */
body[data-module="perimeter"] .card-back {
    background-color: #e53e3e;
}

body[data-module="area"] .card-back {
    background-color: #38a169;
}

body[data-module="circle"] .card-back {
    background-color: #3182ce;
}

body[data-module="volume"] .card-back {
    background-color: #805ad5;
}

.formula-text {
    font-size: 1.4rem;
    font-weight: 700;
}

/* Option Selection Buttons styling */
.quiz-option-item {
    margin-bottom: 10px;
}

.quiz-option-btn {
    width: 100%;
    border: 2px solid #e2e8f0;
    background-color: #fff;
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.2s;
    text-align: left;
    padding: 10px 10px;
    color: #2d3748;
}

    .quiz-option-btn:hover {
        background-color: #edf2f7;
        border-color: #cbd5e0;
    }

    .quiz-option-btn.correct {
        background-color: #d1e7dd !important;
        border-color: #a3cfbb !important;
        color: #0f5132 !important;
    }

    .quiz-option-btn.wrong {
        background-color: #f8d7da !important;
        border-color: #f5c2c7 !important;
        color: #842029 !important;
    }
