
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    background-color: #0d0d1a;
    color: #e6e6e6;
  }
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100vh;
    background-color: #121223;
    padding: 1.5rem 1rem;
    overflow-y: auto;
  }
  
  .sidebar-menu {
    list-style: none;
    padding: 0;
  }
  
  .sidebar-menu li {
    margin: 1rem 0;
    padding: 1rem;
    color: #4da6ff;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
  }
  
  .sidebar-menu li:hover {
    background-color: #1e1e2f;
    border-radius: 15px;
    transform: translateY(-5px);
  }
  
  .submenu {
    list-style: none;
    padding-left: 1rem;
    display: none;
    margin-top: 0.5rem;
  }
  
  .submenu li {
    padding: 0.5rem 1rem;
    background-color: #161627;
    margin: 0.3rem 0;
    border-radius: 8px;
    font-size: 1rem;
  }
  .sidebar-menu .submenu {
    display: none;
    opacity: 0;
    transition: opacity 0.9s ease;
  }
  
  .sidebar-menu .has-submenu:hover .submenu {
    display: block;
    opacity: 1;
  }
  
  .submenu li:hover {
    background-color: #22223a;
  }
  
  
  .has-submenu.active .submenu {
    display: block;
  }
  .content-wrapper {
    margin-left: 220px;
    width: calc(100% - 220px);
  }
  .user-dashboard {
    margin-top: 3rem;
    padding: 1.5rem;
  }
  
  .user-profile-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a1a2b;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  
  .user-profile-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
  }
  
  .profile-pic.large {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #4da6ff;
  }
  
  .user-profile-info p {
    margin: 0.4rem 0;
    font-size: 0.95rem;
    color: #ccc;
  }
  
  .user-profile-info a {
    color: #4da6ff;
    text-decoration: none;
  }
  
  .user-profile-info i {
    color: #4da6ff;
    margin-right: 0.5rem;
  }
  
  .user-stats {
    
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
  }
  
  .stat-box {
    border: 1px solid #22223a;
    display: flex;
    align-items: center;
    background-color: #121223;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    color: #4da6ff;
    min-width: 180px;
  }
  
  .stat-box i {
    font-size: 1.6rem;
    margin-right: 0.8rem;
    flex-shrink: 0;
  }
  
  .stat-info h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #4da6ff;
  }
  
  .stat-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #ccc;
  }
  
  
  @media (max-width: 768px) {
    .user-profile-box {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .user-stats {
      justify-content: space-between;
      width: 100%;
    }
  }
  
  .section-title{
    margin: 1rem;}    
  .dashboard-section {
    margin-top: 2rem;
  }
  
  .dashboard-subtitle {
    font-size: 1.3rem;
    color: #4da6ff;
    margin-bottom: 1rem;
    margin: 1rem;
  }
  
  .dashboard-list {
    list-style: none;
    padding-left: 0;
  }
  
  .dashboard-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .reading-progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
  }
  
  .reading-card {
    background-color: #121223;
    padding: 1rem;
    border-radius: 10px;
  }
  
  .reading-card h4 {
    color: #4da6ff;
    margin-bottom: 0.5rem;
  }
  
  .progress-bar {
    width: 100%;
    height: 12px;
    background: #333;
    border-radius: 8px;
    overflow: hidden;
    margin: 0.5rem;
  }
  
  .progress {

    height: 100%;
    background: #4da6ff;
    transition: width 0.5s ease-in-out;
    
  }
  .one{
    animation: fill1 0.8s ease-out forwards;
  }
  .two{
    animation: fill2 0.8s ease-out forwards;
  }
  .three{
    animation: fill3 0.8s ease-out forwards;
  }
  @keyframes fill1 {
    from{
        width: 0%;
    }
    to {
      width: 70%;
    }
  }
  @keyframes fill2 {
    from{
        width: 0%;
    }
    to {
      width: 20%;
    }
  } @keyframes fill3{
    from{
        width: 0%;
    }
    to {
      width: 90%;
    }
  }
  .book-horizontal-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
  }
  
  .book-box {
    margin: 1rem;
    flex: 0 0 auto;
    width: 200px;
    background-color: #1a1a2b;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s;;
  }
  .book-box:hover{
    transform: translateY(-10px);
  }
  
  .book-box p {
    font-size: 0.9rem;
    margin-top: 0.5rem;
  }
  p{
    margin: 1rem;
  }
  
  .book-cover {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
  }
  .charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem;
  }
  
  .chart-box {
    background-color: #1a1a2b;
    padding: 1rem;
    border-radius: 10px;
    color: #ccc;
    text-align: center;
  }
  
  .chart-box canvas {
    width: 100%;
    height: 240px;
  }
  .chart-description {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.4;
    text-align: left;
  }
  .footer-section {
    background-color: #22223a;
    color: #ccc;
    padding: 2rem;
    font-family: sans-serif;
    border-radius: 20px;
    margin: 1.2rem;
  }
  
  .footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  .footer-left,
  .footer-right {
    flex: 1;
    min-width: 250px;
    margin: 1rem;
  }
  
  .footer-left h3,
  .footer-right h3 {
    color: #fff;
    margin-bottom: 1rem;
  }
  
  .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
  }
  
  .contact-item i {
    margin-right: 0.5rem;
    color: #4da6ff;
    font-size: 1.2rem;
  }
  
  .footer-right p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0.4rem 0;
  }
  .bi{
    transition: all.2s;
  }
  .bi:hover{
color: white;
  }
  .stat-box i {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    color: #4da6ff;
    display: block;
  }
  .user-level-section {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  background-color: #1a1a2b;
  padding: 2rem;
  border-radius: 12px;
  margin: 1.5rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.user-level-left {
  flex: 1;
  min-width: 280px;
  color: #ccc;
}

.level-title {
  font-size: 1.5rem;
  color: #4da6ff;
  margin-bottom: 1rem;
}

.level-progress-bar {
 width: 100%;
  height: 12px;
  background-color: #333;
  border-radius: 8px;
  overflow: hidden;
  margin: 1rem 0;
  animation: fill4 0.5s ease-out forwards;
}
@keyframes fill4{
    from{
        width: 0%;
    }
    to{
        width: 70%;
    }
}

.level-progress {
  height: 100%;
  background-color: #4da6ff;
  transition: width 0.5s ease-in-out;
}

.next-level-text {
  font-size: 0.9rem;
  color: #aaa;
}

.user-level-right {
    
  display: flex;
  min-width: 300px;
  text-align: right;
  justify-content: center;
}

.level-image {
    margin-left: 1.5rem;
display: flex;
    width: 300px;
    height: 300px;
    z-index: 1;
    background: transparent;
  

  }
  
 
  