/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wght@6..12,200..1000&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  /* --first-color: hsl(228, 85%, 63%); */
  --first-color: #121212;
  --title-color: hsl(228, 18%, 16%);
  --text-color: hsl(228, 8%, 56%);
  /* --body-color: hsl(228, 100%, 99%); */
  --body-color: white;
  --shadow-color: hsla(228, 80%, 4%, .1);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Nunito Sans", system-ui;
  --normal-font-size: .938rem;
  --smaller-font-size: .75rem;
  --tiny-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --normal-font-size: 1rem;
    --smaller-font-size: .813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  transition: background-color .4s;


  
}


a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  all: unset;
}

/*=============== VARIABLES DARK THEME ===============*/
body.dark-theme {
  /* --first-color: hsl(228, 70%, 63%); */
  --first-color: hsl(228, 18%, 96%);
  --title-color: hsl(228, 18%, 96%);
  --text-color: hsl(228, 12%, 61%);
  /* --body-color: hsl(228, 24%, 16%); */
  --body-color: #1a1a1a;
  --card-bg: #292b2e;
  /* --shadow-color: hsla(230, 5%, 23%, 0.3); */
  --shadow-color: hsla(240, 3%, 41%, 0.3);
}

/*========== 
	Color changes in some parts of 
	the website, in dark theme
==========*/
.dark-theme .sidebar__content::-webkit-scrollbar {
  background-color: hsl(228, 16%, 30%);
}

.dark-theme .sidebar__content::-webkit-scrollbar-thumb {
  background-color: hsl(228, 16%, 40%);
}

/*=============== REUSABLE CSS CLASSES ===============*/

.main {
  padding: 0rem 1rem 1rem 1rem;
  background: var(--body-color);
}

/*=============== HEADER ===============*/
.header {
  /* position: fixed; */
  width: 100%;
  /* padding: 1rem 0rem; */
  background-color: var(--body-color);
  box-shadow: 24px 0 24px var(--shadow-color);


  
}

.header__container {
  width: 100%;
  height: var(--header-height);
  background-color: var(--body-color);

  /* box-shadow: 0 24px 24px var(--shadow-color); */
  box-shadow: 2px 0 24px var(--shadow-color);

  
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* padding-inline: 1rem; */
  /* border-radius: 1rem; */
  transition: background-color .4s;
  border-radius: .2rem;
  /* border: 1px solid grey; */
}

.header__profile {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  align-items: center;
  column-gap: 1rem;
  /* padding-left: 2rem; */
}

.header__img {
  position: relative;
  width: 50px;
  height: 50px;
  background-color: var(--first-color);
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  justify-items: center;
}

.header__img img {
  position: absolute;
  width: 36px;
  bottom: -1px;
}

.header__info h3 {
  font-size: var(--normal-font-size);
  color: var(--title-color);
  transition: color .4s;
}

.header__info span {
  font-size: var(--smaller-font-size);
}

.header__toggle {
  font-size: 1.5rem;
  color: var(--title-color);
  cursor: pointer;
}

/*=============== SIDEBAR ===============*/
.sidebar {
  position: fixed;
  left: -120%;
  /* left: 0; */
  top: 0;
  bottom: 0;
  z-index: var(--z-fixed);
  width: 288px;
  background-color: var(--body-color);
  box-shadow: 2px 0 24px var(--shadow-color);
  padding-block: 1.5rem;
  margin: .75rem;
  border-radius: 1rem;
  transition: left .4s, background-color .4s, width .4s;
}

.sidebar__container, 
.sidebar__content {
  display: flex;
  flex-direction: column;
  row-gap: 3rem;
}

.sidebar__container {
  height: 100%;
  overflow: hidden;
}

.sidebar__user {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  align-items: center;
  column-gap: 1rem;
  padding-left: 2rem;
}

.sidebar__img {
  position: relative;
  width: 50px;
  height: 50px;
  background-color: var(--first-color);
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  justify-items: center;
}

.sidebar__img img {
  position: absolute;
  width: 36px;
  bottom: -1px;
}

.sidebar__info h3 {
  font-size: var(--normal-font-size);
  color: var(--title-color);
  transition: color .4s;
}

.sidebar__info span {
  font-size: var(--smaller-font-size);
}

.sidebar__content {
  overflow: hidden auto;
}

.sidebar__content::-webkit-scrollbar {
  width: .4rem;
  background-color: hsl(228, 8%, 85%);
}

.sidebar__content::-webkit-scrollbar-thumb {
  background-color: hsl(228, 8%, 75%);
}

.sidebar__title {
  width: max-content;
  font-size: var(--tiny-font-size);
  font-weight: var(--font-semi-bold);
  padding-left: 2rem;
  margin-bottom: 1.5rem;
  color: var(--title-color);
}

.sidebar__list, 
.sidebar__actions {
  display: grid;
  row-gap: 1.5rem;
}

.sidebar__link {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  align-items: center;
  column-gap: 1rem;
  color: var(--text-color);
  padding-left: 2rem;
  transition: color .4s, opacity .4s;
}

.sidebar__link i {
  font-size: 1.25rem;
}

.sidebar__link span {
  font-weight: var(--font-semi-bold);
}

.sidebar__link:hover {
  color: var(--first-color);
}

.sidebar__actions {
  margin-top: auto;
}

