/* --- Modern Aesthetic Checkbox --- */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    user-select: none;
}

/* Sembunyikan input asli */
.checkbox-wrapper input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Kotak Checkbox Custom */
.checkmark {
    position: relative;
    height: 22px;
    width: 22px;
    background-color: #fff;
    border: 2px solid #e2e8f0; /* Gray-200 */
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Agar tidak gepeng di mobile */
}

/* Efek Hover */
.checkbox-wrapper:hover .checkmark {
    border-color: #3b82f6; /* Primary Blue */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Dark Mode Support untuk background kotak */
.dark .checkmark {
    background-color: #374151; /* Gray-700 */
    border-color: #4b5563; /* Gray-600 */
}

/* Icon Centang (Hidden by default) */
.checkmark::after {
    content: '\f00c'; /* FontAwesome check icon code */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 12px;
    transform: scale(0);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* State: Checked (Tercentang) */
.checkbox-wrapper input:checked ~ .checkmark {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6); /* Gradient Flowix */
    border-color: transparent;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.4); /* Glow effect */
}

/* Animasi Muncul Centang */
.checkbox-wrapper input:checked ~ .checkmark::after {
    transform: scale(1);
}

/* Teks Label */
.checkbox-label {
    margin-left: 0.75rem;
    font-size: 0.875rem; /* text-sm */
    color: #4b5563; /* Gray-600 */
    transition: color 0.3s;
}

.dark .checkbox-label {
    color: #9ca3af; /* Gray-400 */
}