/* General body styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* Container general */
.container {
    padding: 100px 20px 20px;
    text-align: center;
    box-sizing: border-box;
}

/* Titles and Inputs */
h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
    text-align: center;
}

/* Form container for login and account pages */
.form-container {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin: 20px auto; /* Center the form */
    box-sizing: border-box;
}

input[type="text"], input[type="password"], input[type="email"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #218838;
}

p {
    margin-top: 15px;
    text-align: center;
}

.error {
    color: red;
    text-align: center;
}

/* Navbar for the dashboard and account pages */
.navbar {
    background-color: #333;
    overflow: visible; /* Ensure dropdowns are not clipped */
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000; /* Ensure navbar is above other content */
    align-items: center;
    box-sizing: border-box;
}

/* Adjusting the size of the logo */
.navbar .left-side {
    display: flex;
    align-items: center;
}

.navbar .left-side img {
    height: 30px; /* Adjust the size of the icon */
    margin-right: 10px;
}

.navbar .left-side span {
    color: white; /* Make the text white */
    font-size: 10px;
    line-height: 30px; /* Vertically align with the logo */
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 14px 20px;
    display: block;
}

.navbar a:hover {
    background-color: #575757;
}

.menu-item {
    position: relative;
    display: inline-block;
    margin-left: 20px;
}

.menu-item.has-dropdown > a::after {
    content: " ▼";
    font-size: 0.8em;
}

/* Dropdown styling */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 2000; /* Ensure dropdown is always above other content */
    min-width: 160px;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.menu-item:hover .dropdown-content {
    display: block;
}

/* Dashboard specific styles */
.welcome {
    margin: 20px 0;
    font-size: 24px;
    font-weight: bold;
}

.content-divs {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    flex-wrap: wrap;
}

.content-div {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    width: 30%;
    padding: 20px;
    margin: 10px;
    min-width: 250px;
    flex-grow: 1;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar a {
        padding: 10px;
    }

    .dropdown-content {
        position: relative;
        box-shadow: none;
        min-width: 100%;
    }

    .content-divs {
        flex-direction: column;
    }

    .content-div {
        width: 90%; /* Ensure divs take up more space on mobile */
        margin: 10px auto; /* Center the divs on mobile */
    }

    .form-container {
        width: 90%; /* Ensure form container fits well on mobile */
        padding: 20px; /* Adjust padding for smaller screens */
    }
}
