html, body {
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
}

body {
  background: #f5f6fa;
  display: flex;
  flex-direction: column; 
  height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background: #2f3640;
  color: white;
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
  position: fixed; 
  top: 0;
  left: 0;
  bottom: 0;
}

.sidebar h2 {
text-align: center;
  font-size: 20px;
  margin-bottom: 20px;
  color: #00a8ff;
  text-transform: uppercase;
}

.sidebar select, .sidebar button {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  color:#000;
}

.sidebar button {
   background: #00a8ff;
  color: #000;
  cursor: pointer;
}

.sidebar button:hover {
  background: #0097e6;
}

/* Chat Area */
.chat-container {
  margin-left: 270px; /* Offset to the right of the sidebar */
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 15px;
  box-sizing: border-box;
}

.chat-header {
  background: #00a8ff;
  color: white;
  padding: 15px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}

.chat-box {
  flex: 1;
  background: #fff;
  overflow-y: auto;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 5px;
}

.chat-message {
  margin: 5px 0;
  max-width: 70%;
  padding: 10px;
  border-radius: 10px;
}

.chat-message.sent {
  background: #dcdde1;
  align-self: flex-end;
  text-align: right;
}

.chat-message.received {
  background: #f1f2f6;
  align-self: flex-start;
}

/* Chat Input */
.chat-input {
  display: flex;
  padding: 10px;
  background: #f5f6fa;
  border-top: 1px solid #ccc;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #ccc;
  margin-right: 10px;
}

.chat-input button {
  background: #00a8ff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.chat-input button:hover {
  background: #0097e6;
}

/* Footer Styling */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 10px;
  position: fixed;
  bottom: 0;
  width: 100%;
}

footer p {
  margin: 0;
}

/* Links Styling */
a {
  text-decoration: none;
  color: #fff;
  text-transform: uppercase;
  font-weight: bold;
}

a:hover {
  text-decoration: underline;
}
.main-content {
  margin-left: 270px; /* Offset to the right of the sidebar */
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 15px;
  box-sizing: border-box;
}

.content-header {
  background: #00a8ff;
  color: white;
  padding: 15px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}

.content-body {
  background: #fff;
  padding: 15px;
  margin-top: 15px;
  border-radius: 5px;
  flex-grow: 1;
  display: flex;
  gap: 20px; 
  box-sizing: border-box;
}

.box {
  background: #dcdde1;
  padding: 20px;
  border-radius: 5px;
  width: 48%; 
  text-align: center;
  box-sizing: border-box;
}

.box p {
  font-size: 18px;
  font-weight: bold;
}

form{
      background-color: #ffffff;
      padding: 20px;
      border-radius: 8px;
      box-shadow:0px 0px 10px rgba(0,0,0,0.1);
      max-width:600px;
      margin: 20px auto;
     }
form label{
            font-size: 16px;
            margin-bottom: 8px;
            display:block;
            color: #333;
     }


/* Responsive Design */
@media screen and (max-width: 768px) {
  /* Stack sidebar and chat container vertically */
  body {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    padding: 15px;
    position: relative; 
  }

  .chat-container {
    margin-left: 0;
  }

  .chat-header {
    font-size: 16px;
  }

  .chat-box {
    padding: 10px;
  }

  .chat-input input {
    font-size: 14px;
    padding: 8px;
  }

  .chat-input button {
    padding: 8px 16px;
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  .sidebar h2 {
    font-size: 18px;
  }

  .sidebar select, .sidebar button {
    font-size: 14px;
  }

  .chat-header {
    font-size: 14px;
  }
}
/* Main Content */
  .main {
    margin-left: 250px;
    padding: 20px;
    width: calc(100% - 250px);
    transition: 0.3s;
  }

  .topbar {
    background: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .topbar h1 {
    font-size: 22px;
  }

  .search-box input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
  }

  /* Cards Section */
  .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 25px;
  }

  .card {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
  }

  .card:hover {
    transform: translateY(-5px);
  }

  .card h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .card p {
    font-size: 24px;
    color: #00bcd4;
    font-weight: bold;
  }

  /* Activity Section */
  .activity {
    margin-top: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }

  .activity h2 {
    margin-bottom: 15px;
  }

  .activity ul {
    list-style: none;
  }

  .activity ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }

  .toggle-btn {
    display: none;
  }

  @media (max-width: 768px) {
    .sidebar {
      width: 200px;
      position: absolute;
      left: -200px;
    }
    .sidebar.active {
      left: 0;
    }
    .main {
      margin-left: 0;
      width: 100%;
    }
    .toggle-btn {
      display: block;
      background: #00bcd4;
      color: #fff;
      border: none;
      padding: 8px 15px;
      border-radius: 5px;
      cursor: pointer;
    }
  }
