body {
    font-family: monospace;
    background: #2c2c2c; /* Fallback color */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* here to make bg relative */
    margin: 0;
    color: #fff;
    position: relative;
    overflow-y: auto; /* Enable vertical scrolling */
    font-size: 16px;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/bg.png') no-repeat center center/cover;
    opacity: 0.1; /* 50% opacity */
    z-index: -1; /* Ensure it is behind other content */
}

.container {
    text-align: center;
    position: relative; /* Ensure it is above the background */
    z-index: 1;
    width: 100%; /* Ensure it takes full width */
    max-width: 400px; /* Limit the max width */
    padding: 0 20px; /* Add some horizontal padding */
    box-sizing: border-box; /* Include padding in width calculation */
}

.form-box {
    background: #3a3a3a; /* Slightly lighter grey for contrast */
    padding: 20px; /* Reduce padding */
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}

.form-group {
    margin-bottom: 15px;
    text-align: left; /* Align text to the left for labels */
}

label {
    display: block;
    font-weight: bold;
    color: #ccc; /* Light grey text */
}

input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #555; /* Darker grey border */
    border-radius: 4px;
    background: #2c2c2c; /* Dark grey background */
    color: #fff; /* White text */
    transition: border-color 0.3s ease; /* Smooth transition */
    box-sizing: border-box; /* Include padding in width calculation */
}

input:focus {
    border-color: #007BFF; /* Blue border on focus */
    outline: none;
}

button {
    background: #007BFF;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease; /* Smooth transition */
    width: 100%; /* Full width button */
}

button:hover {
    background: #0056b3;
    transform: translateY(-2px); /* Slight lift on hover */
}

p a {
    color: #007BFF;
    text-decoration: none;
    transition: color 0.3s ease; /* Smooth transition */
}

p a:hover {
    color: #0056b3;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .form-box {
        padding: 15px; /* Further reduce padding for smaller screens */
        max-width: 90%; /* Use a percentage to ensure it fits within the screen */
    }
}

/* Scrollable Navigation Bar */
.scrollable-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #1a1a1a; /* Dark background */
    padding: 10px 0;
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 2px solid #444; /* Separator line */
    z-index: 10; /* Ensure it stays on top of other elements */
    display: flex;
    justify-content: center; /* Center the nav links */
}

.scrollable-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.scrollable-nav ul li {
    margin-right: 20px;
    flex-shrink: 0; /* Prevent items from shrinking */
}

.scrollable-nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    background: #333; /* Button background */
    transition: background 0.3s ease;
}

.scrollable-nav ul li a:hover {
    background: #555; /* Hover effect */
}

/* Add padding to the main content to avoid overlap with the fixed nav */
.dashboard-container {
    padding-top: 60px; /* Adjust for the height of the navigation bar */
}
