body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between buttons */
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #007BFF;
    color: white;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

header {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* No zoom on input focus */
input, select, textarea {
    font-size: 16px; /* Ensures no zooming on focus */
}


/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
    color: #333;
}

section {
    max-width: 1200px;
    margin: 10px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #4a4a4a;
    margin-bottom: 20px;
}

h2 {
    color: #4a4a4a;
}

/* Select and Input Styles */
select, 
input[type="text"], 
input[type="password"], /* 🔥 Add this */
input[type="date"],
input[type="time"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 16px;
}

button:disabled {
    background-color: #cccccc; /* Light gray background */
    color: #666666; /* Dark gray text */
    cursor: not-allowed; /* Show not-allowed cursor */
    box-shadow: none; /* Remove shadow */
    opacity: 0.7; /* Slightly transparent */
}

button:disabled:hover {
    background-color: #cccccc; /* Keep the same background on hover */
    color: #666666; /* Keep the same text color on hover */
    cursor: not-allowed; /* Show not-allowed cursor */
}


select:focus, input[type="text"]:focus, input[type="date"]:focus {
    border-color: #007bff;
    outline: none;
}

input[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

input[type="submit"]:hover {
    background-color: #0056b3;
}

/* Payment Period Dropdown */
#divPaymentPeriod {
    margin-bottom: 20px;
}

/* Hours Section */
#divHours {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Previous Hours Table */
#prevHours {
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    border: none;
}

th, td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    border-right: none;
    border-left: none;
}

th {
    background-color: #007bff;
    color: white;
}

tr:hover {
    background-color: #f1f1f1;
}

/* Overview Section */
#divOverview {
    margin-top: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

table{
    margin-top: 10px;
}

th {
    background-color: #007bff;
}

td {
    text-align: center;
}

#tableOverview th {
    background-color: #007bff;
}

/* General Header Styles */
header {
    background-color: #007bff;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Navigation Bar */
nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation List */
.nav-list {
    list-style: none;
    display: flex;
    align-items: center; /* Ensures vertical centering */
    justify-content: space-between;
    margin: 0;
    padding: 0;
}

/* Navigation Items */
.nav-item {
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center; /* Keeps items vertically centered */
}

/* Right-side container (User info & Logout button) */
.nav-right {
    display: flex;
    align-items: center; /* Ensures vertical centering */
    gap: 15px; /* Space between dropdown and logout button */
}

/* Dropdown Button */
.dropbtn {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    padding: 8px 15px;
    font-size: 16px;
    border-radius: 5px;
    transition: background 0.3s;
}

.dropbtn:hover {
    background-color: #0056b3;
}

/* Dropdown Container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 150px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    border-radius: 5px;
    overflow: hidden;
}

/* Style Dropdown Links */
.dropdown-content a {
    display: block;
    color: #333;
    padding: 10px 15px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* Show Dropdown on Hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Logout Button */
.nav-right form button {
    background-color: #083d75;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.nav-right form button:hover {
    background-color: #0056b3;
}



/* Login Page */
.login-container {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center align all elements inside */
    justify-content: center; /* Center elements vertically inside */
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 400px; /* Reduce width for a better look */
    width: 100%;
    text-align: center; /* Center text content */
}

/* Ensure input fields and button align properly */
.login-container form {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center elements horizontally */
    width: 100%;
}


.login-container h2 {
    margin-bottom: 20px;
}

.login-container button {
    width: 70%;
    padding: 10px;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    transition: all 0.2s ease;
}


.login-container button:hover {
    background-color: #056ad5;
    border-radius: 30px;
    font-size: 16px;
}

.error-message {
    color: red;
    margin-bottom: 20px;
}

.create-user-btn {
    background-color: #59c370 !important;
    margin-top: 15px !important;
}

.create-user-btn:hover {
    background-color: #59a569 !important;
    margin-top: 15px !important;
}

/* Back Button in Header */
.back-btn {
    background-color: #0467d0;; /* Neutral gray */
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.back-btn:hover {
    background-color: #022b4a;
}

/* Button */
button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
}

button:hover {
    background-color: #0056b3;
    border-radius: 8px;
}


/* Responsive Design */
@media (max-width: 600px) {
    body {
        padding: 10px;
        font-size: 11px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }


    select, input[type="text"], input[type="date"], input[type="password"] {
        font-size: 14px;
        padding: 8px;
        width: 90%;
    }

    button {
        font-size: 12px;
        max-width: 150px;

    }

    input[type="text"][name="description"] {
        width: 94%;
    }

    input[type="submit"] {
        font-size: 14px;
        padding-top: 0px;
        padding-bottom: 0px;
        padding-left: 10px;
        padding-right: 10px;
    }

    th, td {
        font-size: 11px;
        padding: 8px;
    }

    th {
        text-align: center;
    }

    #divHours, #divOverview {
        padding: 15px;
    }

    form[action='logout.php'] button[type='submit'], 
    .nav-item {
        font-size: 14px;
    }

}
