    :root {
      --green: #4CAF50;
      --sidebar-w: 240px;
      --radius: 12px;
    }
    *{box-sizing:border-box}
    body {
      margin:0;
      font-family: system-ui, sans-serif;
      background:#f8f9fa;
      color:#333;
    }
    .app {
      display:flex;
      height:100vh;
    }
    /* Sidebar */
    .sidebar {
      width:var(--sidebar-w);
      background:#fff;
      border-right:1px solid #ddd;
      padding:1rem;
      display:flex;
      flex-direction:column;
    }
    .sidebar h2 {
      font-size:1.2rem;
      margin-bottom:1rem;
      display:flex;
      align-items:center;
      gap:.5rem;
    }
    .nav-link {
      display:flex;
      align-items:center;
      gap:.5rem;
      padding:.5rem;
      border-radius:var(--radius);
      cursor:pointer;
      color:#333;
      text-decoration:none;
      margin:.2rem 0;
    }
    .nav-link:hover,
    .nav-link.active {
      background:var(--green);
      color:#fff;
    }
    /* Content */
    .content {
      flex:1;
      padding:2rem;
      overflow-y:auto;
    }
    .content-section {
      display:none;
    }
    .content .download-btn a{
        text-decoration: none;
        color:red;
    }
    /* Profile */

    .profile-icon {
      width:60%;
      height:45px;
      
      background:;
      margin:0 auto 1rem;
      display:flex;
      
      justify-content:center;
      font-size:2rem;
      color:#666;
    }
    /* Timeline / History */
 #history {
  padding: 40px 20px;
  text-align: center;
  position: relative;
}

#history h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.history-controls {
  margin-bottom: 20px;
}

#growBtn {
  padding: 10px 20px;
  border: none;
  background: #4CAF50;
  color: white;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}
#growBtn:hover { background: #45a049; }

.timeline {
  position: relative;
  width: 100%;
  margin: 0 auto;
  max-width: 900px;
  padding: 20px 0;
}


.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 0;
  background: #4CAF50;
  transition: height 2s ease;
}

.timeline.active::before {
  height: 100%;
}

.root-base {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 20px;
  background: #4CAF50;
  border-radius: 0 0 50% 50%;
}

.timeline-item {
  opacity: 0;
  transition: opacity 1s ease;
  position: relative;
  width: 100%;
  margin: 30px 0;
 }

.timeline-item .branch {
  position: absolute;
  top: 25px;
  height: 2px;
  background: #4CAF50;
  width: 0;
  transition: width 1s ease;
}

.timeline-item.left .branch {
  right: 50%;
}

.timeline-item.right .branch {
  left: 50%;
}

.timeline-item .content {
  background: white;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 400px;
 }

.timeline-item.left .content {  
  margin-right:auto;
}

.timeline-item.right .content {
  margin-left: auto;
}

.timeline.active .timeline-item {
  opacity: 1;
}

.timeline.active .timeline-item .branch {
  width: var(--branch-l);
}








