/* Custom Checkbox Styles */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
    user-select: none;
    position: relative;
    padding-left: 0; /* Reset any default padding */
}

/* Hide the default checkbox */
.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Custom Checkmark Box */
.custom-checkmark {
    height: 18px;
    width: 18px;
    background-color: transparent;
    border: 1.5px solid #64748b; /* Slate-500 for visibility against dark bg */
    border-radius: 5px; /* Rounded corners */
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
    display: inline-block; /* Ensure it takes up space */
}

/* Hover effect */
.checkbox-container:hover .custom-checkmark {
    border-color: var(--primary-blue, #8b5cf6); /* Fallback to purple if var not defined */
}

/* Checked state */
.checkbox-container input:checked ~ .custom-checkmark {
    background-color: var(--primary-blue, #8b5cf6);
    border-color: var(--primary-blue, #8b5cf6);
}

/* Checkmark icon (the white tick) */
.custom-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px; /* Adjusted for 18px box */
    top: 1px;  /* Adjusted for 18px box */
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Show checkmark when checked */
.checkbox-container input:checked ~ .custom-checkmark:after {
    display: block;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
    user-select: none;
    position: relative;
    padding-left: 0; /* Reset any default padding */
}

/* Hide the default checkbox */
.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Custom Checkmark Box */
.custom-checkmark {
    height: 18px;
    width: 18px;
    background-color: transparent;
    border: 1.5px solid #64748b; /* Slate-500 for visibility against dark bg */
    border-radius: 5px; /* Rounded corners */
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
    display: inline-block; /* Ensure it takes up space */
}

/* Hover effect */
.checkbox-container:hover .custom-checkmark {
    border-color: var(--primary-blue, #8b5cf6); /* Fallback to purple if var not defined */
}

/* Checked state */
.checkbox-container input:checked ~ .custom-checkmark {
    background-color: var(--primary-blue, #8b5cf6);
    border-color: var(--primary-blue, #8b5cf6);
}

/* Checkmark icon (the white tick) */
.custom-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px; /* Adjusted for 18px box */
    top: 1px;  /* Adjusted for 18px box */
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Show checkmark when checked */
.checkbox-container input:checked ~ .custom-checkmark:after {
    display: block;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
    user-select: none;
    position: relative;
    padding-left: 0; /* Reset any default padding */
}

/* Hide the default checkbox */
.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Custom Checkmark Box */
.custom-checkmark {
    height: 18px;
    width: 18px;
    background-color: transparent;
    border: 1.5px solid #64748b; /* Slate-500 for visibility against dark bg */
    border-radius: 5px; /* Rounded corners */
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
    display: inline-block; /* Ensure it takes up space */
}

/* Hover effect */
.checkbox-container:hover .custom-checkmark {
    border-color: var(--primary-blue, #8b5cf6); /* Fallback to purple if var not defined */
}

/* Checked state */
.checkbox-container input:checked ~ .custom-checkmark {
    background-color: var(--primary-blue, #8b5cf6);
    border-color: var(--primary-blue, #8b5cf6);
}

/* Checkmark icon (the white tick) */
.custom-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px; /* Adjusted for 18px box */
    top: 1px;  /* Adjusted for 18px box */
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Show checkmark when checked */
.checkbox-container input:checked ~ .custom-checkmark:after {
    display: block;
}

