@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&display=swap');

/* Global */
* { 
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    background-color: #f5fff7;
    color: #333;
    line-height: 1.5;
}

/* Header */
.header {
    background-color: #dff4ec;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    border-bottom: 1px solid #cfe5d7;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    background-color: #007a5f;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 1.3rem;
}

.header h1 {
    font-weight: 700;
    color: #1a2e2a;
    margin: 0;
    font-size: 1.3rem;
}

.user-profile {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-profile i {
    font-size: 1.2rem;
}
.user-profile span {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Profile Dropdown */
.profile-dropdown {
  position: absolute;
  right: 30px;
  top: 70px;
  background-color: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  width: 270px;
  z-index: 999;
  transition: all 0.2s ease;
}

.profile-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 10px 0;
}

.profile-dropdown ul li {
  padding: 10px 16px;
  font-size: 17px;
  color: #000;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.profile-dropdown ul li:hover {
  background-color: #e6f4ef;
}

.profile-dropdown.hidden {
  display: none;
}


/* Upcoming Lessons */
.upcoming-lessons-section {
    padding: 30px 32px 16px 32px;
}

.upcoming-lessons-section h2 {
    font-weight: 700;
    font-size: 1.4rem;
    color: #1a2e2a;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upcoming-lessons-section h2 i {
    color: #007a5f;
    font-size: 1.5rem;
}

.lessons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: flex-start;
}

/* Lesson Card */
.lesson-card {
    background: white;
    box-shadow: 0 3px 6px rgb(0 0 0 / 6%);
    padding: 20px 18px 25px 18px;
    border-radius: 8px;
    width: 32%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
}

@media (max-width: 900px) {
    .lesson-card { width: 100%; }
}

/* Lesson Header */
.lesson-header {
    display: flex;
    align-items: center;
    gap: 13px;
}

.lesson-header img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.lesson-info h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #136653;
}

.lesson-info p {
    margin: 5px 0 0 0;
    font-size: 0.875rem;
    color: #555555;
}

.lesson-info small {
    color: #a4a4a4;
}

.message-icon {
    margin-left: auto;
    color: #136653;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Lesson Time */
.lesson-time {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #555555;
}

.lesson-time div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lesson-time i {
    color: #666666;
}

/* Available Button */
.available-btn {
    background-color:#007a5f;
    border: none;
    color: #f6eded;
    border-radius: 6px;
    padding: 9px 0;
    width: 100%;
    height: 60px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Lesson Actions Buttons */
.lesson-actions {
    display: flex;
    gap: 12px;
}

.btn {
    height: 44px;
    border-radius: 6px;
    padding: 0 15px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    background-color: #fff;
    transition: background-color 0.3s ease, color 0.3s ease;
    flex: 1;
}

.btn i {
    font-size: 16px;
}

.btn.reschedule {
    border-color: #1257bf;
    color: #1257bf;
    height: 60px;
}

.btn.reschedule:hover {
    background-color: #1257bf;
    color: white;
}

.btn.cancel {
    border-color: #d22c28;
    color: #d22c28;
    height: 60px;
}

.btn.cancel:hover {
    background-color: #d22c28;
    color: white;
}

.btn.report-problem {
    margin-top: 12px;
    border-color: #d47914;
    color: #d47914;
    background-color: transparent;
    width: 100%;
    justify-content: center;
}

.btn.report-problem i {
    margin-top: 20px;
    height: 40px;
}

.btn.report-problem:hover {
    background-color: #d47914;
    color: white;
}

/* Modal Style (Reschedule & Cancel) */
#modal-overlay.hidden,
#cancel-overlay.hidden {
    display: none;
}

#modal-overlay,
#cancel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
/* Modal Overlay */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.hidden {
  display: none;
}

/* Modal Content */
.reschedule-modal {
  background: #fff;
  width: 500px;
  max-width: 90%;
  border-radius: 12px;
  padding: 24px 28px 30px;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #666;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #000;
}

/* Header */
.reschedule-modal h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 20px;
}

