@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600&display=swap');
*{
    margin:0;
    padding:0;
    box-sizing: border-box;
    font-family: 'poppins', sans-serif;
}
:root{
    /* colors*/
    --primary-color:#0E4BF1;
    --panel-color:#FFF;
    --text-color:#000;
    --black-light-color:#707070;
    --border-color:#e6e5e5;
    --toggle-color:#ddd;
    --box1-color:#4da3ff;
    --box2-color:#ffe6ac;
    --box3-color:#e7d1fc;
    --title-icon-color:#fff;

    /* transition*/

    --tran-05:all 0.5s ease;
    --tran-03:all 0.3s ease;
    --tran-03:all 0.2s ease;

}
body{
    min-height:100vh;
    background-color: var(--panel-color);
}
body.dark{
    --primary-color:#3a3b3c;
    --panel-color:#242526;
    --text-color:#ccc;
    --black-light-color:#ccc;
    --border-color:#4d4c4c;
    --toggle-color:#ddd;
    --box1-color:#3a3b3c;;
    --box2-color:#3a3b3c;
    --box3-color:#3a3b3c;
    --title-icon-color:#ccc;
}
nav{
    position: fixed;
    top:0;
    left:0;
    height:100%;
    width:250px;
    padding:10px 14px;
    background-color: var(--panel-color);
    border-right: 1px solid var(--border-color);
    transition: var(--tran-05);
}
nav.close{
    width: 73px;
}
nav .logo-name{
    display: flex;
    align-items: center;
}
nav .logo-image{
    display: flex;
    justify-content: center;
    min-width: 45px;
    
}
nav .logo-image img{
    width: 40px;
    object-fit: cover;
    border-radius: 50%;
}

nav .logo-name .logo_name{
    font-size:22px;
    font-weight:600;
    color: var(--text-color);
    margin-left: 14px;
    transition: var(--tran-05);
}

nav.close .logo_name{
    opacity: 0;
    pointer-events: none;
}
nav .menu-items{
    
    margin-top: 40px;
    height: calc(100% -90px);
    display:flex;
    flex-direction: column;
    justify-content: space-between;
}
.menu-items li{
    list-style: none;
}
.menu-items li a{
    display: flex;
    align-items: center;
    height:60px;
    text-decoration: none;
    position: relative;
}
.nav-links li a:hover:before{
    content: "";
    position: absolute;
    left: -7px;
    height: 5px;
    width: 5px;
    border-radius: 50%;
    background-color: var(--primary-color);
}
body.dark li a:hover:before{
    background-color: var(--text-color);
}
.menu-items li a i{
    font-size: 24px;
    min-width: 45px;
    height:100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color:var(--black-light-color);
}
.menu-items li a .link-name{
    font-size: 18px;
    font-weight: 400;
    color:var(--black-light-color);
    transition: var(--tran-05);
}
nav.close li a .link-name{
    opacity: 0;
    pointer-events: none;
}
.nav-links li a:hover i,
.nav-links li a:hover .link-name{
    color:var(--primary-color);
}
body.dark li a:hover i,
body.dark li a:hover .link-name{
    color:var(--text-color);
}
.menu-items .logout-mode{
    padding-top: 10px;
  border-top: 1px solid var(--border-color);
}
.menu-items .mode{
    display: flex;
    align-items: center;
    white-space: nowrap;
   
}
.menu-items .mode-toggle{
    position: absolute;
    right: 14px;
     height: 50px;
     min-width: 45px;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
}
.mode-toggle .switch{
    position: relative;
    display: inline-block;
    height: 22px;
    width: 40px;
    border-radius: 25px;
    background-color: var(--toggle-color);
}
.switch:before{
    content: "";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    height: 15px;
    width: 15px;
    background-color: var(--panel-color);
    border-radius: 50%;
    transition: var(--tran-03);
}
body.dark .switch:before{
    left:20px;
}
.dashboard{
    position: relative;
    left: 250px;
    background-color: var(--panel-color);
    height:100vh;
    width: calc(100% - 250px);
    padding: 10px 14px;
    transition: var(--tran-05);
    padding-left: 40px;
}
nav.close ~ .dashboard{
      left: 73px;
      width: calc(100% - 73px);
}
.dashboard .top{
    position: fixed;
    top:0;
    left: 250px;
    display: flex;
    width: calc(100% - 250px);
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background-color: var(--panel-color);
     transition: var(--tran-05);
}
nav.close ~ .dashboard .top{
      left: 73px;
      width: calc(100% - 73px);
}
.dashboard .top .sidebar-toggle{
    font-size: 26px;
    color:var(--text-color);
    cursor: pointer;
}
.dashboard .top .search-box{
    position: relative;
    height: 45px;
    max-width: 600px;
    width: 100%;
    margin: 0 30px;
   
}
.top .search-box input{
    position: absolute;
    border: 1px solid var(--border-color);
    background-color: var(--panel-color);
    padding: 0 25px 0 50px;
    border-radius: 5px;
    height: 100%;
    width: 100%;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 400;
    outline: none;
}
.top .search-box i{
    position: absolute;
    left: 15px;
    font-size: 22px;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    color: var(--black-light-color);
}
.top img{
    width: 40px;
    border-radius: 50%;
}

