body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #4e4e4e;
    color: #ffffff;
    width: 100%; /* Ensure body spans the full width */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}


header {
    color: #fff;
    text-align: center;
}

.head_name {
    display: none;
}

nav {
    background: rgba(78, 78, 78, 0.4);
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    top: 10px;
    left: 16px;
    margin-bottom: 20px;
    position: relative;
    z-index: 10; /* Ensure nav is above other elements */
    
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    width: 92%; /* Ensure nav spans the full width */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}


.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger-menu .line {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.nav-links {
    display: flex;
    justify-content: center;
    background: rgba(78, 78, 78, 0.4);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    align-items: center;
    z-index: 20; /* Ensure nav-links are above other elements */
}

.nav-links a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease, background-color 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-links a:hover {
    color: #333;
    background-color: rgba(226, 210, 193, 0.5);
}

.nav-links a.active {
    background-color: rgba(133, 89, 42, 0.5);
    color: #fff;
    font-weight: 700;
}

nav h2 {
    display: none;
}

/* Default styles for larger screens */
.loginform {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(51, 51, 51, 0.4);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.loginform input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    font-size: 16px;
    border: 1px solid rgba(204, 204, 204, 0.7);
    border-radius: 4px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.5);
    color: #333;
}

.loginform button {
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    font-size: 16px;
    background-color: rgba(133, 89, 42, 0.5);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.loginform button:hover {
    background-color: rgba(226, 210, 193, 0.5);
    color: #333;
}

/* Styles for mobile devices */
@media (max-width: 600px) {
    .loginform {
        max-width: 90%;
        margin: 10px auto;
        padding: 15px;
    }

    .loginform input,
    .loginform button {
        font-size: 14px;
        padding: 8px;
    }

    .loginform button {
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background: rgba(78, 78, 78, 0.411);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 8px 8px 8px 8px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        z-index: 9999; /* Ensure it is above other elements */
    }

    .nav-links.show {
        display: flex;
    }

    .burger-menu {
        display: flex;
    }

    .nav-links a {
        margin: 10px 0;
        padding: 15px;
        width: 100%;
        text-align: center;
    }

    header h1 {
        display: none;
    }
    nav h2 {
        display: block;
        padding: 0;
        margin: 0;
    }

    .nav-links a.active {
        width: 80%;
        border-radius: 8px 8px 8px 8px;
        /* border: 1px solid rgba(255, 255, 255, 0.18); */
    }
}

main {
    padding: 20px;
    background-color: #4e4e4e;
}

form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(51, 51, 51, 0.4);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* border: 1px solid rgba(255, 255, 255, 0.18); */
    align-items: center;
}

form h2 {
    margin-top: 0;
}

form div {
    margin-bottom: 15px;
}

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

form input,
form select,
form textarea {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.5);
    color: #333;
    border: 1px solid rgba(204, 204, 204, 0.7);
    border-radius: 4px;
}

form button {
    width: 100%;
    padding: 10px;
    background-color: rgba(133, 89, 42, 0.5);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

form button:hover {
    color: #333;
    background-color: rgba(226, 210, 193, 0.5);
}

.error {
    color: red;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: rgba(78, 78, 78, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
}

table,
th,
td {
    border: 1px solid rgba(204, 204, 204, 0.7);
}

th,
td {
    padding: 10px;
    text-align: left;
    backdrop-filter: blur(10px);
}

th {
    background-color: rgba(244, 244, 244, 0.5);
}

/* Alternating row colors for table */
table tr:nth-child(odd) {
    background-color: rgba(78, 78, 78, 0.4);
    color: white;
}

table tr:nth-child(even) {
    background-color: rgba(56, 55, 55, 0.4);
    color: white;
}

/* Patrolling */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.overlay button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: rgba(0, 123, 255, 0.5);
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.overlay button:hover {
    background-color: rgba(0, 86, 179, 0.5);
}

.hidden {
    display: none;
}

.camera-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(0, 123, 255, 0.5);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

.camera-button:hover {
    background-color: rgba(0, 86, 179, 0.5);
}

.camera-button input[type="file"] {
    display: none;
}

.checkbox-buttons label {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(0, 123, 255, 0.5);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    margin: 5px;
    transition: background-color 0.3s ease;
}

.checkbox-buttons label:hover {
    background-color: rgba(0, 86, 179, 0.5);
}

.checkbox-buttons input[type="checkbox"] {
    display: none;
}

.checkbox-buttons input[type="checkbox"]:checked + label {
    background-color: rgba(0, 86, 179, 0.5);
}

.success-message {
    color: green;
    font-weight: bold;
    margin-bottom: 20px;
}

.error-message {
    color: red;
    font-weight: bold;
    margin-bottom: 20px;
}

.progress-bar-container {
    margin-top: 20px;
    width: 100%;
    background-color: rgba(243, 243, 243, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 5px;
}

.progress-bar {
    width: 0;
    height: 20px;
    background-color: rgba(0, 123, 255, 0.5);
    text-align: center;
    color: rgb(255, 255, 255);
    line-height: 20px;
}

.autocomplete {
    position: relative;
    display: inline-block;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid rgba(212, 212, 212, 0.7);
    border-bottom: none;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid rgba(212, 212, 212, 0.7);
}

.autocomplete-items div:hover {
    background-color: rgba(233, 233, 233, 0.5);
}

.autocomplete-active {
    background-color: rgb(119, 119, 119) !important;
    color: #ffffff;
}

.name-error {
    color: red;
    font-weight: bold;
}

#patrol_name {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.patrol_reports {
    padding: 10px;
    border: none;
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    table-layout: fixed;
    background: rgba(78, 78, 78, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
}

.patrol_reports th {
    color: #333;
    border: none;
    vertical-align: middle;
    text-align: center;
    word-wrap: break-word;
}

.patrol_reports td {
    border: none;
    vertical-align: middle;
    text-align: center;
    word-wrap: break-word;
}

.patrol_reports tr:nth-child(odd) {
    background-color: rgba(78, 78, 78, 0.4);
    color: white;
}

.patrol_reports tr:nth-child(even) {
    background-color: rgba(56, 55, 55, 0.4);
    color: white;
}

.patrol_button {
    width: 100%;
    padding: 5px;
    background-color: rgba(133, 89, 42, 0.5);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
    outline: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