/* Section Styles */
section {
  margin-bottom: 20px;
}

.current-lesson-info {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px 18px;
}

.current-lesson-info p {
  margin: 4px 0;
}

/* Date Picker */
.new-date-selection label {
  display: block;
  margin-bottom: 8px;
}

.new-date-selection input[type="date"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
}

/* Available Time Slots */
.available-time-slots strong {
  display: block;
  margin-bottom: 8px;
}

.time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.time-slot-btn {
  flex: 1 1 30%;
  border: 1px solid #ccc;
  background: #fff;
  padding: 10px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}

.time-slot-btn:hover {
  background-color: #eafaf0;
}

.time-slot-btn.active {
  background-color: #009d4f;
  color: #fff;
  border-color: #009d4f;
}

/* New Lesson Summary */
.new-lesson-schedule {
  background: #e9f9ee;
  border-radius: 8px;
  padding: 15px 18px;
}

.new-lesson-schedule p {
  margin: 4px 0;
}

/* Buttons */
.modal-actions2{
  width: 120px;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 10px;
  margin-left: 340px;
}

.btn {
  padding: 10px 18px;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.cancel-btn {
  background: #f3f3f3;
  color: #333;
}

.cancel-btn:hover {
  background: #e0e0e0;
}

.confirm-btn {
  background: #009d4f;
  color: #fff;
}

.confirm-btn:hover {
  background: #008445;
}

.confirm-btn:disabled {
  background: #b7e0c3;
  cursor: not-allowed;
}
/* === Modal Content === */
.modal-content {
  padding: 16px;
  color: #333;
}


.details{
    background-color: #a169676f;
    width: 100%;
    padding: 10px;
}

.modal-content {
    background: white;
    padding: 25px 30px;
    border-radius: 10px;
    width: 90vw;
    max-width: 700px;
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 20px rgb(0 0 0 / 0.3);
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: 'Nunito', sans-serif;
    color: #136653;
}

.modal-content h3 {
    margin: 0;
    font-weight: 700;
}

.modal-content p {
    margin: 0;
    color: #000;
    font-size: 19px;
    font-weight: 700;
}

.modal-content span {
    margin: 0;
    color: #555555;
    font-size: 17px;
}

.modal-content label {
    font-weight: 600;
    margin-bottom: 4px;
}

.modal-content input {
    padding: 8px;
    border-radius: 6px;
    border: 1.2px solid #c4d7c9;
    font-size: 1rem;
}

.modal-actions {
    display: block;
    gap: 14px;
    margin-top: 8px;
}

.modal-actions button {
    flex: 1;
    padding: 10px 0;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    margin: 10px 0;
}

#modal-confirm {
    background-color: #007a5f;
    color: white;
}

#modal-confirm:hover {
    background-color: #00573e;
}

#modal-cancel {
    background-color: #d22c28;
    color: white;
}

#modal-cancel:hover {
    background-color: #a21f1a;
}

#cancel-confirm-btn {
    background-color: #d22c28;
    color: white;
}

#cancel-close-btn {
    background-color: #e0e0e0;
    color: #333;
}



/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

