body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f9f9f9;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}
.dark-mode {
    background-color: #333;
    color: #f9f9f9;
}
h1 {
    text-align: center;
}
form {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
input {
    padding: 10px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    flex: 1;
    max-width: 200px;
}
button {
    padding: 10px 20px;
    border: none;
    color: #fff;
    background: #007bff;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}
button:hover {
    background-color: #0056b3;
}
.dark-mode button {
    background-color: #0056b3;
    color: #fff;
}
.dark-mode button:hover {
    background-color: #007bff;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
th, td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}
th {
    background-color: #f4f4f4;
}
tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}
.dark-mode th {
    background-color: #555;
}
.dark-mode tbody tr:nth-child(odd) {
    background-color: #444;
}
#result-count {
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.2em;
}
.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}
.dark-mode .dark-mode-toggle {
    background: #0056b3;
}