/* --- STYLING INPUT NYA --- */
.m3-select-wrapper {
    --m3-primary: var(--primary);
    --m3-surface: var(--light);
    --m3-surface-container: #f3edf7;
    --m3-elevation-2: 0px 3px 1px -2px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 1px 5px 0px rgba(0,0,0,0.12);
    --m3-ripple-color: rgba(103, 80, 164, 0.12);
    --m3-on-surface: var(--dark);
    position: relative;
    width: 250px;
    user-select: none;
}

.m3-field {
    height: 56px;
    background-color: var(--m3-surface-container);
    /* border-radius: 4px 4px 0 0; */
    border-bottom: 1px solid #79747e;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
    overflow: hidden;
}

.m3-field:hover {
    background-color: #ece6f0;
}

.m3-field-content {
    display: flex;
    flex-direction: column;
}

.m3-label {
    font-size: 12px;
    color: var(--m3-primary);
    margin-bottom: 2px;
}

.m3-selected-text {
    font-size: 16px;
    color: var(--m3-on-surface);
}

/* --- STYLING MENU NYA (YANG GEMES) --- */
.m3-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    /* border-radius: 4px; */
    box-shadow: var(--m3-elevation-2);
    z-index: 100;
    opacity: 0;
    transform: scaleY(0.8);
    transform-origin: top;
    visibility: hidden;
    transition: transform 0.2s cubic-bezier(0, 0, 0.2, 1), opacity 0.15s linear;
    padding: 8px 0;
}

.m3-menu.open {
    opacity: 1;
    transform: scaleY(1);
    visibility: visible;
}

/* Item di dalam menu */
.m3-menu-item {
    padding: 0 16px;
    height: 48px;
    display: flex;
    align-items: center;
    font-size: 16px;
    color: var(--m3-on-surface);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.m3-menu-item:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: var(--m3-ripple-color);
    transform: scale(0);
    animation: ripple-animation 0.5s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.chevron {
    transition: transform 0.2s;
}

.m3-menu.open ~ .m3-field .chevron {
    transform: rotate(180deg);
}