/* General Body Styling */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #1a1a1a; /* Darker background */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Login and Add User Container */
.form-container, .login-container {
    background-color: #2b2b2b; /* Softer dark gray background */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

/* Shared Logo Styling */
.logo, .login-container img {
    width: 100%;
    max-width: 300px;
    margin-bottom: 20px;
}

/* Form Header */
h1 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #ffffff;
}

/* Form Layout */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Form Group */
.form-group {
    margin-bottom: 15px;
    text-align: left;
    width: 100%;
}

/* Label Styling */
label {
    margin-bottom: 5px;
    font-size: 14px;
    color: #cccccc; /* Lighter gray for labels */
    display: block;
}

/* Input Field Styling */
input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #555; /* Softer border */
    border-radius: 5px;
    margin-bottom: 10px;
    box-sizing: border-box;
    background-color: #3b3b3b; /* Softer gray field background */
    color: #ffffff; /* Light text for contrast */
}

/* Input Focus Styling */
input:focus {
    border-color: #5a9bd4; /* Soft blue on focus */
    outline: none;
}

/* Button Styling */
button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    color: white;
    background-color: #5a9bd4; /* Softer blue */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Button Hover Effect */
button:hover {
    background-color: #4a89c2; /* Darker blue on hover */
}

/* Logout and Manage Users Buttons */
#logout-container {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px; /* Add space between buttons */
    z-index: 10;
}

.logout-button,
.manage-users-button {
    padding: 10px 20px;
    color: white;
    background-color: #5a9bd4; /* Softer blue */
    border-radius: 5px;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.logout-button:hover {
    background-color: #e74c3c; /* Softer red for logout */
}

.manage-users-button:hover {
    background-color: #4a89c2; /* Darker blue for hover */
}

/* Manage Users Container */
.manage-users-container {
    width: 90%;
    max-width: 1200px;
    background-color: #2b2b2b; /* Softer dark gray */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin: 20px auto; /* Center it on the page */
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px; /* Space before the button */
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #555; /* Softer gray border */
}

th {
    background-color: #5a9bd4; /* Softer blue for table header */
    color: white;
}

tr:hover {
    background-color: #3b3b3b; /* Softer hover color */
}

/* Actions Section */
.actions {
    text-align: right; /* Align the button to the right */
    margin-top: 20px; /* Add space above the button */
}

/* Button Styling for Tables */
.btn {
    padding: 10px 20px;
    color: white;
    background-color: #5a9bd4; /* Softer blue */
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s ease;
    font-size: 16px; /* Make it look like a button */
    font-weight: bold; /* Emphasize text */
}

.btn:hover {
    background-color: #4a89c2; /* Darker blue on hover */
}

/* Action Button for Users */
.delete-icon {
    color: #e74c3c; /* Soft red for delete icon */
    font-size: 18px;
    text-decoration: none;
    margin-left: 10px;
}

.delete-icon:hover {
    color: #c0392b; /* Darker red on hover */
}

.error {
    color: #e74c3c; /* Soft red for error text */
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 10px;
}

/* Header Container Styling */
#header-container {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px; /* Space between the buttons */
    z-index: 10;
}

/* Header Buttons Styling */
.header-btn {
    background-color: #2b2b2b;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.header-btn:hover {
    background-color: #4a89c2; /* Slightly darker blue on hover */
    color: white;
}

/* Video Feed Styling */
#video-feed {
    width: 100%; /* Ensure it spans the full width of the browser */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove inline-block space around the image */
    object-fit: cover; /* Ensure the video fills the width while maintaining aspect ratio */
    overflow: hidden; /* Prevent overflow if necessary */
}

/* Media Query for Smaller Screens */
@media (max-width: 768px) {
    #video-feed {
        width: 100vw; /* Ensure it takes up the full viewport width */
        height: 100vh; /* Make it fit the full viewport height */
        object-fit: contain; /* Adjust to ensure the entire video fits within the viewport */
    }

    body {
        overflow: hidden; /* Prevent scrolling on smaller devices */
    }
}