﻿@font-face {
    font-family: 'CairoVariable';
    src: url('../fonts/CairoVariableFont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
body {
    font-family: 'CairoVariable', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FFFFFF;/*#f0f0f0;*/
    display: flex;
    min-height: 100vh;
}
/*floated message
    */
.message {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background-color: rgba(255, 0, 0, 0.8); /* Red background with opacity */
    color: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* Drop shadow */
    z-index: 9999; /* Ensure it's on top of other content */
    display: none; /* Initially hidden */
    animation: fadeInOut 2s ease-in-out; /* Animation */
}

.messageS {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background-color: rgba(0, 128, 0, 0.8); /* Green background with opacity */
    color: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* Drop shadow */
    z-index: 9999; /* Ensure it's on top of other content */
    display: none; /* Initially hidden */
    animation: fadeInOut 2s ease-in-out; /* Animation */
}


@keyframes fadeInOut {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}





.logo-container {
    text-align: center;
    margin-bottom: 10px;
    margin-top: 10px;
}

.logo {
    max-width: 100%;
    height: auto;
}

.user-info {
    text-align: center;
    margin-bottom: 20px;
}

.user-name,
.office-name {
    font-size: 18px; /* Adjust font size as needed */
}

/* Side menu styles */
.side-menu {
    width: 250px; /* Adjust width as needed */
    background-color:#FFFFFF; /* #f8f9fa;*/ /* Example background color */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Example box shadow */
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh; /* Full height */
    overflow-y: auto; /* Enable vertical scrolling */
    font-family: 'CairoVariable', sans-serif;
}

.sidebar-menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
    height: calc(100vh - 160px); /* Adjust height based on other content */
    overflow-y: scroll; /* Enable vertical scrolling */
     /* Shadow on the left */
     font-family: 'CairoVariable', sans-serif;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}
.sidebar-menu::-webkit-scrollbar {
    display: none;  /* Chrome, Safari and Opera */
}
.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu li a {
    text-decoration: none;
    color: #007bff;
    display: block;
    padding: 10px;
    transition: background-color 0.3s ease;
    font-size:22px;
    font-family: 'CairoVariable', sans-serif;
}

.sidebar-menu li a:hover {
    background-color: #e9ecef; /* Example hover color */
}

.sidebar {
    position: fixed;
    width: 250px;
    height: 100%;
    background: #FFFFFF; /*#333;*/
    color: #007bff;
    transition: width 0.3s, right 0.3s;
    right: 0;
    z-index: 1030;
    box-shadow: -12px 0 20px rgba(0, 0, 0, 0.1);
    font-family: 'CairoVariable', sans-serif;
}

.sidebar.active {
    right: -250px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #FCFEFF;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    padding: 15px;
    border-bottom: 0px solid #444;
}

.sidebar-menu li a {
    color: #007bff;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.btn-logout {
    color: #007bff;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.sidebar-menu li a i {
    margin-left: 10px;
}

.main-content {
    flex: 1;
    margin-right: 250px;
    padding: 20px;
    transition: margin-right 0.3s;
}

.sidebar.active ~ .main-content {
    margin-right: 0;
    width: calc(100% - 40px);
    padding-left: 40px;
}

.menu-toggle {
    display: none;
    position: fixed;
    top: 10px;
    right: 10px;
    background: #333;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 768px) {
    .sidebar {
        right: -250px;
    }

    .sidebar.active {
        right: 0;
    }

    .main-content {
        margin-right: 0;
        width: 100%;
        padding-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .sidebar.active ~ .main-content {
        margin-right: 0;
        width: 100%;
    }
}
