/* Custom scrollbar for inputs (inherited from original) */
textarea::-webkit-scrollbar, input::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}
textarea::-webkit-scrollbar-track, input::-webkit-scrollbar-track {
	background: #f1f5f9; 
	border-radius: 4px;
}
textarea::-webkit-scrollbar-thumb, input::-webkit-scrollbar-thumb {
	background: #cbd5e1; 
	border-radius: 4px;
}
textarea::-webkit-scrollbar-thumb:hover, input::-webkit-scrollbar-thumb:hover {
	background: #94a3b8; 
}

/* Custom scrollbar - Dark Mode */
.dark textarea::-webkit-scrollbar-track, .dark input::-webkit-scrollbar-track {
	background: #1e293b; /* slate-800 */
}
.dark textarea::-webkit-scrollbar-thumb, .dark input::-webkit-scrollbar-thumb {
	background: #475569; /* slate-600 */
}
.dark textarea::-webkit-scrollbar-thumb:hover, .dark input::-webkit-scrollbar-thumb:hover {
	background: #64748b; /* slate-500 */
}

/* Custom Checkbox override for Tailwind to ensure consistency across browsers */
input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1.25em;
    height: 1.25em;
    border: 1px solid #cbd5e1; /* slate-300 */
    border-radius: 0.25em;
    display: grid;
    place-content: center;
}

/* Custom Checkbox - Dark Mode */
.dark input[type="checkbox"] {
    background-color: #1e293b; /* slate-800 */
    border-color: #475569; /* slate-600 */
}

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

input[type="checkbox"]:checked {
    background-color: #4f46e5; /* indigo-600 */
    border-color: #4f46e5;
}

/* Custom Checkbox checked - Dark Mode */
.dark input[type="checkbox"]:checked {
    background-color: #6366f1; /* indigo-500 */
    border-color: #6366f1;
}

input[type="checkbox"]:checked::before {
    transform: scale(1);
}