:root {
  --primary: #1e3a8a;

  --accent: #74aef6;
  --light-bg: #f5f7fa;
  --card-bg: #ffffff;
  --text-dark: #1f2937;
  --text-light:#ffffff;
}

/* === Base Styels === */
*{
    margin:0;
    padding:0;
    box-sizing: border-box;
}
body{
    font-family: 'Segoe UI','Inter',sans-serif;
    background-color: #f5f7fa;
    color:#1f2937;
    display: flex;
    font-size:14px;
}

/* === Responsive tweaks for body ==== */

@media(min-width:768px){
    body{
        font-size: 16px;
    }
}
@media(min-width:1024px){
    body{
        font-size: 18px;
    }
}


section{
    margin-bottom: 40px;
}


/* === Sidebar Styles === */

.sidebar{
    display: none;
}

/* === responsive tweaks for sidebar === */
@media(min-width:768px){
    .sidebar{
        display: block;
        width:220px;
        background-color: var(--primary);
        color: var(--text-light);
        height:100vh;
        position:fixed;
        top:0;
        left:0;
        padding:20px;
    }
    .main-wrapper{
    margin-left:220px;
    width:calc(100% - 220px);
    display:flex;
    flex-direction: column;
    min-height: 100vh;
}
}

.sidebar .logo{
    font-size: 24px;
    font-weight:bold;
    margin-bottom:30px;
    text-align:center;
}
.nav-links{
    list-style:none;
    padding-left:0;
}
.nav-links a{
    text-decoration: none;
    margin-bottom:15px;
    color:var(--text-light);
    font-size:16px;
    display: block;
    transition:0.3s ease;
}
.nav-links a:hover{
    background-color:var(--accent);
    padding-left:10px;
    border-radius:4px;
}

/* === Hamburger Menu (for small screens) === */
.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  font-size: 20px;
  color: var(--primary);
  padding: 16px;
  cursor: pointer;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1000;
  background-color: #fff;
  border-bottom-right-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Show hamburger on small screens */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .sidebar {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    right: 0;
    height: 100vh;
    width: 220px;
    background-color: var(--primary);
    color: var(--text-light);
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  /* Show sidebar when menu is toggled */
  .menu-toggle:checked + .hamburger + .sidebar {
    display: block;
    transform: translateX(0);
  }

  .main-wrapper {
    margin-left: 0;
    width: 100%;
  }
}




/* === Heade Navbar === */

.top-navbar{
    width:100%;
    background-color:var(--card-bg);
    padding:15px 20px;
    display:flex;
    align-items: center;
    border-bottom: 1px solid var(--light-bg);
}
.student-info{
    display: flex;
    align-items:center;
    gap:10px;
}
.avatar{
    width:40px;
    height:40px;
    border-radius: 50%;
    object-fit:cover;
    border:1px solid var(--primary);
}
.student-name{
    font-weight:600;
    font-size:16px;
    color:var(--primary);

}
.notifications li{
    display: block;
    font-size:20px;
    margin-left:15px;
    color:var(--primary);
}

@media(min-width:600px){
    .top-navbar{
        width:100%;
        background-color:var(--card-bg);
        padding:15px 20px;
        display:flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--light-bg);
}

}
/* Dashboard Grid */

.dashboard-main {
  display:flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  flex-grow: 1;
}
@media(min-width:768px){
.dashboard-main {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 20px;
  padding: 20px;
  
}
}
.main-content{
    display: flex;
    flex-direction: column;
    gap:20px;
}

/* === Overview Cards Styles === */ 
.overview-cards{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap:20px;
    padding:20px;
    margin :0 auto;
    width:100%;
}
.card{
    
    background-color: var(--card-bg);
    padding:20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}
.card:hover{
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}
.card h3{
    font-size:18px;
    color:var(--primary);
    margin-bottom: 10px;
}
.card p{
    font-size: 24px;
    font-weight:bold;
    color:var(--text-dark);
}

/* === Progress Table === */
.progress-table{
    width:100%;
    padding:20px;
    max-width:1000px;
    margin:0 auto;
}
.progress-table h2{
    margin-bottom:20px;
    color:var(--primary);
}
table{
    width:100%;
    border-collapse:collapse;
    background-color:#fff;
    border-radius: 8px;
    overflow:hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.table:hover{
    transform: translateY(-4px);
}
th,td{
    text-align:left;
    padding:15px 20px;
    border-bottom:1px solid #f0f0f0;
    font-size:15px;
}
th{
    background-color: #f8fafc;
    color:#374151;
    font-weight: 600;
}

/* Progress Bar */
.progress-bar{
    width:100%;
    height:18px;
    background-color:#eee;
    border-radius:6px;
    overflow:hidden;
}
.fill{
    height:100%;
    background-color:var(--accent);
    position:relative;
    display:flex;
    align-items: center;
    justify-content: flex-end;
    padding-right:8px;
    color:white;
    font-size:12px;
    font-weight:bold;
    border-radius:20px;
    transition: width 0.3s ease-in-out;
}

/* === Upcoming Deadlines === */
.deadlines{
    width:100%;
    padding:20px;
    max-width:1000px;
    margin:0 auto;
}
.deadlines h2{
    margin-bottom:20px;
    color:var(--primary);
}
.deadline-list{
    list-style:none;
    padding-left: 0;
}
.deadline-list li{
    background-color: var(--light-bg);
    padding:15px 20px;
    margin-bottom: 12px;
    border-left:5px solid var(--accent);
    border-radius:6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    display:flex;
    align-items: center;
    gap:15px;
}
.deadline-list li:hover{
    transform: translateY(-5px);
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.date-badge{
    background-color:var(--primary);
    color:var(--text-light);
    padding:5px 12px;
    border-radius:20px;
    font-size:14px;
    font-weight: bold;
    min-width:70px;
    text-align: center;
}


/* Profile Card */
.profile-card {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  max-width: 100%;
  height: fit-content;
  transition: transform 0.3s ease;
}
.profile-card:hover{
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}
.profile-pic {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 10px;
  border:1px solid var(--primary);
}

.profile-info {
  list-style: none;
  padding-left: 0;
  text-align: left;
}

.profile-info li {
  margin-bottom: 8px;
  font-size: 14px;
}


/* Mobile responsive: Stack layout */
@media (max-width: 768px) {
  .dashboard-main {
    grid-template-columns: 1fr;
  }
}
