/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    overflow-y: scroll;
}
body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    margin: 0;
    padding: 0;
}

header, main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

/* Header Styles */
header {
    background-color: #007BFF;
    color: #fff;
    padding: 20px;
    text-align: center;
}

header h1 {
    margin: 0;
}

/* Home Screen Styles */
.home-screen {
    display: flex;
    flex-direction: column;
}

.search-bar {
    margin-bottom: 20px;
}

.search-bar input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
}

.recent-activities {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-activities li {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 10px;
}

.recent-activities .activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recent-activities .activity-item .check-in,
.recent-activities .activity-item .check-out {
    font-size: 12px;
    color: #888;
}

/* QR Scanner Screen Styles */
.scanner-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scanner-screen .camera-view {
    border: 2px dashed #007BFF;
    border-radius: 5px;
    width: 100%;
    max-width: 400px;
    height: 300px;
    background-color: #fff;
    margin-bottom: 20px;
}

.scanner-screen .buttons {
    margin-bottom: 10px;
}

.scanner-screen .buttons button {
    background-color: #007BFF;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
}

.scanner-screen .buttons button:hover {
    background-color: #0056b3;
}

.scanner-screen .manual-entry {
    margin-top: 20px;
}

.scanner-screen .manual-entry input {
    padding: 10px;
    font-size: 16px;
    width: 100%;
    max-width: 300px;
}

/* styles.css */
.active {
    background-color: green;
    color: white;
}

.inactive {
    background-color: red;
    color: white;
}


/* Check-In/Check-Out Confirmation Screen Styles */
.confirmation-screen {
    text-align: center;
}

.confirmation-screen .message {
    font-size: 18px;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 10px;
}

.confirmation-screen .details {
    margin-bottom: 20px;
}

.confirmation-screen .details p {
    margin: 5px 0;
}

/* Log Screen Styles */
.log-screen {
    display: flex;
    flex-direction: column;
}

.log-screen .search-bar {
    margin-bottom: 20px;
}

.log-screen .search-bar input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
}

.log-screen .filter {
    margin-bottom: 20px;
}

.log-screen .filter select {
    padding: 10px;
    font-size: 16px;
}

.log-screen .visitor-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.log-screen .visitor-list li {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 10px;
}

/* Footer Styles */
footer {
    background-color: #007BFF;
    color: #fff;
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
}

footer .nav-button {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

footer .nav-button:hover {
    text-decoration: underline;
}
