/* =========================================
   GLOBAL RESET & BASE
========================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  height: 100%;
  font-family: 'Poppins', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================================
   HEADER & NAVIGATION
========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 10;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  height: 55px;
}

.nav-links a {
  color: #1D4E89;
  margin-left: 20px;
  font-weight: 600;
  transition: 0.2s;
}

.nav-links a:hover {
  color: #FF8C32;
}

/* Prevent overlap with hero */
.hero {
  margin-top: 80px;
}

/* =========================================
   HERO / LANDING - GRADIENT VERSION
========================================= */
.hero {
  background: linear-gradient(135deg, #1D4E89, #FF8C32);
  text-align: center;
  color: white;
  padding: 140px 20px 100px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.25);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: auto;
}

.logo {
  width: 120px;
  margin-bottom: 20px;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
}

.tagline {
  font-size: 1.3rem;
  margin: 10px 0 25px;
  font-weight: 500;
}

.subtext {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* =========================================
   BUTTONS - Unified Deep Blue Theme
========================================= */
.btn {
  padding: 14px 28px;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  margin: 5px;
  cursor: pointer;
}

.primary {
  background-color: #0056b3; /* Deep Blue */
  color: #fff;
}

.secondary {
  background-color: #0056b3; /* Same as primary for consistency */
  color: #fff;
  border: 2px solid #0056b3;
}

.btn:hover,
.primary:hover,
.secondary:hover {
  background-color: #FF8C32; /* Signature orange */
  border-color: #FF8C32;
  color: #fff;
  transform: scale(1.05);
}

/* =========================================
   FEATURES SECTION
========================================= */
.features {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
}

.features h2 {
  font-size: 2rem;
  color: #1D4E89;
  margin-bottom: 40px;
}

.feature-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.feature {
  background: #fdfdfd;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  width: 280px;
}

.feature h3 {
  color: #FF8C32;
  margin-bottom: 10px;
}

/* =========================================
   SIGNUP SECTION
========================================= */
.signup {
  background-color: #FF8C32;
  color: white;
  text-align: center;
  padding: 60px 20px;
}

.signup h2 {
  margin-bottom: 20px;
}

.signup input {
  padding: 12px;
  width: 250px;
  border: none;
  border-radius: 25px;
  margin-right: 10px;
  outline: none;
}

/* =========================================
   FORM STYLING (Login / Register / Apply)
========================================= */
.form-container {
  max-width: 450px;
  margin: 120px auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 30px;
  text-align: center;
}

.form-container h2 {
  margin-bottom: 15px;
  color: #1D4E89;
}

.form-container input,
.form-container select,
.form-container textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.form-container label {
  display: block;
  text-align: left;
  font-weight: 600;
  color: #1D4E89;
  margin-top: 10px;
}

.form-container .btn {
  width: 100%;
  margin-top: 15px;
}

.msg {
  color: #1D4E89;
  font-weight: 500;
  margin-bottom: 15px;
}

/* =========================================
   DASHBOARD STYLING
========================================= */
.dashboard {
  max-width: 750px;
  margin: 120px auto;
  text-align: center;
  padding: 20px;
}

.dashboard h2 {
  color: #1D4E89;
  margin-bottom: 25px;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 25px;
  margin-bottom: 25px;
  text-align: left;
}

.card h3 {
  color: #FF8C32;
  margin-top: 0;
}

.booking p {
  margin: 6px 0;
}

hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 10px 0;
}

/* =========================================
   FOOTER
========================================= */
.site-footer {
  background: #1D4E89;
  color: white;
  text-align: center;
  padding: 20px 10px;
  font-size: 0.9rem;
  margin-top: 60px;
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
  }

  .feature-grid {
    flex-direction: column;
    align-items: center;
  }

  .form-container {
    margin: 100px 20px;
  }

  .hero {
    padding: 100px 20px;
  }

  h1 {
    font-size: 2.2rem;
  }

  .tagline {
    font-size: 1.1rem;
  }

  .dashboard {
    margin: 100px 20px;
  }
}

/* =========================================
   NEW: LESSON / VIDEO / CHAT AREA
========================================= */
.lesson-wrapper {
  padding: 120px 20px;
  text-align: center;
  background: linear-gradient(135deg, #1D4E89, #FF8C32);
  color: white;
}

.lesson-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 30px;
}

.video-section, .side-panel {
  background: #fff;
  color: #333;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 20px;
}

.video-section { flex: 1; min-width: 340px; }
.side-panel { width: 350px; }

.video-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.video-grid video {
  width: 300px;
  height: 220px;
  background: #000;
  border-radius: 12px;
  border: 3px solid #1D4E89;
}

.controls {
  text-align: center;
  margin-top: 10px;
}

.controls button {
  background: #0056b3;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 5px;
  cursor: pointer;
  transition: .3s;
}

.controls button:hover {
  background: #FF8C32;
  transform: scale(1.05);
}

.side-panel .tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}