/* Modal Box */
.box {
  background: #fff;
  width: 450px;
  padding: 24px 32px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

/* Title */
.title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

/* Description */
.text {
  font-size: 0.95rem;
  color: #374151;
  margin: 10px 0;
}

/* Textarea */
.input {
  width: 100%;
  height: 120px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  padding: 10px;
  font-size: 0.95rem;
  resize: none;
  outline: none;
  transition: border-color 0.2s ease;
}

.input:focus {
  border-color: #3b82f6;
}

/* Buttons Row */
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

/* Cancel Button */
.btn-cancel {
  background-color: #f9fafb;
  border: 1px solid #d1d5db;
  color: #111827;
  border-radius: 8px;
  padding: 8px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-cancel:hover {
  background-color: #e5e7eb;
}

/* Submit Button */
.btn-submit {
  background-color: #f59e0b;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-submit:hover {
  background-color: #d97706;
}

/* Close Button */
.close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 1.4rem;
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
}

.close:hover {
  color: #111827;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

/* Hide Class */
.hidden {
  display: none;
}




/* Footer Features */
.footer-features {
    margin: 35px 32px 32px 32px;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.feature-card {
    flex: 1 1 45%;
    background: white;
    padding: 32px 24px;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgb(0 0 0 / 6%);
    text-align: center;
    min-width: 280px;
}

.feature-icon {
    font-size: 1.7rem;
    color: #007a5f;
    margin-bottom: 10px;
}

.feature-card h4 {
    margin: 0 0 6px 0;
    font-weight: 700;
    color: #136653;
}

.feature-card p {
    margin: 0;
    color: #555555;
}

/* Chat Notification */
.chat-notification {
    position: fixed;
    right: 24px;
    bottom: 22px;
}

.chat-notification button {
    background-color: #0a1a13;
    border: none;
    color: white;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-notification .badge {
    position: absolute;
    top: -6px;
    right: 2px;
    background-color: #d21111;
    border-radius: 50%;
    padding: 3px 7px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* === Live Chat Window (with People List) === */
#live-chat {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 520px;
  height: 460px;
  background-color: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  border-radius: 12px;
  overflow: hidden;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif; /* Added for professionalism */
}

#live-chat.hidden {
  display: none;
}

.chat-header {
  background-color: #136653;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
}

.chat-header h4 {
  margin: 0;
  font-size: 1rem;
}

.chat-header button {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
}

.chat-container {
  display: flex;
  height: 100%;
}

/* Sidebar */
.chat-sidebar {
  width: 40%;
  border-right: 1px solid #ddd;
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
}

#chat-search {
  padding: 10px;
  margin: 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.9rem;
}

#people-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
}

#people-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  transition: background 0.2s ease;
}

#people-list li.active,
#people-list li:hover {
  background-color: #e0f2eb;
}

#people-list img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

#people-list p {
  font-size: 0.8rem;
  color: #555;
  margin: 0;
}

/* Chat Main */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chat-body {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  background-color: #f5fff7;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 300px; /* Fixed height to enable scrolling */
}

.message {
  padding: 8px 12px;
  border-radius: 10px;
  max-width: 80%;
  line-height: 1.4;
  word-wrap: break-word;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.message.bot {
  background-color: #dff4ec;
  color: #333;
  align-self: flex-start;
}

.message.user {
  background-color: #136653;
  color: white;
  align-self: flex-end;
}

.sender-name {
  font-weight: bold;
  font-size: 0.9rem;
}

.message-text {
  font-size: 0.95rem;
}

.chat-footer {
  display: flex;
  padding: 12px 16px; /* Increased padding for better spacing */
  background-color: #f8f9fa; /* Slightly off-white for a cleaner look */
  border-top: 1px solid #e0e0e0; /* Subtle border */
  position: relative;
  width: 100%;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05); /* Subtle inner shadow for depth */
  align-items: center; /* Ensure vertical alignment */
  gap: 8px; /* Space between input and button */
}

#chat-input {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px 12px; /* More padding for comfort */
  font-size: 0.95rem;
  outline: none; /* Remove default outline */
  transition: border-color 0.2s ease; /* Smooth transition */
}

#chat-input:focus {
  border-color: #136653; /* Match header color on focus for consistency */
  box-shadow: 0 0 4px rgba(19, 102, 83, 0.2); /* Subtle glow */
}

#chat-send {
  background-color: #136653;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 16px; /* Consistent padding */
  margin-left: 0; /* Removed since gap is used */
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500; /* Slightly bolder for emphasis */
  transition: background-color 0.2s ease, transform 0.1s ease; /* Smooth hover effect */
}

