@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

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


body {
    overflow-x: hidden;
    font-family: "Poppins", sans-serif;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: palevioletred;
    height: 10vh;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 5px;
}

header ul li {
    list-style: none;
}

.menu_bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    width: 300px;
}

.menu_bar ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 20px;
}

.menu_bar ul li {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    position: relative;
}

.menu_bar ul li a {
    text-decoration: none;
    color: white;
    font-size: 20px;
    transition: all 0.3s;
}

.menu_bar ul li a:hover {
    color: red;
}

.dropdown_menu {
    display: none;
}

.menu_bar ul li:hover .dropdown_menu {
    display: block;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: palevioletred;
}

.dropdown_menu ul {
    display: block;
    margin: 5px;
}

.dropdown_menu ul li {
    width: 100px;
    padding: 10px;
}

.dropdown_menu1 {
    display: none;
}

.menu_bar ul li:hover .dropdown_menu1 {
    display: block;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: palevioletred;
}

.dropdown_menu1 ul {
    display: block;
}

.dropdown_menu1 ul li {
    width: 120px;
    padding: 0;
}

ul {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* -----------HAMBURGER MENU----------------- */

.lines {
    width: 35px;
    height: 3px;
    background-color: white;
    margin-top: 8px;
    position: absolute;
}

.hamburger {
    display: none;
}

.hamburger {
    width: 30px;
    height: 25px;
}

.lines:nth-child(1)
{
    transform: translateY(-9px);
    transition: 1s;
}

.lines:nth-child(2)
{
    transition: 1s;
}

.lines:nth-child(3)
{
    transform: translateY(9px);
    transition: 1s;
}

.hamburger.active .lines:nth-child(1) {
    transform: rotate(45deg);
    transition: 1s;
}

.hamburger.active .lines:nth-child(2) {
    transform: translatex(-10px);
    background-color: transparent;
}

.hamburger.active .lines:nth-child(3) {
    transform: rotate(-45deg);
    transition: 1s;
}

.hamburger.active {
    transform: rotate(360deg);
    transition: 2s;
}


body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  background: #f4f4f9;
  color: #333;
  overflow-x: hidden;
}

.header {
    display: flex;
  background: #222;
  color: #fff;
  text-align: center;
  padding: 1.5rem 0;
  justify-content: center;
  align-items: center;
  /* overflow: hidden; */
}

.header nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 1rem 0 0;
}

.header nav ul li {
  margin: 0 15px;
}

.header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.header nav a:hover {
  color: #ff6347;
}

.section {
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
  overflow-x: hidden;
}

.section h2 {
  color: #ff6347;
  border-bottom: 2px solid #ff6347;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.dashboard {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  flex: 1;
}
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  background: #f4f4f9;
  color: #333;
}

.header {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 1.5rem 0;
}

.h-red ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  /* margin: 1rem 0 0; */
}

.h-red ul li {
  /* margin: 0 15px; */
}

.h-red a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.h-red a:hover {
  color: #ff6347;
}

.Table {
    overflow-x: hidden;
}

.section {
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

.section h2 {
  color: #ff6347;
  border-bottom: 2px solid #ff6347;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.dashboard {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  flex: 1;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.chart-container {
  flex: 1;
  min-width: 300px;
}

canvas {
  width: 100%;
  max-height: 300px;
}

footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;
}


@media screen and (max-width:1290px) {
    .dashboard {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .section {
        text-align: center;
        padding: 20px;
    }
}

@media screen and (max-width:750px) {
    .card {
        padding: 10px;
    }
    .section {
        padding: 10px;
    }
    h1 {
        font-size: 24px;
        padding: 10px;
    }
    h2 {
        font-size: 20px;
    }
    h3 {
        font-size: 16px;
    }
}

@media screen and (max-width:690px) {
    .header h1 {
        font-size: 20px;
    }
    .h-red ul li a {
        font-size: 18px;
    }
    .Table {
    overflow: hidden;
}
}

@media screen and (max-width:610px) {
    .header {
        flex-wrap: wrap;
    }
    .h-red ul li a {
        font-size: 14px;
    }
}

@media screen and (max-width:510px) {
    .logo {
        width: 230px;
    }
    .h-red ul li a {
        font-size: 16px;
    }
}

@media screen and (max-width:440px) {
     .h-red ul li a {
        font-size: 11px;
    }
}

@media screen and (max-width:350px) {
    .logo {
        width: 230px;
    }
    h2 {
        font-size: 16px;
    }
    h1 {
        font-size: 18px;
        padding: 5px;
    }
    
    h3 {
        font-size: 14px;
    }
    p {
        font-size: 12px;
    }
    .card {
        padding: 5px;
    }
    .section {
        padding: 8px;
    }
    footer p {
        flex-wrap: wrap;
    }
    .header {
        padding: 8px;
    }
}



/* ----------------------------------------------------------------------------------------- */
/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .lines {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
}

/* Sidebar */
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: palevioletred;
    overflow-x: hidden;
    transition: 0.3s;
    padding-top: 60px;
    margin-top: 10vh;
}

.sidebar ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    padding: 15px 15px;
    position: relative;
}

.sidebar ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    text-decoration: none;
}
.sidebar ul li div span {
    color: white;
    text-decoration: none;
}

.flexdiv{
display: flex;
align-items: center;
gap: 10px;
}

.sidebar ul li a:hover {
    color: #f1f1f1;
}

.sidebar ul li .submenu  {
    list-style: none;
    padding-left: 15px;
    /* max-height: 0; */
    overflow: hidden;
    display: none;
}
 .sidebar ul li .submenu2 {
    padding-left: 15px;
    display: none;
}
 .submenu1 {
    padding-left: 15px;
    display: block;
}

/* Close button */
.sidebar .close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 36px;
    cursor: pointer;
    color: white;
}

/* Arrow rotation */
.dropdownArrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

@media screen and (max-width:1200px) {
    .menu_bar ul {
        display: none;
    }

    header ul li {
        display:none ;
    }

    .hamburger {
        display: block;
    }
}

ul li a{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

header ul li a  {
    text-decoration: none;
}