:root {
    --primary-color: #007bff;
    --primary-color-hover: #0056b3;
    --primary-bg-color: #f9f9f9;
    --border-color: #ddd;
    --text-color: #333;
    --error-color: #d9534f;
}
.theme-blue {
    --primary-color: #007bff;
    --primary-color-hover: #0056b3;
    --background-color: #e7f3ff;
}

.theme-green {
    --primary-color: #28a745;
    --primary-color-hover: #218838;
    --background-color: #e6f4ea;
}

.theme-yellow {
    --primary-color: #ffc107;
    --primary-color-hover: #e0a800;
    --background-color: #fff8e1;
}

.theme-coral {
    --primary-color: #fd7e14;
    --primary-color-hover: #e66a00;
    --background-color: #ffe8d1;
}

.theme-red {
    --primary-color: #dc3545;
    --primary-color-hover: #bd2130;
    --background-color: #fde2e4;
}

.theme-purple {
    --primary-color: #6f42c1;
    --primary-color-hover: #5a32a3;
    --background-color: #f0e6fa;
}

.theme-black {
    --primary-color: #343a40;
    --primary-color-hover: #23272b;
    --background-color: #e9ecef;
}

.theme-mint {
    --primary-color: #20c997;
    --primary-color-hover: #198f6b;
    --background-color: #e6f8f3;
}

.theme-sky {
    --primary-color: #17a2b8;
    --primary-color-hover: #117a8b;
    --background-color: #e0f7fa;
}

.theme-pastel-orange {
    --primary-color: #fd7e76;
    --primary-color-hover: #e05449;
    --background-color: #ffe4e1;
}

.theme-rose {
    --primary-color: #e83e8c;
    --primary-color-hover: #c21868;
    --background-color: #fde4ef;
}

.theme-gray {
    --primary-color: #6c757d;
    --primary-color-hover: #545b62;
    --background-color: #f1f3f5;
}


input[type="radio"] {
    display: none;
}

label {
    position: relative;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    padding:8px;
}
label:has(input[type="radio"]) {
    border-bottom: 1px solid transparent;
}

label:has(input[type="checkbox"]) {
    border-bottom: 1px solid transparent;
}

label:has(input[type="radio"]):hover {

    cursor: pointer;
    border-bottom: solid 1px var(--primary-color);
    animation: borderGrow 0.3s ease forwards;
}

abel:has(input[type="checkbox"]):hover {

    cursor: pointer;
    border-bottom: solid 1px var(--primary-color);
    animation: borderGrow 0.3s ease forwards;
}

label:has(input[type="radio"]):before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    background: white;
    margin-right: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    position: relative;
    top: 4px;
}
label:has(input[type="radio"]:checked):before {
    background-color: var(--primary-color);
    transform: scale(1.1);
}
label:has(input[type="radio"]:checked):after {
    content: "";
    position: absolute;
    left: 12px;
    top: 16px;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

input[type="checkbox"] {
    display: none;
}
label:has(input[type="checkbox"]):before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    background: white;
    margin-right: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    position: relative;
    top: 4px;
}

label:has(input[type="checkbox"]:checked):before {
    background-color: var(--primary-color);
    transform: scale(1.1);
    border: 2px solid var(--primary-color);
}

label:has(input[type="checkbox"]:checked):after {
    content: "✓";
    position: absolute;
    left: 10px;
    top: 8px;
    font-size: 18px;
    color: white;
}

input[type="checkbox"]:checked + label:after,
input[type="radio"]:checked + label:after {
    opacity: 1;
    transform: scale(1);
}

@keyframes borderGrow {
    0% {
        border-width: 1px;
        border-color: transparent;
    }
    100% {
        border-width: 1px;

        input[type="radio"] {
            display: none;
        }
    }

}
