html, body {
    height: 100%;
    overflow: hidden; /* Prevent overall page scrolling */
    margin: 0;
    padding: 0;
}

body {
    font-family: sans-serif;
    background-color: #222; /* Dark background */
    color: #eee; /* Light text */
}

/* Scrollbar styling for WebKit browsers */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #444; /* Darker track */
}

::-webkit-scrollbar-thumb {
    background: #666; /* Even darker thumb */
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #888;
}

.container {
    width: 80%;
    margin: 0 auto; /* Remove top/bottom margin to allow full height */
    background: #333; /* Slightly lighter dark background for container */
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Darker shadow */
    height: 100%; /* Make container take full viewport height */
    display: flex;
    flex-direction: column;
    box-sizing: border-box; /* Include padding in height calculation */
    position: relative; /* For positioning children */
}

.top-right-logout {
    position: absolute;
    top: 10px;
    right: 10px;
}

.create-new-password-option {
    text-align: center;
    margin-top: 20px;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #eee; /* Light text for headings */
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
    color: #eee; /* Light text for labels */
}

input[type="text"],
input[type="password"],
input[type="email"],
select {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #555; /* Darker border */
    border-radius: 3px;
    background-color: #444; /* Darker input background */
    color: #eee; /* Light text in inputs */
}

button {
    padding: 10px;
    background-color: #007bff; /* A blue for buttons */
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

button[onclick^="togglePasswordVisibility"] {
    max-height: 38px;
    max-width: 50px;
    margin-left: 5px;
    background-color: #555; /* Darker background for toggle button */
    color: #eee; /* Light icon color */
}

button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

.error {
    color: #ff6b6b; /* Red for errors */
    text-align: center;
    margin-bottom: 15px;
}

.success {
    color: #6bff6b; /* Green for success */
    text-align: center;
    margin-bottom: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    flex-grow: 1; /* Allow table to grow and take available space */
    overflow-y: auto; /* Enable vertical scrolling for the table */
    display: block; /* Required for overflow-y to work with table */
}

table, th, td {
    border: 1px solid #555; /* Darker table borders */
}

th, td {
    padding: 12px;
    text-align: left;
}

td button[onclick^="copyToClipboard"] {
    float: right;
    margin-left: 10px;
    padding: 5px 8px;
    font-size: 0.8em;
    background-color: #3c3b3b; /* Darker background for copy button */
    color: #eee; /* Light icon color */
}

th {
    background-color: #444; /* Darker table header background */
    color: #eee; /* Light text for table headers */
}

a {
    color: #88bbee; /* Lighter blue for links */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.notification {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #555; /* Darker notification background */
    color: #fff;
    padding: 15px;
    border-radius: 5px;
    z-index: 1000;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .container {
        width: 100%;
        margin: 0 auto;
        padding: 15px;
        height: 100%; /* Ensure full height on mobile */
    }

    table {
        overflow-x: auto; /* Enable horizontal scrolling for tables */
        white-space: nowrap; /* Prevent text wrapping in table cells */
    }

    th, td {
        min-width: 120px; /* Ensure minimum width for table cells */
    }

    /* Adjust form elements for better stacking on small screens */
    form {
        flex-direction: column;
    }

    input[type="text"],
    input[type="password"],
    input[type="email"],
    select {
        width: 100%;
        box-sizing: border-box; /* Include padding and border in the element's total width */
    }

    button {
        width: 100%;
        box-sizing: border-box;
    }

    .notification {
        width: 90%;
        left: 5%;
        transform: translateX(0%);
    }
}