/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #f8faff;
  color: #333;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-box {
  width: 36px;
  height: 36px;
  background-color: #4169e1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 18px;
}

.logo-text {
  font-size: 20px;
  font-weight: 600;
}

.up {
  color: #4169e1;
}

/* Exit Section */
.exit-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.exit-text {
  color: red;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 2px;
}

.live-badge {
  background: #4ade80;
  color: #fff;
  padding: 3px 10px;
  font-size: 12px;
  border-radius: 40px;
  margin-top: 6px;
  /* ADD THIS */
}

/* Main Layout */
.main-container {
  max-width: 820px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Session info */
.session-info h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.session-info p {
  color: #444;
  margin-bottom: 25px;
}

/* Ask Container */
.ask-container {
  background: #fff;
  padding: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  margin-bottom: 30px;
}

.ask-container h3 {
  margin-bottom: 14px;
}

.ask-textarea {
  width: 100%;
  height: 90px;
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  resize: none;
  font-size: 15px;
}

.ask-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.char-count {
  color: #555;
}

.add-image-label {
  color: #666;
  margin-left: auto;
  margin-right: 20px;
}

.submit-btn {
  background: #4169e1;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

/* Class Questions Section */
.class-title {
  margin-bottom: 14px;
  margin-top: 20px;
}

/* Question Card */
.question-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 16px;
  border-radius: 10px;
}

.question-text {
  font-size: 16px;
  margin-bottom: 16px;
}

.question-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.like-btn {
  background: none;
  border: 1px solid #ddd;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.like-btn:hover {
  background: #f0f0f0;
}

.like-btn.liked {
  background-color: #e3f2fd;
  border-color: #2196f3;
  color: #2196f3;
  font-weight: 600;
}

/* ---------------- Responsive Design ---------------- */

/* Tablet & Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .header {
    padding: 15px 20px;
  }

  .ask-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .add-image-label {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 10px;
    text-align: center;
  }

  .submit-btn {
    width: 100%;
  }

  .exit-section {
    align-items: flex-end;
    /* Keep aligned to right */
  }

  .logo-text {
    font-size: 18px;
    /* Slightly smaller logo text */
  }
}