.toggle-switch { position: relative; display: inline-block; width: 40px; height: 24px; margin: 10px; } .toggle-switch .toggle-input { display: none; } .toggle-switch .toggle-label { position: absolute; top: 0; left: 0; width: 40px; height: 24px; background-color: #ccc; border-radius: 34px; cursor: pointer; transition: background-color 0.3s; } .toggle-switch .toggle-label::before { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; top: 2px; left: 2px; background-color: #fff; box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.3); transition: transform 0.3s; } .toggle-switch .toggle-input:checked + .toggle-label { background-color: #2196F3; } .toggle-switch .toggle-input:checked + .toggle-label::before { transform: translateX(16px); } .toggle-switch.light .toggle-label { background-color: #BEBEBE; } .toggle-switch.light .toggle-input:checked + .toggle-label { background-color: #9B9B9B; } .toggle-switch.light .toggle-input:checked + .toggle-label::before { transform: translateX(6px); } .toggle-switch.dark .toggle-label { background-color: #4B4B4B; } .toggle-switch.dark .toggle-input:checked + .toggle-label { background-color: #717171; } .toggle-switch.dark .toggle-input:checked + .toggle-label::before { transform: translateX(16px); } /* CHECKBOX FEATURE */ .feat-radio-container { display: flex; justify-content: center; align-items: center; } .feat-radio-container > h4 { margin-top: 6px; } .toggle-switch-feat { position: relative; display: inline-block; width: 40px; height: 24px; margin: 10px; } .toggle-switch-feat .toggle-input-feat { display: none; } .toggle-switch-feat .toggle-label-feat { position: absolute; top: 0; left: 0; width: 40px; height: 24px; background-color: #bbb; border-radius: 34px; cursor: pointer; transition: background-color 0.3s; } .toggle-switch-feat .toggle-label-feat::before { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; top: 2px; left: 2px; background-color: #fff; box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.3); transition: transform 0.3s; } .toggle-switch-feat .toggle-input-feat:checked + .toggle-label-feat { background-color: #bbb; } .toggle-switch-feat .toggle-input-feat:checked + .toggle-label-feat::before { transform: translateX(16px); } .toggle-switch-feat.light .toggle-label-feat { background-color: #BEBEBE; } .toggle-switch-feat.light .toggle-input-feat:checked + .toggle-label-feat { background-color: #9B9B9B; } .toggle-switch-feat.light .toggle-input-feat:checked + .toggle-label-feat::before { transform: translateX(6px); } .toggle-switch-feat.dark .toggle-label-feat { background-color: #4B4B4B; } .toggle-switch-feat.dark .toggle-input:checked + .toggle-label-feat { background-color: #717171; } .toggle-switch-feat.dark .toggle-input-feat:checked + .toggle-label-feat::before { transform: translateX(16px); }