/* ===== General Layout ===== */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff4f4;
    color: #333;
  }
  
  header {
    background-color: #ff6f91;
    padding: 16px;
    color: white;
    text-align: center;
  }
  
  nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0;
    margin: 0;
  }
  
  nav ul li a,
  nav ul li button {
    color: white;
    text-decoration: none;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
  }
  
  nav ul li a:hover {
    text-decoration: underline;
  }
  
  /* ===== Hero Section ===== */
  .hero {
    text-align: center;
    padding: 50px 20px;
    background-color: #fea7bb;
    color: #222;
  }
  
  .hero h1 {
    font-size: 32px;
    margin-bottom: 10px;
  }
  
  .hero p {
    font-size: 18px;
  }
  
  /* ===== Container Wrapper ===== */
  .container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
  }
  
  /* ===== Feature Section ===== */
  .feature-section {
    background-color: #fff;
    margin: 30px 0;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(255, 105, 135, 0.2);
  }
  
  .feature-section h2 {
    margin-bottom: 10px;
    font-size: 24px;
    color: #ff3c6f;
  }
  
  .feature-section p {
    font-size: 16px;
    margin-bottom: 20px;
  }
  
  @keyframes appear{
    from{
        opacity: 0;
        scale: 0.5;
    }
    to{
        opacity: 1;
        scale: 1;
    }
}
.feature-section{
    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
}
  /* ===== Forms ===== */
  form {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  form label {
    font-weight: bold;
  }
  
  form input {
    padding: 10px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* ===== Buttons ===== */
  .tracker-btn {
    background-color: #ff6f91;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
  }
  
  .tracker-btn:hover {
    background-color: #ff3c6f;
  }
  
  /* ===== Result Output ===== */
  #periodResult {
    margin-top: 20px;
    font-weight: 500;
    color: #333;
  }
  
  /* ===== Footer ===== */
  footer {
    background-color: #ff6f91;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 40px;
  }
  
  /* ===== Responsive Design ===== */
  @media (max-width: 600px) {
    nav ul {
      flex-direction: column;
      align-items: center;
    }
  
    .hero h1 {
      font-size: 26px;
    }
  
    .hero p {
      font-size: 16px;
    }
  
    form input,
    .tracker-btn {
      font-size: 14px;
    }
  
    .container {
      padding: 15px;
    }
  }
  
  /* ===== Sidebar Layout ===== */
.main-wrapper {
    display: flex;
    flex-direction: row;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .sidebar {
    width: 220px;
    padding: 20px;
    background-color: #ffe2e8;
    position: sticky;
    top: 0;
    height: fit-content;
    border-radius: 0 0 12px 12px;
  }
  
  .sidebar h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #ff3c6f;
  }
  
  .sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .sidebar ul li {
    margin-bottom: 10px;
  }
  
  .sidebar ul li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
  }
  
  .sidebar ul li a:hover {
    color: #ff3c6f;
    text-decoration: underline;
  }
  
  /* Main content next to sidebar */
  .container {
    flex: 1;
    padding: 20px;
  }
  
  /* ===== Responsive Adjustments ===== */
  @media (max-width: 768px) {
    .main-wrapper {
      flex-direction: column;
    }
  
    .sidebar {
      width: 100%;
      position: static;
      margin-bottom: 20px;
      border-radius: 0;
    }
  
    .container {
      padding: 15px;
    }
  }
  
  .chatbox {
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 15px;
    max-width: 600px;
    margin-top: 20px;
    background: #f9f9f9;
  }
  
  .chat-log {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 10px;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
  }
  
  .chat-log p {
    margin: 5px 0;
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 80%;
  }
  
  .chat-log .user-msg {
    background-color: #d1e7dd;
    align-self: flex-end;
    text-align: right;
    margin-left: auto;
  }
  
  .chat-log .bot-msg {
    background-color: #e2e3e5;
    align-self: flex-start;
    text-align: left;
    margin-right: auto;
  }
  
  .chat-input {
    display: flex;
    gap: 10px;
  }
  
  #userInput {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
  }
  
  #sendBtn {
    padding: 10px 20px;
    border: none;
    background-color: #3f51b5;
    color: white;
    border-radius: 8px;
    cursor: pointer;
  }
  