@font-face {
    font-family: "GESS-B";
    src: url("../assets/Fonts/GE\ SS\ Two\ Medium.otf");
}

@font-face {
    font-family: "GESS-M";
    src: url("../assets/Fonts/GE\ SS\ Two\ Medium.otf");
}

@font-face {
    font-family: "GESS-L";
    src: url("../assets/Fonts/GE\ SS\ Two\ Light.otf");
}

* {
    --bold-primary-font: "GESS-B";
    --medium-primary-font: "GESS-M";
    --light-primary-font: "GESS-L";
    --primary-color: #000064;
    --primary-color-opacity:#00006480;
    --primary-color-opacity-snd:#00006450;
    --second-color: #1c75bc;
    --primary-text-color: #000;
    --second-text-color: #fff;
    --gray-color: #BFBFBF;
    --gray-text-color: #5a5757;
    --primary-radius: 25px;
    --second-radius: 15px;
    --main-padding: 30px;
    --table-border-radius: 5px;
    --table-row-height: 30px;
    --table-background:#BFBFBF;
    --table-header-background:#fff;
    --table-secondary-background:#eee;
    --table-padding:10px;
    --Shadow-box: 0 .5rem 1rem rgba(0, 0, 0, .15);
    --border-radius: 10px;
    --fontsize-header:16px;
    list-style: none;
    /* For default Font  */
    font-family: var(--light-primary-font);
    font-size: 14px;
    font-weight: 400;
    
}

/* base */
body {
    padding: 0;
    margin: 0;
}

/* reusable */
button {
    padding: 0px 20px;
    font-size: 15px;
    align-self: flex-end;
    margin: 10px 0;
    border: none;
    background-color: var(--talbe-secondary-background);
    border-radius: var(--table-border-radius);
    transition: .5s;
    opacity: .6;
}

button:hover{
    opacity: 1;
}

a{
    text-decoration: none;
}

input,
select{
    border-radius: 5px;
    border: 1px solid var(--gray-color);
}

button:hover {
    background-color: var(--primary-color);
    color: var(--gray-color);
}

button span {
    padding: 0px 10px 0 0;
    font-size: 25px;
    font-weight: bolder;
}


/* Admin Header */
.header {
    display: flex;
    height: 100px;
    border-radius: 10px 0px 0px 10px;
    box-shadow: var(--Shadow-box);
    justify-content: space-evenly;
    align-items: center;
}

.header .left,
.header .mid,
.header .right {
    font-size: 25px;
    color: var(--primary-color);
    font-weight: 600;
}

.header .mid p {
    font-size: 25px;
    text-align: center;
    line-height: 10px;
    font-weight: bold;
}


.left {
    position: relative;
    display: inline-block;
}

.left img {
    width: 40px; /* Adjust as needed */
    height: 40px;
    cursor: pointer;
}

.logoutMenu {
    position: absolute;
    left: 0px;
    background: var(--second-text-color);
    border-radius: 5px;
    box-shadow: var(--Shadow-box);
    padding: 10px;
    min-width: 180px;
    display: none; /* Initially hidden */
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.logoutMenu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.logoutMenu .logon-user {
    margin: 0 0 10px;
    font-size: 20px;
    text-align: center;
}

.logoutMenu a {
    display: block;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.2s;
}

.logoutMenu a:hover {
    background: var(--gray-color);
}

/* Main dashboard */

.main-dashboard {
    display: flex;
}

.main-dashboard .body {
    padding: 50px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Main Side Menu*/

.side-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--Shadow-box);
    width: 150px;
    min-width: max-content;
    min-height: 100vh;
    z-index: 1000;    
}

.side-menu .main-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color)
}

.side-menu .side-menu-item {
    padding: 20px 0px 20px 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 5px;
    transition: .5s;
}

.side-menu> :nth-child(n+2):hover {
    background-color: var(--gray-color);
    cursor: pointer;
}

.side-menu .side-menu-item.selected {
    background-color: var(--primary-color);
}

.side-menu .side-menu-item h3 {
    color: var(--primary-color);
    font-size: 14px;
}

.side-menu .side-menu-item .icon {
    width: 50px;
    height: 50px;
}

.side-menu .side-menu-item.selected h3 {
    color: var(--gray-color);
}

.side-menu .side-menu-item.selected .icon path {
    fill: var(--gray-color);
}

.side-menu .side-menu-item img {
    height: 30px;
    width: 30px;
}

.side-menu .side-menu-item h3 {
    margin: 0;
}

.side-menu .side-menu-item .arrow {
    color: var(--primary-color);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.side-menu .side-menu-item.selected .arrow {
    color: var(--gray-color);
    transform: rotate(180deg);
}

.side-menu .submenu {
    max-height: 0;
    /* Hide submenu by default */
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.3s ease;
    opacity: 0;
    width: 100%;
    text-align: center;
}

.side-menu .submenu .submenu-item {
    padding: 10px 0;
    color: var(--gray-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.side-menu .submenu .submenu-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    /* Light hover effect */
}

.side-menu-item.selected .submenu {
    max-height: 150px;
    opacity: 1;
}

/* Maindashboard Body */
.body {
    flex:1;
}


/* start Cards */
.body .cards {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    gap: 20px;
}

.body .cards .card:nth-child(1) {
    color: #DF4349;
    background-color: #F8D7DA;
}

.body .cards .card:nth-child(1) .card-body svg {
    fill: #F8D7DA;
    width: 65px;
    height: 52px;
}

.body .cards .card:nth-child(2) {
    color: #A579F1;
    background-color: #DADCF8;
}

.body .cards .card:nth-child(2) .card-body svg {
    fill: #DADCF8;
    width: 65px;
    height: 52px;
}


.body .cards .card:nth-child(3) {
    color: #6ABF5F;
    background-color: #D2EAD8;
}

.body .cards .card:nth-child(3) .card-body svg {
    fill: #D2EAD8;
    width: 65px;
    height: 52px;
}


.body .cards .card {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 150px;
    min-width: 0;
    min-height: 0;
    box-shadow: var(--Shadow-box);
    border-radius: 10px;
    overflow: hidden;
}

.body .cards .card .card-header {
    flex: 1;
    height: 30px;
    padding: 5px 10px 0 0;
    align-self: end;
    font-size: 20px;
}

.body .cards .card .card-body {
    flex: 3;
    background-color: #fff;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.body .cards .card .card-body .content {
    padding-top: 14px;
    line-height: 5px;
}

.body .cards .card .card-body .content p {
    font-size: 35px;
    font-family:monospace;
}

.body .cards .card .card-body .content h3 {
    color: var(--gray-text-color)
}

.body .cards .card .card-body svg {
    padding: 30px 0px;
}

/* end Cards */


/* start toast */
.toast {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 300px;
    height: 100px;
    background-color: #eee;
    display: flex;
    align-items: center;
    column-gap: 1rem;
    padding: 0 1rem;
    border-radius: 15px;
    transition: transform 0.2s;
    transform: translateY(-200px);
}

.toast.show {
    transform: translateY(0);
}

.toast h4 {
    font-size: 17px;
}

.toast img {
    width: 45px;
}

.toast::after {
    content: "";
    position: absolute;
    right: 0px;
    top: 0;
    height: 100%;
    width: 10px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}

.toast.show.ok::after {
    background-color: #3DD65D;
}

.toast.show.error::after {
    background-color: #f55454;
}

/* end toast  */


.select2-container {
    width: 30% !important;
  }
  .select2-selection--single {
    height: 40px !important;
  }
  .select2-selection__rendered {
    line-height: 40px !important;
  }
  .select2-selection__arrow {
    height: 40px !important;
  }