body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background: #b9b9b9;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

.container {
    width: 80%;
    max-width: 1300px; /* Increase max-width for larger screens */
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

button {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 0.7rem 1.2rem;
    cursor: pointer;
    border-radius: 3px;
}

button:hover {
    background: #92e4fd;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav li {
    display: inline;
    margin-right: 10px;
}

.menu-toggle {
    display: none;
}

@media (max-width: 600px) {
    nav ul {
        display: none;
        flex-direction: column;
    }

    nav li {
        display: block;
        margin: 10px 0;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
    }
}

/* Add styles to size the logo */
.logo {
    width: 75px;
    height: 75px;
}

.logoff-button {
    background: #d9534f;
    color: #fff;
}

.logoff-button:hover {
    background: #c9302c;
}

table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
}

table th, table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd; /* Add this line to create gridlines */
}

table th {
    background-color: #f2f2f2;
    text-align: center;
    background-color: #f4f4f4;
}

table td {
    text-align: center;
}

table img {
    vertical-align: middle;
    width: 72px !important;
    height: 72px !important;
    max-width: none !important;
    max-height: none !important;
}

table.dataTable img {
    vertical-align: middle;
    width: 72px !important;
    height: 72px !important;
    max-width: none !important;
    max-height: none !important;
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a {
    margin: 0 5px;
    padding: 10px 15px;
    text-decoration: none;
    border: 1px solid #ddd;
    color: #007bff;
}

.pagination a:hover {
    background-color: #f4f4f4;
}

.gauges {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.gauge {
    flex: 1 1 20%;
    max-width: 20%;
    text-align: center;
    padding: 1rem;
    box-sizing: border-box;
}

.gauge canvas {
    width: 100%;
    height: auto;
}

.signup-form {
    margin-top: 4rem;
}

.signup-form .form-label {
    display: block;
    margin-bottom: 0.5rem;
}

.signup-form .form-control,
.signup-form .form-check-input {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.signup-form .btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 0.7rem 1.2rem;
    cursor: pointer;
    border-radius: 3px;
}

.signup-form .btn:hover {
    background-color: #0056b3;
}

.signup-form .invalid-feedback {
    color: #dc3545;
    display: none;
}

.signup-form .form-control:invalid + .invalid-feedback,
.signup-form .form-check-input:invalid + .invalid-feedback {
    display: block;
}

.signup-form .form-check-input {
    width: 20px;
    height: 20px;
}

.form-check-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-form {
    margin-left: 200px;
}

.expand-icon {
    width: 15px;
    height: 15px;
    margin-left: 10px;
    vertical-align: middle;
}

.title {
    color: red;
}

footer {
    text-align: center;
    padding: 1rem 0;
    background: #b9b9b9;
    color: #fff;
}

.footer {
    text-align: center;
    padding: 1rem 0;
    background: #b9b9b9;
    color: #fff;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.footer p {
    text-align: center;
}

.footer-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.footer-buttons .btn {
    margin: 0 5px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group select, .form-group input, .form-group button {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
}

.table-container {
    margin-top: 20px;
}

.status-icon {
    width: 20px;
    height: 20px;
}

.action-icons img {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.action-icons i {
    font-size: 1.2rem;
    margin-right: 10px;
    cursor: pointer;
}

/* Ensure tooltips are not hidden by other elements */
.tooltip {
    z-index: 1050;
}

/* Responsive styles */
@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 10px;
    }

    .form-group select, .form-group input, .form-group button {
        padding: 8px;
    }

    th, td {
        padding: 8px;
    }

    .pagination a {
        padding: 8px 10px;
    }
}
