/* Custom Scrollbar for hidden feel (Light Mode) */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    /* Slate 100 */
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    /* Slate 300 */
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
    /* Slate 400 */
}

/* Learning Content Transitions - Manual Toggle */
.learning-content {
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out, padding 0.3s ease;
    max-height: 2000px;
    opacity: 1;
    overflow: hidden;
}

.learning-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Checkbox Animation (Light Mode) */
.custom-checkbox {
    appearance: none;
    background-color: #f8fafc;
    /* Slate 50 */
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1.5em;
    height: 1.5em;
    border: 2px solid #cbd5e1;
    /* Slate 300 */
    border-radius: 0.25em;
    display: grid;
    place-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-checkbox::before {
    content: "";
    width: 0.8em;
    height: 0.8em;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em white;
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.custom-checkbox:checked {
    background-color: #f59e0b;
    border-color: #f59e0b;
}

.custom-checkbox:checked::before {
    transform: scale(1);
}

/* Card Press Effect */
.exercise-card:active {
    transform: scale(0.98);
}