* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

form label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.tile-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tile {
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
    text-align: left;
}

.tile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tile h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #007bff;
}

.tile p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #555;
}

.tile .label {
    font-weight: bold;
    color: #333;
}

a.button {
    display: inline-block;
    padding: 8px 15px;
    margin: 5px 0;
    font-size: 0.9rem;
    text-decoration: none;
    color: white;
    background-color: #007bff;
    border-radius: 4px;
    text-align: center;
    transition: background-color 0.3s ease;
}

a.button:hover {
    background-color: #0056b3;
}

.readings {
    background-color: #f5f5f5;
    border-left: 6px solid #007bff;
    position: fixed;
    font-size: x-small;
    top: 1px;
    left: 10px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.readings-value {
    font-size: small;
    font-weight: bold;
}

.version {
    background-color: #f8f9fa;
    border: 1px solid #6c757d;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 0.75rem;
    color: #495057;
    position: fixed;
    bottom: 10px;
    right: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: left;
    max-width: none;
    display: flex;
    gap: 10px;
    align-items: center;
}

.version p {
    margin: 0;
    display: inline;
}

.hardware-info {
    background-color: #f8f9fa;
    border: 1px solid #6c757d;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 0.75rem;
    color: #495057;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: left;
    max-width: none;
    align-items: center;
}

.hardware-info p {
    margin: 0;
    display: block;
}

.hardware-info label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

#navigation-menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #007bff;
    padding: 1px 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

#navigation-menu a {
    color: white;
    text-decoration: none;
    padding: 1px 5px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

#navigation-menu a:hover {
    background-color: #0056b3;
}

#navigation-menu a.selected {
    background-color: #0056b3;
    font-weight: bold;
    color: white;
}

#navigation-menu form {
    display: inline-block;
    margin: 0;
}

#navigation-menu select {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#navigation-menu button {
    padding: 5px 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#navigation-menu button:hover {
    background-color: #1e7e34;
}

.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

.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: 0.4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: '';
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #007bff;
}

input:checked+.slider:before {
    transform: translateX(14px);
}

#actions-panel {
    max-width: 150px;
    margin: 0rem 0rem;
    padding: 0.5rem;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

#actions-panel .button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    margin-bottom: 1.5rem;
}

#actions-panel .button {
    padding: 0.75rem 1rem;
    margin: 0 3px;
    background-color: #007BFF;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

#actions-panel .button:hover {
    background-color: #0056b3;
}

#actions-panel form {
    margin-top: 1.5rem;
}

#actions-panel label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

#actions-panel select {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

button[type='submit'] {
    padding: 0.25rem;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#actions-panel button[type='submit']:hover {
    background-color: #1e7e34;
}

.info {
    font-size: 0.9rem;
    color: #555;
    margin-top: 5px;
    margin-bottom: 15px;
    padding: 5px 10px;
    background-color: #e9ecef;
    border-left: 4px solid #007bff;
    border-radius: 4px;
}

.edit-settings-button {
    display: block;
    margin-top: 5px;
    padding: 4px 8px;
    font-size: 0.75rem;
    text-decoration: none;
    color: white;
    background-color: #28a745;
    border-radius: 4px;
    text-align: center;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.edit-settings-button:hover {
    background-color: #218838;
}

.form-control {
    margin-bottom: 15px;
    padding: 10px;
    width: 100%;
    max-width: 400px;
}

.esp-info {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
}

.esp-info h2 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #007bff;
}

.esp-info p {
    margin: 5px 0;
    line-height: 1.5;
    display: block;

}

.esp-info .label {
    font-weight: bold;
    color: #555;
}

.plugin-info {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 10px;
    color: #888;
    font-family: Arial, sans-serif;
}