/* Checkbox Styles - Reusable checkbox styling for the entire website */

/* Base checkbox styling */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    background-color: #ffffff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin: 0;
    margin-left: 0.5rem;
}

input[type="checkbox"]:hover {
    border-color: var(--accent-color, #0066cc);
    background-color: #f5f5f5;
}

input[type="checkbox"]:checked {
    background-color: var(--accent-color, #0066cc);
    border-color: var(--accent-color, #0066cc);
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 10px;
    margin-left: -4px;
    margin-top: -6px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

input[type="checkbox"]:disabled:hover {
    border-color: #d0d0d0;
    background-color: #f5f5f5;
}

/* Checkbox label styling */
label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    color: #2c3e50;
}

label:has(input[type="checkbox"]:disabled) {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Checkbox container styling */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.checkbox-container label {
    flex: 1;
    margin: 0;
}

/* Tablet Mode */
body.tablet-mode input[type="checkbox"] {
    width: 28px !important;
    height: 28px !important;
    border-width: 3px;
    border-radius: 6px;
    font-size: inherit;
    padding: 0 !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
}

body.tablet-mode input[type="checkbox"]:checked::after {
    left: 50%;
    top: 50%;
    width: 7px;
    height: 14px;
    margin-left: -5px;
    margin-top: -8px;
    border-width: 0 3px 3px 0;
}

body.tablet-mode label:has(input[type="checkbox"]) {
    gap: 1rem;
    font-size: 1.75rem;
}

body.tablet-mode .checkbox-container {
    gap: 1rem;
    margin-bottom: 1.5rem;
}