#chat-send:hover {
  background-color: #0e4f42; /* Darker shade on hover */
  transform: translateY(-1px); /* Slight lift for interactivity */
}

#chat-send:active {
  transform: translateY(0); /* Reset on click */
}


/* Responsive Design for Tablets and Smaller Screens */
@media (max-width: 768px) {
  #live-chat {
    width: 90vw; /* Use viewport width for responsiveness */
    height: 70vh; /* Adjust height */
    bottom: 20px;
    right: 5vw; /* Center-ish on screen */
    left: 5vw; /* Ensure it's centered */
  }

  .chat-sidebar {
    width: 35%; /* Slightly smaller sidebar */
  }

  .chat-body {
    max-height: 50vh; /* Adjust for smaller height */
  }

  .chat-header h4 {
    font-size: 0.9rem; /* Smaller font for mobile */
  }

  .message {
    max-width: 85%; /* Allow more width for messages */
  }
}

/* Responsive Design for Mobile Phones */
@media (max-width: 480px) {
  #live-chat {
    width: 95vw; /* Nearly full width */
    height: 80vh; /* Taller for mobile */
    bottom: 10px;
    right: 2.5vw;
    left: 2.5vw;
  }

  .chat-sidebar {
    width: 30%; /* Even smaller sidebar */
  }

  .chat-body {
    max-height: 60vh; /* More space for chat */
  }

  .chat-header {
    padding: 10px 12px; /* Tighter padding */
  }

  .chat-header h4 {
    font-size: 0.85rem;
  }

  .chat-footer {
    padding: 8px; /* Tighter footer */
  }

  #chat-input {
    padding: 6px; /* Smaller input */
    font-size: 0.9rem;
  }

  #chat-send {
    padding: 6px 10px; /* Smaller button */
  }

  .message {
    max-width: 90%; /* More width for messages */
    padding: 6px 10px; /* Smaller padding */
  }

  .sender-name {
    font-size: 0.85rem;
  }

  .message-text {
    font-size: 0.9rem;
  }
}

/* Additional Professional Touches */
@media (max-width: 320px) {
  /* For very small screens, ensure readability */
  .chat-body {
    padding: 8px;
  }

  .message {
    max-width: 95%;
  }
}


/* Main Section */
.find-teachers-section {
  padding: 32px;
  max-width:100%;
  margin: auto;
}

.back-link {
  color: #136653;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}

.back-link:hover {
  text-decoration: underline;
}

.find-teachers-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a2e2a;
  margin: 0;
}

.subtitle {
  color: #555;
  margin-bottom: 25px;
}

/* Filter Box */
.filter-box {
  background-color: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

.filter-box h3 {
  margin: 0 0 20px 0;
  color: #1a2e2a;
  font-weight: 700;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  display: block;
  font-weight: 600;
  color: #136653;
  margin-bottom: 5px;
}

.filter-group select {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1.3px solid #cfe5d7;
  font-size: 1rem;
}

.clear-btn {
  background-color: transparent;
  border: 2px solid #007a5f;
  color: #007a5f;
  border-radius: 6px;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.clear-btn:hover {
  background-color: #007a5f;
  color: white;
}

/* Price Range */
.price-range {
  margin-top: 25px;
}

.price-range label {
  font-weight: 600;
  color: #136653;
}

#price-slider {
  width: 100%;
  margin-top: 10px;
  accent-color: #007a5f;
}

/* Days Section */
.available-days {
  margin-top: 25px;
}

.available-days label {
  font-weight: 600;
  color: #136653;
}

.days-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.days-grid label {
  font-weight: 500;
  color: #333;
  background-color: #e6f4ef;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.days-grid input {
  margin-right: 6px;
  accent-color: #007a5f;
}

.days-grid label:hover {
  background-color: #c8ebdd;
}

/* Responsive */
@media (max-width: 700px) {
  .filter-row {
    flex-direction: column;
  }
  .clear-btn {
    width: 100%;
  }
  #live-chat{
    width: 400px;
  }
}


