This is the HTMl for my web app:
.container {
max-width: 600px;
margin: 0 auto;
padding: 20px;
text-align: center;
}
.title {
font-weight: bold;
font-size: 2em;
text-align: center;
margin-bottom: 20px;
}
input[type=file], input[type=text], input[type=number] {
width: 100%;
padding: 12px 20px;
margin: 8px 0;
box-sizing: border-box;
}
.switch {
position: absolute;
top: 10px;
right: 10px;
display: inline-block;
width: 60px;
height: 34px;
}
/* Button Styles */
button {
background-color: #007BFF;
color: white;
border: none;
padding: 10px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 4px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
button:hover {
background-color: #0056b3;
color: white;
}
/* Dark Theme Styles */
body.dark-theme {
background-color: #121212;
color: #eee;
}
button.dark-theme {
background-color: #809fff;
color: #121212;
}
button.dark-theme:hover {
background-color: #5664d1;
color: #121212;
}
/* Toggle Switch Styles */
.switch {
position: relative;
display: inline-block;
width: 60px;
height: 34px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 26px;
width: 26px;
left: 4px;
bottom: 4px;
background-color: white;
transition: .4s;
}
input:checked + .slider {
background-color: #2196F3;
}
input:checked + .slider:before {
transform: translateX(26px);
}
/* Responsive Styles */
@media screen and (max-width: 600px) {
.container {
padding: 10px;
}
}