body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

header {
    background-color: #343a40;
    color: white;
    padding: 10px 0;
}

header h1 {
    font-size: 2rem; /* Adjust the font size for YoAnalytics */
    margin: 0;
}

header nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px; /* Adjust the margin to spread the tabs */
}

footer {
    background-color: #343a40;
    color: white;
    padding: 10px 0;
}

footer .logo-small,
header .logo-small {
    width: 50px;
    height: 50px;
}

.jumbotron {
    background-color: #e9ecef;
    padding: 2rem 1rem;
    border-radius: .3rem;
    text-align: center;
}

#chart-container {
    position: relative;
    height: 40vh;
    width: 100%;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header .container nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    header nav a {
        display: block;
        margin: 10px 0;
    }

    .logo-small {
        margin-bottom: 10px;
    }

    #chart-container {
        height: 30vh;
    }
}

html, body {
    height: 100%;
}

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

.container {
    flex: 1;
}

footer {
    text-align: center;
    padding: 1em 0;
    background: #f8f9fa;
}
.form-container {
    width: 300px;
    margin: 50px auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

/* Form field styling */
.form-container label {
    display: block;
    margin: 15px 0 5px;
}
.form-container input[type="text"],
.form-container input[type="password"],
.form-container input[type="email"] {
    width: 100%;
    padding: 8px;
    margin: 5px 0 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Submit button */
.form-container button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.form-container button:hover {
    background-color: #45a049;
}

.change-password-form {
    display: none; /* Hidden by default */
    margin-top: 20px;
}

/* Close Button */
.close-btn {
    display: block;
    margin: 10px auto 0;
    padding: 0.5rem 1rem;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    width: 70%;
}

.close-btn:hover {
    background-color: #c0392b;
}


/* User Profile Panel */
.user-profile {
    position: fixed;
    top: 0;
    right: -100%; /* Fully off-screen */
    background-color: #ffffff;
    padding: 20px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px 0 0 8px; /* Rounded left corners */
    width: 100%; /* Full width for smaller devices */
    max-width: 300px; /* Limit max width */
    height: 100%;
    z-index: 1050;
    transition: all 0.3s ease-in-out; /* Smooth slide-in/out */
}

/* User Profile Visible State */
.user-profile.open {
    right: 0; /* Slide in from right */
}

/* Close Button */
.close-btn {
    display: block;
    margin: 10px auto 0;
    padding: 0.5rem 1rem;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    width: 70%;
}

.close-btn:hover {
    background-color: #c0392b;
}

/* Users Tab Button */
.users-tab {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1051;
    transition: background-color 0.3s ease; /* Smooth transition */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Add shadow for better visibility */
}

/* Hover Effect */
.users-tab:hover {
    background-color: #45A049;
}

