html, body {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    margin: 0;
    padding: 0;
    background: url('https://images.lucande.io/galleries//background/pexels-tim-mossholder-3612932.jpg') no-repeat center center fixed;
    background-size: cover;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.top-bar {
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px); /* Apply blur effect */
    color: white;
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.logo {
    flex: 1;
    text-align: center;
    font-size: 24px;
}

.logo img {
    height: 50px;
}

.dropdown {
    position: relative;
}

.dropbtn {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    width: 250px;
    padding: 10px 20px; /* Explicit padding */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    justify-content: center; /* Center the display name */
    align-items: center; /* Vertically center the items */
    position: relative;
}

.dropbtn .fa-user {
    position: absolute;
    left: 20px; /* Adjust this value as needed */
}


.dropdown-content {
    display: none;
    position: absolute;
    width: 250px;
    background-color: white;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    z-index: 1;
    right: 0; /* Adjusted to ensure it stays within the page */
    box-sizing: border-box;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #3e8e41;
    border-radius: 5px;
}

.main-container {
    display: flex;
    margin-top: 80px;
    padding: 20px;
    box-sizing: border-box;

    flex: 1;
    flex-direction: row;
    align-items: flex-start; /* Ensure children don't stretch to each other's height */
}

/* Wrapper for the left side (sidebar) */
.left-side {
    width: 25%;
    padding-right: 20px;
}

/* Wrapper for the right side (menu + content) */
.right-side {
    width: 75%;
    display: flex;
    flex-direction: column; /* Stack main menu on top of content */
    gap: 20px; /* Space between main menu and content */
}

.content {
    width: 100%;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px); /* Apply blur effect */
    color: white;
    box-sizing: border-box;
    border-radius: 5px;
}

.sidebar {
    width: 100%;
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
}

footer {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px); /* Apply blur effect */
    color: white;
    padding: 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}


.fancy-header {
    font-family: 'Jacquard 24', system-ui;
    font-size: 3em; /* Adjusted font size */
    font-weight: bold; /* Added font weight */
    text-align: center;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7); /* Adjusted shadow */
    -webkit-font-smoothing: antialiased; /* Added anti-aliasing */
    -moz-osx-font-smoothing: grayscale; /* Added anti-aliasing */
    position: relative;
    margin-top: 0px;
    margin-bottom: 40px;
    padding: 20px 0;
    background:
        linear-gradient(to right, transparent, rgba(0, 0, 255, 0.5) 25%, rgba(0, 0, 255, 0.5) 75%, transparent),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 10 10"><rect width="5" height="5" fill="rgba(0,0,255,0.2)"/><rect x="5" y="5" width="5" height="5" fill="rgba(0,0,255,0.2)"/></svg>');
    background-size: cover, 10px 10px;
    background-repeat: no-repeat, repeat;
    border-top: 2px solid white;
    border-bottom: 2px solid white;
    border-image: linear-gradient(to right, transparent, white, white, transparent) 1; /* Adjusted gradient */
}

.fancy-header::before, .fancy-header::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, white, white, transparent); /* Adjusted gradient */
}

.fancy-header::before {
    top: -2px;
}

.fancy-header::after {
    bottom: -2px;
}


/* General button styles */
button {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: rgba(0, 0, 0, 1);
}


/* Table styles */
.actions {
    text-align: right;
}

/* Darker header background with rounded corners on top */
.dark-table thead {
    background-color: rgba(0, 0, 0, 0.9); /* Darker background for the heading */
}

.dark-table table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden; /* Ensure rounded corners are applied */
    margin-top: 20px;
}

.dark-table th, td {
    text-align: left;
    padding: 12px;
}

.dark-table {
    color: white;
}

.dark-table tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.8);
}

.dark-table tr:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0.6);
}

.dark-table tr td:first-child,
.dark-table tr th:first-child {
    border-left: none;
}

.dark-table tr td:last-child,
.dark-table tr th:last-child {
    border-right: none;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.page-link {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px 20px;
    margin: 0 5px;
    text-decoration: none;
}

.page-link:hover {
    background-color: rgba(0, 0, 0, 1);
}

.sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.sidebar-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.sidebar-button:hover {
    background-color: rgba(0, 0, 0, 1);
}

.main-menu {
    display: flex;
    gap: 10px;
    height: 50px;
}

.main-menu-button {
    position: relative;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
    width: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-menu-button:hover {
    background-color: rgba(0, 0, 0, 1);
}

.main-menu-button:hover .main-menu-dropdown {
    display: block;
}

.main-menu-dropdown {
    display: none;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.9);
    width: 100%;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    z-index: 999; /* Ensure it appears above other content */
    top: 100%; /* Position just below the button */
    left: 0; /* Align with the button */
}

.main-menu-dropdown a {
    display: block;
    color: black;
    padding: 12px;
    text-decoration: none;
    text-align: center;
}

.main-menu-dropdown a:hover {
    background-color: #ddd;
}

.button-margin {
    margin-right: 10px; /* Adjust the margin as needed */
}

/* Media query for tablets and smaller devices */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
        position: sticky;
    }

    .sidebar {
        width: 100%;
        margin-left: 0;
        margin-bottom: 20px;
    }

    .content {
        width: 100%;
    }

    .main-menu-button {
        margin-bottom: 10px;
        width: 100%;
    }

    .left-side {
        width: 100%;
    }

    .right-side {
        width: 100%;
    }
}