/* Teachers Section */
.teachers-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a2e2a;
  margin-bottom: 25px;
}



.teacher-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
  padding: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease;
}

.teacher-card:hover {
  transform: translateY(-4px);
}

.teacher-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.teacher-header img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.teacher-info h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #136653;
}

.teacher-info p {
  margin: 2px 0;
  color: #555;
  font-size: 0.9rem;
}

.teacher-info i {
  color: #ffb100;
}

.message-icon {
  margin-left: auto;
  color: #136653;
  cursor: pointer;
}

.subject-tags, .available-days-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 12px 0;
}

.subject-tags span, .available-days-list span {
  background-color: #e6f4ef;
  color: #136653;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.teacher-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.price {
  font-weight: 700;
  color: #136653;
}

.book-btn {
  background-color: #007a5f;
  border: none;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.book-btn:hover {
  background-color: #00573e;
}

@media (max-width: 900px) {
  .teacher-card {
    flex: 1 1 48%;
  }
}

@media (max-width: 600px) {
  .teacher-card {
    flex: 1 1 100%;
  }
  .filter-row {
    flex-direction: row;
  }
}

/* Base styles are same as before with these added/fixed for responsiveness */

/* Container max width & center on large screens */
.lesson-history-section {
    max-width: 100%;
    margin: 0 auto;
    background-color: #e6f4ef;
    padding: 30px 32px;
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
}

.lesson-history-section h2 {
    font-weight: 700;
    color: #1c3334;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.3em;
}

.back-arrow {
    color: #1c3334;
    font-size: 1.3rem;
    cursor: pointer;
}

.lesson-history-subtitle {
    color: #4f6365;
    font-weight: 400;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.lesson-card-history {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: none;
    padding: 24px 30px;
    margin-bottom: 20px;
    border: 1px solid #d6e6e0;
}

.lesson-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    margin-bottom: 16px;
}

.lesson-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.lesson-details {
    flex-grow: 1;
    margin-left: 12px;
}

.lesson-details h3 {
    font-weight: 700;
    color: #1c5a52;
    margin: 0 0 4px 0;
    font-size: 1.2rem;
}

.lesson-details p {
    margin: 0 0 10px 0;
    color: #465655;
    font-size: 0.9rem;
}

.lesson-meta {
    font-size: 0.9rem;
    color: #445c58;
    display: flex;
    gap: 18px;
    align-items: center;
}

.lesson-meta i {
    color: #7aa89a;
    font-size: 1.1rem;
}

.lesson-rating {
    display: flex;
    gap: 5px;
    font-size: 1.2rem;
    flex-shrink: 0;
    align-items: center;
}

.lesson-rating.filled i {
    color: #fcc419; /* Gold color */
}

.lesson-rating.unfilled i {
    color: #d3d6db; /* Light gray for unfilled stars */
}

/* Rating container for the second lesson */
.rating-container {
    background-color: #f1f8f7;
    padding: 14px 20px;
    margin: 0 0 16px 67px; /* align below lesson info with avatar space */
    border-radius: 8px;
    color: #364c4a;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 55px;
}

/* Review text input */
.review-text {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid #c4d7c9;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: 'Nunito', sans-serif;
    outline: none;
    transition: border-color 0.2s ease;
}

.review-text:focus {
    border-color: #007a5f;
}

/* Stars style inside rating container */
.rating-container .rate-stars i {
    color: #d3d6db; /* gray stars */
    cursor: pointer;
    font-size: 1.2rem;
}

/* Action buttons */
.lesson-actions2{
    width: 200px;
    display: flex;
    gap: 16px;
    margin-top: 0;
    flex-wrap: nowrap;
}

.btn {
    border-radius: 6px;
    border: 1.5px solid transparent;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn i {
    font-size: 1.2rem;
}

.btn-green {
    background-color: #1c5a52;
    color: white;
    border-color: #1c5a52;
}

.btn-green:hover {
    background-color: #15463f;
}

.btn-outline {
    background-color: transparent;
    color: #1c5a52;
    border: 1.5px solid #1c5a52;
}

.btn-outline:hover {
    background-color: #dceddd;
}

#metarial{
  color: #1257bf;
  background-color: transparent;
}
/* box notifaction  */
.notification-box {
  position: absolute;
  top: 70px;       /* Adjust based on your button */
  right: 70px;
  width: 360px;
  max-height: 420px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(149, 157, 165, 0.2);
  padding: 15px 20px;
  font-family: 'Nunito', Arial, sans-serif;
  overflow-y: auto;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.notification-header h5 {
  margin: 0;
  font-weight: 700;
  font-size: 20px;
  color: #222;
}

#mark-read {
  background: none;
  border: none;
  color: #007bff;
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
}

#mark-read:hover {
  text-decoration: underline;
}