.sidebar__actions button {
  cursor: pointer;
}

.sidebar__theme {
  width: 100%;
  font-size: 1.25rem;
}

.sidebar__theme span {
  font-size: var(--normal-font-size);
  font-family: var(--body-font);
}

/* Show sidebar */
.show-sidebar {
  left: 0;
}

/* Active link */
.active-link {
  color: var(--first-color);
}

.active-link::after {
  content: "";
  position: absolute;
  left: 0;
  width: 3px;
  height: 20px;
  background-color: var(--first-color);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 360px) {
  .header__container {
    padding-inline: 1rem;
  }

  .sidebar {
    width: max-content;
  }
  .sidebar__info, 
  .sidebar__link span {
    display: none;
  }
  .sidebar__user, 
  .sidebar__list, 
  .sidebar__actions {
    justify-content: center;
  }
  .sidebar__user, 
  .sidebar__link {
    grid-template-columns: max-content;
  }
  .sidebar__user {
    padding: 0;
  }
  .sidebar__link {
    padding-inline: 2rem;
  }
  .sidebar__title {
    padding-inline: .5rem;
    margin-inline: auto;
  }

  main {
    /* padding-left: 340px; */
    /* margin-top: 5rem; */
    transition: padding .4s;


  }

  .margin-top-neg-2 {
    margin-top: 0;
  }
}

/* For midi screen */
@media screen and (max-width: 1150px) {
  .header__container {
    padding-inline: 1rem;
    padding: 2.5rem 1rem;
  }

  main {
    padding-left: 340px;
    transition: padding .4s;

  }

  
}


/* For large devices */
@media screen and (min-width: 1150px) {
  .header {
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 340px;
    padding-right: 1rem;
    transition: padding .4s;
  }
  .header__container {
    height: calc(var(--header-height) + 2rem);
    padding-inline: 2rem;
  }
  .header__profile {
    order: 1;
  }

  .sidebar {
    left: 0;
    width: 316px;
    /* margin: 1rem; */
  }
  .sidebar__info, 
  .sidebar__link span {
    transition: opacity .4s;
  }
  .sidebar__user, 
  .sidebar__title {
    transition: padding .4s;
  }

  /* Reduce sidebar */
  .show-sidebar {
    width: 90px;
  }
  .show-sidebar .sidebar__user {
    padding-left: 1.25rem;
  }
  .show-sidebar .sidebar__title {
    padding-left: 0;
    margin-inline: auto;
  }
  .show-sidebar .sidebar__info, 
  .show-sidebar .sidebar__link span {
    opacity: 0;
  }

  .main {
    padding-left: 340px;
    /* margin-left: 1rem; */
    transition: padding .4s;

  }



  /* Add padding left */
  .left-pd {
    padding-left: 114px;
  }
}





/*=============================================*/
/*===============  COMPONENETS  ===============*/
/*=============================================*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}




/*===============  CHART  ===============*/

.chart-container {
  width: 100%;
  /* height: 50; */
  position: relative;
}

.chart-center-content {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: black;
}

.chart-center-content h3 {
  margin: 0;
  font-size: 36px;
  font-weight: bold;
}

.chart-center-content p {
  margin: 0;
  font-size: 20px;
}





.n-fs {
  font-size: var(--normal-font-size);
}

.s-fs {
  font-size: var(--smaller-font-size);
}
.t-fs {
  font-size: var(--tiny-font-size);
}


.cardbg {
  background-color: var(--body-color);
  box-shadow: 2px 0 24px var(--shadow-color);

}

.cardbg0 {
  background-color: var(--body-color);

}

.border-color {
  border: 2px solid rgb(238, 234, 234);
}

.margin-top-neg-2 {
  margin-top: -5rem;
}

.margin-top-neg {
  margin-top: -2rem;
}

.text-title {
  color: var(--title-color);
}
.text-color {
  color: var(--text-color);
  /* color: white; */
}



/* Table background */
.table {
    background-color: var(--body-color); /* Darker background color for the entire table */
    
}

/* Table header background and text color */
.table thead th {
    background-color: var(--body-color); /* Darker header background */
    color: var(--title-color); /* Light text color for better contrast */
}

/* Table rows */
.table tbody td {
    background-color: var(--body-color) !important;  /* Darker background for table rows */
    color: var(--text-color) /* Light text color for rows */
}

.table tbody td:nth-of-type(odd) {
    background-color: var(--body-color) !important; /* Darker shade for striped rows */
}



/* Optional: Add hover effect for rows */
.table tbody tr:hover {
    background-color: var(--body-color) !important; /* Slightly lighter background on hover */
}



.scroll-container {
  overflow: hidden auto;
}



.p-7{
  padding: 2.5rem 7rem;
}

.pe-5{
  padding-right: 3rem;
}

.ps-5 {
  padding-left: 3rem;
}

/* Optional: Custom button styling */
#floatingBtn {
  font-size: 32px; /* Increase the size of the icon */
  width: 80px; /* Increase button width */
  height: 80px; /* Increase button height */
  display: flex;
  justify-content: center;
  align-items: center;
}

#floatingBtn .badge {
  font-size: 14px; /* Smaller size for cart quantity */
  top: 0; /* Align the badge in the top-right corner of the button */
  right: 10;
}
