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

    body {
      font-family: Arial, sans-serif;
      background: whitesmoke;
      color: #333;
      line-height: 1.6;
    }
    

    /* ===== Navbar ===== */
    nav {
      background: #000435;
      color: #fff;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem 2rem;
      flex-wrap: wrap;
    }
  
    nav .logo {
      font-size: 1.5rem;
      font-weight: bold;
    }
    nav .logo-dash {
      position: relative;
      display: inline;
      font-size: 1.2rem;
      font-weight: bold;
    }
    nav ul {
      list-style: none;
      display: flex;
      gap: 1rem;
    }

    nav ul li a {
      text-decoration: none;
      color: #000435;
      background-color: #fff;
      font-size: 1rem;
      padding: 0.75rem 1rem;
      border-radius: 5px;
    }

    nav ul li a:hover {
      color: #38bdf8;
    }

    /* Menu toggle (hidden on desktop, shown on small screens) */
    .menu-toggle {
      display: none;
      background: transparent;
      border: 0;
      color: #fff;
      font-size: 1.4rem;
      padding: .25rem .5rem;
      cursor: pointer;
    }

    /* ===== Hero Section ===== */
    .hero {
      text-align: center;
      padding: 4rem 2rem;
      /*background: linear-gradient(135deg, #38bdf8, #0ea5e9);*/
      color: #000435;
    }
    a.home {
      text-decoration: none;
      color: #fff;
    }
    .hero h1 {
      font-size: 2.5rem;
      margin-bottom: 1rem;
    }

    .hero p {
      font-size: 1.2rem;
      max-width: 600px;
      margin: auto;
    }
    .hero-image {
      margin-top: 2rem;
      max-width: 100%;
      height: auto;
      border-radius: 10px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }    
    .code-image {
      
      width: 100%;
      height: auto;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    /* ===== Code Section ===== */
    .code-section {
      padding: 3rem 2rem;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 2rem;
    }
    .inner-state {
      
      padding: 1rem;
      display: flex;
      flex-direction: column;
      border-radius: 8px;
      box-shadow: 0 6px 18px rgba(0,0,0,0.06);
      margin-bottom: 1rem;
    }

    .code-card {
      background: #000435;
      color: #e2e8f0;
      border-radius: 10px;
      padding: 1.5rem;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
      overflow-x: auto;
    }
    .code-card h3{
    background-color: yellow;
    color: #000435;
    display: inline;
    padding: 5px 10px;
    border-radius: 10px;
    }
    .code-card ul {
      list-style-type: disc;
      padding-left: 1.5rem;
      margin-top: 1rem;
      font-size: large;
    }
    .code-card pre {
      white-space: pre-wrap;
      word-wrap: break-word;
      font-family: "Courier New", monospace;
      font-size: 0.95rem;
    }

    /* ===== Footer ===== */
    footer {
      text-align: center;
      background: #1e293b;
      color: #fff;
      padding: 1rem;
      margin-top: 2rem;
    }
    .login-container {
      max-width: 420px;
      margin: 6rem auto;
      padding: 2rem;
      background: #fff;
      border-radius: 8px;
      box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    }
    .login-container h2, .login-container h4 { margin-bottom: 1rem; color: #000435; text-align: center }
    .form-group { margin-bottom: 1rem }
    .form-group h4 { text-align: center; margin-top: 1rem }
    label { display:block; margin-bottom: .25rem }
    input[type="text"], input[type="password"], input[type="email"], input[type="date"] { width:100%; padding:.5rem; border:1px solid #ddd; border-radius:4px }
    button { background:#000435; color:#fff; border:none; padding:.6rem 1rem; border-radius:6px; cursor:pointer }
    .back-link { display:block; margin-top:1rem; color:#333; text-align:center }
     .menu-btn {
  display: none;
  font-size: 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: white;
}
    /* ===== Responsive Navbar ===== */
   
   

    /* Dashboard layout with left sidebar (fixed to left corner under nav) */
    .app-layout { 
      display: flex; 
      min-height: 100vh;
      margin:0px;
      background-color: #eaf1f1;
      padding: 0;
    }
    /* Sidebar styles */ 
    .sidebar {
      width: 240px;
      background: #000435;
      color: #fff;
      display: flex;
      flex-direction: column;
      padding: 1rem;
      transition: transform 0.3s ease, background 0.3s ease;
      box-sizing: border-box;
      height: auto;
      overflow-y: auto;
           
    }
    .sidebar .nav-item { display:block; padding:.6rem .8rem; color:#e2e8f0; text-decoration:none; border-radius:6px; margin-bottom:.3rem }
    .sidebar .nav-item:hover { background: rgba(111, 147, 224, 0.671); color:#fff }
    /* main content must leave space for the fixed sidebar */
    .main-area { 
      flex: 1;
      /* match sidebar width exactly */
      padding: 1rem 2rem;
      box-sizing: border-box;
      max-width: 100%;
     
    }

    @media (max-width: 1100px) { .main-area { margin-left: 5px; } }
    /* On narrow screens revert to stacked layout where sidebar is not fixed */
    @media (max-width: 900px) {
      .dashboard { 
        flex-direction: column;
        display: block;
      }
      .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 1000;
    transform: translateX(-100%);
   
  }
   .menu-btn {
    display: block;
  }
        .main-area { margin-left: 5px; padding: 2px; margin-right: 5px; }
    }
    @media (max-width: 768px) {
      nav ul {
        flex-direction: column;
        width: 100%;
        display: none;
        background: #000435;
        padding: 1rem 0;
        position: absolute;
        top: 60px;
        left: 0;
      }

      nav ul.active {
        display: flex;
      }

      .menu-toggle {
        display: block;
      }
      .menu-btn {
    display: block;
    color: white;
  }
  .sidebar.show {
    transform: translateX(0);
  }
      /* make nav links readable on dark mobile menu */
      nav ul li a { color: #e2e8f0; background: transparent; padding: .5rem 1rem }
    }
    /* Profile cards grid */
    .profile-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:1rem; margin-top:1rem }
    .profile-card { background:#fff; padding:1rem; border-radius:8px; box-shadow: 0 6px 18px rgba(0,0,0,.06); }
    .profile-card h4 { margin:0 0.5rem 0.5rem 0; color:#000435 }
    .profile-meta { font-size:0.95rem; color:#555; margin-top:.5rem }
  /* Filter form */
  .filter-form { display:flex; gap:.5rem; flex-wrap:wrap; align-items:end; margin-top:1rem }
  .filter-form .field { display:flex; flex-direction:column; }
  .filter-form input, .filter-form select { padding:.4rem; border:1px solid #ddd; border-radius:4px }
  .view-link { display:inline-block; margin-top:.75rem; color:#0ea5e9; text-decoration:none; }
  /* Dashboard header */
  .dashboard-header { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin:0 0 1rem 0; }
  .dashboard-header h2 { margin:0; font-size:1.25rem; color:#fff; }
  .avatar {
    width:44px; height:44px; border-radius:50%; background:#0ea5e9; color:#fff; display:inline-flex; align-items:center; justify-content:center; font-weight:700; box-shadow:0 2px 6px rgba(0,0,0,0.12);
  }
  .avatar img { width:100%; height:100%; object-fit:cover; border-radius:50% }
  .profile-all{
    display: flex;
    gap: 0; /* no space between children */
    height: 50%; 
  }
  /* Center primary form buttons (login/signup/save) */
  .form-group button { display: block; margin: 0.5rem auto 0; }
  .profile-view{
    background-color: white;
    border-radius: 15px;
  }
  .sidebar.show {
    transform: translateX(0);
  }