/* Surprise note */
.surprise-note {
display: none;
  margin-top: 30px;
  font-size: 18px;
  font-weight: bold;
  color: #2e7d32;
  background: #e8f5e9;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


/* Responsive */
@media (max-width: 720px) {
  .timeline::before {
    left: 30px;
    transform: none;
  }

  .root-base { display: none; }

  .timeline-item {
    text-align: left !important;
    margin: 28px 0;
    display: flex;
    flex-direction: row;
  }

  .timeline-item .branch {
    left:  !important;
    right: auto;
  }

  .timeline-item .content {
    margin-left: calc(30px + var(--branch-l) + 12px);
    margin-right: 0;
    width: calc(100% - 80px);
  }

  .timeline-item.left .content,
  .timeline-item.right .content {
    margin: 0 0 0 calc(80px + var(--branch-l) + 12px);
  }
}
    /* Mobile sidebar */
        .hamburger {
      display:none;
      position:fixed;
      top:1rem;
      left:1rem;
      width:30px;
      height:24px;
      background:none;
      border:none;
      cursor:pointer;
      z-index:1100;
    }
    .hamburger span {
      display:block;
      width:100%;
      height:4px;
      margin:4px 0;
      background:#333;
      border-radius:4px;
      transition:0.3s;
    }
    .scrim {
      display:none;
      position:fixed;
      inset:0;
      background:rgba(0,0,0,0.5);
      z-index:900;
    }
    .scrim.show { display:block; }

    @media(max-width:768px){
      .sidebar {
        position:fixed;
        top:0;
        left:-100%;
        height:100%;
        transition:left .3s ease;
        z-index:999;
      }
      .sidebar.active { left:0; }
      .hamburger { display:block; }
    }
.welcome{font-size:20px; margin-bottom:18px}

    /* Stats */
    .stats{display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:15px; margin-bottom:26px}
    .card{background:#fff; padding:20px; border-radius:var(--radius); text-align:center; box-shadow:0 2px 6px rgba(0,0,0,.08); transition:transform .2s}
    .card:hover{transform:translateY(-3px)}
    .card h2{color:var(--green); font-size:24px}
    .card p{margin-top:6px; font-size:14px}

    /* ===== Ongoing Orders (polished) ===== */
    .orders h3{margin:8px 0 14px}
    .order-box{
      background:#fff; border-radius:16px; padding:18px;
      box-shadow:0 2px 10px rgba(0,0,0,.08);
      transition:transform .2s, box-shadow .2s;
    }
    .order-box + .order-box{margin-top:16px}
    .order-box:hover{transform:translateY(-3px); box-shadow:0 6px 16px rgba(0,0,0,.14)}

    .order-header{display:flex; gap:12px; justify-content:space-between; align-items:center; cursor:pointer}
    .order-title{font-size:16px; font-weight:700}
    .order-value{font-weight:700; color:#1b5e20; background:#e8f5e9; padding:6px 10px; border-radius:10px}

    /* animated details */
    .order-details{
      overflow:hidden; max-height:0; transition:max-height .3s ease, opacity .3s ease;
      opacity:0; margin-top:0;
    }
    .order-details.open{max-height:500px; opacity:1; margin-top:10px}

    .line{
      display:flex; align-items:center; justify-content:space-between;
      padding:10px 12px; border-radius:10px; background:#f7f7f8; margin:6px 0;
      transition:background .2s, transform .15s, box-shadow .2s;
    }
    .line:hover{background:#eef7f1; box-shadow:inset 0 0 0 1px rgba(76,175,80,.25)}
    .line .name{font-weight:600}
    .status{padding:6px 10px; border-radius:999px; font-size:12px; font-weight:700; color:#fff; white-space:nowrap}
    .awaiting{background:#ff9800}
    .inprocess{background:#2196f3}
    .delivered{background:#2ecc71}

/* Profile Section */
.profile-card {
  max-width: 400px;
  margin: 50px auto;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.2s ease-in-out;
}
.profile-card:hover {
  transform: translateY(-3px);
}
.profile-header {
  margin-bottom: 20px;
}
.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #4CAF50;
  margin-bottom: 10px;
}
.profile-name {
  font-size: 22px;
  font-weight: bold;
  margin: 5px 0;
}
.profile-role {
  color: #777;
  font-size: 14px;
}
.profile-details {
  text-align: left;
  margin-top: 20px;
  font-size: 15px;
  color: #333;
}
.profile-details p {
  margin: 8px 0;
}
.profile-actions {
  margin-top: 25px;
}
.logout-btn {
  background: #e53935;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}
.logout-btn:hover {
  background: #c62828;
}
.certificate-container {
      max-width: 700px;
      margin: 20px auto;
      padding: 2rem;
      border: 4px solid #4CAF50;
      border-radius: 16px;
      background: #fff;
      text-align: center;
      box-shadow: 0 8px 25px rgba(0,0,0,0.08);
      position: relative;
      text-decoration: none;
    }
    .certificate-container h2 {
      font-size: 1.8rem;
      margin-bottom: 10px;
      color: #2e7d32;
    }
    .certificate-container p {
      margin: 6px 0;
      font-size: 1rem;
    }
    .certificate-seal {
      position: absolute;
      bottom: 20px;
      right: 20px;
      font-size: 2rem;
      color: #4CAF50;
    }
    .download-btn{
      margin-top: 20px;
      padding: 10px 18px;
      background: #2e7d32;
      color: #fff;
      border: none;
      border-radius: 8px;
      font-size: 0.95rem;
      cursor: pointer;
      transition: background 0.3s ease;
      text-decoration: none;
    }
    
    .download-btn:hover {
      background: #256128;
    }


    
    
    
    
    