.side-panel .tab {
  flex: 1;
  background: #eee;
  border: none;
  border-radius: 8px;
  padding: 8px;
  font-weight: 600;
  cursor: pointer;
}

.side-panel .tab.active {
  background: #1D4E89;
  color: #fff;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

#chatBox {
  height: 250px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fafafa;
  padding: 10px;
  margin-bottom: 10px;
}

.msg {
  margin: 4px 0;
  padding: 6px 8px;
  border-radius: 8px;
}

.msg.me { background: #dce9ff; text-align: right; }
.msg.other { background: #fff0e0; text-align: left; }

.chat-input {
  display: flex;
  gap: 6px;
}

.chat-input input {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px;
}

.chat-input button {
  background: #FF8C32;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

.chat-input button:hover {
  background: #1D4E89;
}

#lessonNotes {
  width: 100%;
  height: 250px;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px;
}

.note-actions { text-align: right; margin-top: 8px; }

#fileList a {
  display: block;
  color: #1D4E89;
  margin: 4px 0;
}
/* =========================================
   BOOSTMYLINGO LIVE LESSON PAGE
========================================= */

.lesson-wrapper {
  padding: 120px 20px 60px;
  background: linear-gradient(135deg, #1D4E89, #FF8C32);
  color: #fff;
  text-align: center;
  min-height: 100vh;
}

.lesson-wrapper h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.lesson-wrapper p {
  opacity: 0.9;
  font-size: 1rem;
  margin-bottom: 30px;
}

.lesson-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* VIDEO SECTION */
.video-section {
  background: #fff;
  color: #333;
  flex: 1;
  min-width: 360px;
  max-width: 700px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 20px;
}

.video-section video,
.video-section iframe {
  width: 100%;
  border-radius: 12px;
  background: #000;
  border: 3px solid #1D4E89;
}

.controls {
  text-align: center;
  margin-top: 15px;
}

.controls button {
  background: #0056b3;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  margin: 5px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 600;
}

.controls button:hover {
  background: #FF8C32;
  transform: scale(1.05);
}

/* RIGHT PANEL (CHAT / NOTES / FILES) */
.side-panel {
  width: 350px;
  background: #fff;
  color: #333;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 15px;
  text-align: left;
}

/* Tabs */
.tab-buttons {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  margin-bottom: 10px;
}

.tab-buttons button {
  flex: 1;
  background: #eee;
  border: none;
  border-radius: 8px;
  padding: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.tab-buttons button.active {
  background: #1D4E89;
  color: #fff;
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* CHAT BOX */
.chat-box {
  height: 260px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fafafa;
  padding: 10px;
  margin-bottom: 10px;
}

.message {
  padding: 8px 10px;
  margin: 6px 0;
  border-radius: 10px;
}

.message.user {
  background: #dce9ff;
  text-align: right;
}

.message.other {
  background: #fff0e0;
  text-align: left;
}

.chat-input {
  display: flex;
  gap: 6px;
}

.chat-input input {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px;
  font-size: 0.95rem;
}

.chat-input button {
  background: #FF8C32;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
}

.chat-input button:hover {
  background: #1D4E89;
}

/* NOTES */
#lessonNotes {
  width: 100%;
  height: 250px;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px;
  resize: none;
  font-family: 'Poppins', sans-serif;
}

.note-actions {
  text-align: right;
  margin-top: 10px;
}

.note-actions .btn {
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
}

/* FILES */
.file-list {
  margin-top: 10px;
  font-size: 0.95rem;
}

.file-list a {
  display: block;
  color: #1D4E89;
  margin-bottom: 6px;
}

.file-list a:hover {
  text-decoration: underline;
}

/* ROOM KEY BOX */
.roomkey-box {
  margin: 20px 0;
  text-align: center;
}

.roomkey-box input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 230px;
}

.roomkey-box button {
  background: #1D4E89;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  margin-left: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.roomkey-box button:hover {
  background: #FF8C32;
}

/* Responsive */
@media (max-width: 900px) {
  .lesson-container {
    flex-direction: column;
    align-items: center;
  }

  .side-panel {
    width: 100%;
  }
}
.lesson-wrapper {
  padding:120px 20px;
  background:linear-gradient(135deg,#1D4E89,#FF8C32);
  min-height:100vh;
  color:#fff;
  text-align:center;
}
.lesson-container {
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:20px;
}
.video-panel, .tab-container {
  background:#fff;
  color:#333;
  border-radius:16px;
  padding:20px;
  box-shadow:0 4px 15px rgba(0,0,0,0.1);
}
.video-panel {
  flex:1;
  min-width:360px;
}
.video-panel video {
  width:100%;
  max-height:300px;
  border-radius:12px;
  background:#000;
  margin-bottom:10px;
}
.controls button {
  background:#1D4E89;
  color:#fff;
  border:none;
  border-radius:8px;
  padding:8px 12px;
  margin:5px;
  cursor:pointer;
}
.controls button:hover { background:#FF8C32; }
