/* Basic styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #2b2b2b;
    color: #dddddd;
}

/* Top bar styling */
#topBar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 44px;
    background-color: #333;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding-left: 10px;
}

#backCircle {
    position: absolute;
    width: 160px;
    height: 38px;
    background-color: rgba(67,67,67,0.857);
    border-radius: 12px; /* Rounded shape */
    display: flex;
    align-items: center;
    justify-content: center;
    left: 5px; /* Position it slightly to the left of logo */
    z-index: -1; /* Place it behind the logo and title */
    top: 50%;
    transform: translateY(-50%);
}

/* Logo Circle Styling */
#logoCircle {
    width: 30px;
    height: 30px;
    background-color: #555;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-right: 10px;
}

#logoImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Title Styling */
#siteTitle {
    font-size: 16px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: bold; /* Make the text bold */
    text-transform: uppercase; /* Convert text to uppercase */
}


/* Sidebar styling */
#sidebar {
    position: fixed;
    top: 44px; /* Adjust below the top bar */
    left: 0;
    width: 200px;
    height: calc(100% - 44px); /* Adjust height minus top bar */
    background-color: #4b4b4b;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    overflow-x: hidden;
    transition: width 0.3s ease;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
}


#sidebarContent {
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#sidebar button {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #333;
    padding: 10px 20px;
    margin: 10px 0;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    width: 80%;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Hover and active effects for buttons */
#sidebar button:hover {
    background-color: #555;
    color: #fff;
    transform: scale(1.05);
}

#sidebar button:active {
    background-color: #333;
    transform: scale(0.95);
}

/* Toggle button styling */
#toggleBtn {
    position: fixed;
    top: 80px;
    left: 200px;
    background-color: #888;
    color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 10px;
    width: 64px;
    height: 40px;
    cursor: pointer;
    font-size: 20px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    z-index: 1000;
    transition: left 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Sidebar closed */
#sidebar.closed {
    width: 0;
    padding: 0;
    background-color: #4b4b4b;
}

#sidebar.closed #sidebarContent {
    display: none;
}

#sidebar.closed + #toggleBtn {
    left: 0;
}

/* Main content styling */
main {
    padding: 50px;
    margin-left: 0;
    transition: margin-left 0.3s;
    margin-top: 80px; /* Adjust for top bar height */
}

/* Popup Animations */
@keyframes popupFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes popupSlideIn {
    from {
        transform: translate(-50%, -50%) scale(0);
    }
    to {
        transform: translate(-50%, -50%) scale(1);
    }
}

#popup button {
    padding: 10px 20px;
    background-color: #555;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#popup button:hover {
    background-color: #333;
}