.notification-list {
  margin-top: 12px;
  overflow-y: auto;
  max-height: 320px;
}

.notification-item {
  background: #f0f4ff;
  border-radius: 12px;
  padding: 12px 15px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(60,64,67,.15);
  display: flex;
  gap: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.notification-item:hover {
  background-color: #d6e4ff;
}

.notification-item i {
  font-size: 20px;
  color: #007bff;
  flex-shrink: 0;
  margin-top: 4px;
}

.notification-text {
  flex-grow: 1;
}

.notification-item strong {
  font-weight: 700;
  font-size: 15px;
  color: #060606;
  margin-bottom: 6px;
  display: block;
}

.notification-item p {
  font-size: 14px;
  color: #4a4a4a;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.notification-item small {
  font-size: 12px;
  color: #999999;
}

.view-all {
  text-align: center;
  font-weight: 600;
  padding: 10px 0 10px 0;
  color: #007bff;
  text-decoration: none;
  border-top: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.view-all:hover {
  background-color: #e8f0fe;
}

/* welcome teacher  */

.welcome-section {
      background-color: #f0fff4;
      border-radius: 10px;
      padding: 20px;
      margin-top: 20px;
    }
    .teacher-name {
      font-weight: 700;
      font-size: 1.6rem;
      color: #0f5132;
    }
    .rating {
      font-weight: 600;
      color: #212529;
    }
    .verified-badge {
      background-color: #d1e7dd;
      color: #0f5132;
      font-size: 0.85rem;
      font-weight: 600;
      border-radius: 20px;
      padding: 4px 10px;
    }

    /* lesson teacher  */



/* Responsive tweaks preserved */

@media (max-width: 768px) {
    .lesson-info-row {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .lesson-avatar {
        width: 45px;
        height: 45px;
        margin-bottom: 8px;
    }

    .lesson-details {
        margin-left: 0;
        flex: 1 1 100%;
        margin-bottom: 8px;
    }

    .lesson-rating {
        flex: 1 1 100%;
        justify-content: flex-start;
        margin-top: 4px;
    }

    .lesson-meta {
        flex-wrap: wrap;
        gap: 15px;
    }

    .rating-container {
        margin-left: 0;
        min-height: initial;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: flex-start;
    }

    .lesson-actions2 {
        width: 100%;
        flex-wrap: wrap;
    }

    .btn {
        flex: 1 1 calc(50% - 16px);
    }
}

@media (max-width: 480px) {
    .lesson-history-section {
        padding: 20px 12px;
    }

    .lesson-actions2 {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .lesson-meta {
        font-size: 0.85rem;
    }

    .lesson-details h3 {
        font-size: 1rem;
    }

    .lesson-details p {
        font-size: 0.85rem;
    }
}