.dashboard .dash-content {
    padding-top: 50px;
}
.dash-content .title{
    display: flex;
    align-items: center;
    margin: 60px 0 30px 0;
}
.dash-content .title i{
    position: relative;
    height: 35px;
    width: 35px;
    background-color: var(--primary-color);
    border-radius: 6px;
    color: var(--title-icon-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.dash-content .title .text{
    font-size: 24px;
    font-weight: 500;
    color: var(--text-color);
    margin-left: 10px;
}
/* Container for all boxes */
.dash-content .boxes{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

/* Each box */
.dash-content .boxes .box{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    width: 100%;
    max-width: 250px;
    height: 150px;

    padding: 20px;
    border-radius: 12px;
    background-color: var(--box1-color);

    text-align: center;
}

/* Icons */
.dash-content .boxes .box i{
    font-size: 30px;
    color: #fff;
    margin-bottom: 10px;
}

/* Text (label) */
.dash-content .boxes .box .text{
    font-size: 16px;
    color: #fff;
}

/* Numbers */
.dash-content .boxes .box .number{
    font-size: 22px;
    font-weight: 600;
    color: #fff;
}

/* Different colors for each box */
.boxes .box.box1{
    background-color: #4da3ff;
}
.boxes .box.box2{
    background-color: #ffe6ac;
    color: #000;
}
.boxes .box.box3{
    background-color: #e7d1fc;
    color: #000;
}

/* Fix text color inside light boxes */
.boxes .box.box2 .text,
.boxes .box.box2 .number,
.boxes .box.box3 .text,
.boxes .box.box3 .number{
    color: #000;
}
/* Make ALL text black (including blue box) */
.boxes .box .text,
.boxes .box .number{
    color: #000;
}
/* FINAL FIX */
.boxes .box .text,
.boxes .box .number{
    color: #000 !important;
}

.boxes .box i{
    color: #000 !important;
    margin-top: 5px;
    margin-bottom: 8px;
}

.box1{
    color: #000 !important;
}
.notices{
    margin-top: 30px;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
}

.notices ul{
    list-style: disc;
    padding-left: 40px;
}

.notices li{
   padding-left: 5px;
}
/* DARK MODE */
body.dark{
    --text-color: #fff;
    --panel-color: #242526;
}

/* Apply text color everywhere */
body.dark .dash-content,
body.dark .notices,
body.dark .notices li{
    color: #fff;
}
body.dark .boxes .box{
    color: #fff;
}
body.dark .boxes .box i{
    color: #fff;
}
body.dark .notices{
    background-color: #2c2c2c;
}
.new-badge{
    background-color: red;
    color: white;
    font-size: 10px;
    padding: 3px 6px;
    margin-right: 8px;
    border-radius: 5px;
    font-weight: bold;

    animation: blink 1s infinite;
}

@keyframes blink{
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
