/* :root {
    --primary-color: #1e88e5;
    --primary-hover: #1565c0;
    --bg-gradient: linear-gradient(135deg, #1c2c4e, #317d93);
    --text-light: #f5f5f5;
    --text-dark: #333;
    --font-family: "Trebuchet MS", sans-serif;
    --border-radius: 7px;
  } */
  
  body {
    margin: 0;
    font-family: var(--font-family);
    background: var(--bg-gradient);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
  }
  
  .login-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    width: 70%;
    max-width: 400px;
    height: 500px;
    margin: auto;
  }
  
  .input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
  }

  .login-box p{
    text-align: center;
  }
  

  form{
    width:80%;
    margin:auto;
    text-align: left;
  }

  input {
    padding: 9px;
    margin-top: 7px;
    border-radius: var(--border-radius);
    border: none;
  }
  
  .app-logo {
    width: 80px;
    margin-bottom: 10px;
  }
  
  button {
    width: 100%;
    padding: 10px;
    margin-top: 30px;
    margin-bottom: 5px;
    border: none;
    border-radius: var(--border-radius);
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  button:hover {
    background: var(--primary-hover);
  }
  
  small {
    color: var(--text-light);
    font-size: 12px;
  }
  
  @media (max-width: 480px) {
    .login-box {
      padding: 20px;
    }

    form{
        width:90%;       
      }
  }

  /* Header Start */
  .main-header {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 2px 20px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    top: 0;
    left: 0;    
    z-index: 1000;
    max-height: 10vh;
    width: 100vw;
  }
  
  .header-left {
    display: flex;
    align-items: center;
  }
  
  .app-logo {
    width: 45px;
    height: 45px;
    margin-right: 20px;
    border-radius: 6px;    
    object-fit: cover;
  }
  
  .app-name {
    font-size: 1rem;
    margin: 0;
  }
  
  .header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
  }
  
  .main-header .logout-btn {
    background: var(--primary-hover);
    color: #fff;
    padding: 6px 14px;   
    text-decoration: none;
    transition: 0.3s;
    height: 100%;
  }
  
  .logout-btn:hover {
    background: #e53935;
  }
  
  .sidebar {
    position: fixed;
    top: 0px;
    left: 0;
    bottom: 0;
    width: 200px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding-top: 20px;
    display: flex;
    align-items: center;
    
  }
  
  .sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .sidebar ul li {
    margin-bottom: 10px;
  }
  
  .sidebar ul li a {
    display: block;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    transition: 0.3s;
  }
  
  .sidebar ul li a:hover {
    background: rgba(255,255,255,0.2);
  }
  
  .dashboard-page {
    background: var(--bg-gradient);
    color: var(--text-light);
    margin: 0;
    /* padding-top: 70px; header height */
    font-family: var(--font-family);
  }
  
  .main-content {
    margin-left: 220px; /* sidebar width */
    padding: 20px;
  }

  .footer{
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 4vh;
    background: var(--primary-color);
    z-index: 1000;
    text-align: center;
    position: fixed;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  @media (max-width: 768px) {
    .sidebar {
      display: none;
    }
    .main-content {
      margin-left: 0;
    }

    .user-info{
      display: none;
    }

    .footer{
      font-size: .7rem;
    }
  }
  

  /* Headwer End */
  

  /* Dashboard Page Layout */

 main{
    max-height:100vh;
  }
.main-content {
  margin-left: 200px; /* space for sidebar */
  padding: 30px;
  background: var(--bg-gradient);
  max-height: 100vh;  
  width: calc(100vw - 200px);
}

.dashboard-title {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 25px;
}

/* Cards Grid */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.dashboard-cards a{
  text-decoration: none;
}

.card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
  font-weight: 600;
}

.card p {
  font-size: 1.6rem;
  font-weight: 700;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Chart Section */
.dashboard-chart h2 {
  color: var(--text-light);
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

canvas {
  width: 100% !important;
  height: 350px !important;
}


#chart-container {
  width: 80%;
  min-height: 350px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  display: flex;
  justify-content: center;
  align-items: center;
  color: gray;
  font-size: 1rem;
  box-shadow: var(--shadow-light);
  padding: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .main-content {
      margin-left: 0;
      padding: 20px;
      width: 80vw;
  }
  .dashboard-cards {
      grid-template-columns: .5fr .5fr;
  }
}

@media (max-width: 480px) {
  .dashboard-cards {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .card h3 {
   
    
    font-size: .8rem;
  }
  
  .card p {
    font-size: 1rem;
    
  }
}
