/* Modern color scheme and fonts */
:root {
    --primary-color: #2e7d32;
    --secondary-color: #45904a;
    --accent-color: #f44336;
    --text-color: #202124;
    --light-bg: #f5f6fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Enhanced Navigation */
nav {
    display: none;
}

/* Add these navbar styles at the top of the file */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 1rem 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    box-sizing: border-box;

    justify-content: space-between;
    gap: 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.nav-logo {
    width: 80px;
    height: 70px;
}

.nav-title {
    font-size: 1.5rem;
    font-weight:700;
    color: #1a73e8;
}

.nav-links {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding: 0;
    list-style: none;
    gap: 1rem;
    justify-content: flex-end;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;

    padding: 0.5rem 0.75rem;
  border-radius: 5px;
  gap: 0.4rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
    background: linear-gradient(to right, rgba(26, 115, 232, 0.1), transparent);
}

.nav-links a.active {
    color: var(--primary-color);
    background: linear-gradient(to right, rgba(26, 115, 232, 0.1), transparent);
}

.nav-link:hover:before {
    transform: translateX(0);
}
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    z-index: 1001;
    padding: 8px 0;
}

/* Add padding to create hover buffer zone for nav dropdown */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
}

/* Show nav dropdown on hover */
.nav-dropdown:hover .dropdown-content,
.dropdown-content:hover,
.nav-dropdown.active .dropdown-content {
    display: block;
}

/* Mobile styles for nav dropdown */
@media (max-width: 768px) {
    .nav-dropdown .dropdown-content {
        position: static;
        width: 100%;
        margin-top: 0;
        box-shadow: none;
        background: transparent;
        padding-left: 1rem;
    }

    .nav-dropdown::after {
        display: none;
    }
}

/* Update dropdown link styles */
.dropdown-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dropdown-link:hover {
    color: var(--primary-color);
    background: linear-gradient(to right, rgba(46, 125, 50, 0.1), transparent);
}

.dropdown-content a {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    color: var(--primary-color);
    background: linear-gradient(to right, rgba(46, 125, 50, 0.1), transparent);
}

/* Remove conflicting styles */
.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* Profile Dropdown Styles */
.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-color);
}

.profile-btn .profile-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.2;
    max-width: 120px;
    text-align: left;
}

/* Add these new styles for the profile icon */
.profile-btn i.fas.fa-user-circle {
    font-size: 1.5rem;
    color: #1a73e8;
}


.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    min-width: 250px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    z-index: 1001;
    padding: 8px 0;
}

/* Add padding to create a hover buffer zone */
.profile-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px; /* Buffer zone height */
}

/* Update the hover behavior */
.profile-dropdown:hover .dropdown-content,
.dropdown-content:hover,
.profile-dropdown.active .dropdown-content {
    display: block;
}

/* For mobile devices */
@media (max-width: 768px) {
    .profile-dropdown::after {
        display: none; /* Remove buffer zone on mobile */
    }
    
    .profile-dropdown .dropdown-content {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        margin-top: 0;
        border-radius: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
}

.dropdown-header {
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--light-bg);
}

.dropdown-profile-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.dropdown-name {
    font-weight: 500;
    font-size: 0.95rem;
}

.dropdown-role {
    font-size: 0.8rem;
    color: #dadce0;
    opacity: 0.8;
}

.dropdown-divider {
    height: 1px;
    background: var(--light-bg);
    margin: 0.25rem 0;
}

.dropdown-item {
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    color: var(--primary-color);
    background: linear-gradient(to right, rgba(26, 115, 232, 0.1), transparent);
}

.text-danger {
    color: var(--accent-color) !important;
}

.language-section {
    padding: 0.5rem 0.75rem;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1002;
    order: 1;
    margin-left: auto;
}

.hamburger, 
.hamburger::before, 
.hamburger::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger {
    top: 50%;
    transform: translate(-50%, -50%);
}

.hamburger::before {
    top: -8px;
    transform: translateX(-50%);
}

.hamburger::after {
    bottom: -8px;
    transform: translateX(-50%);
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    bottom: 50%;
    transform: translate(-50%, 50%) rotate(-45deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        justify-content: space-between;
        padding: 0 15px;
        gap: 0;
    }

    .nav-brand {
        flex: 0 0 auto;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        margin: 0;
        justify-content: flex-start;
        width: 100%;
        display: none;
    }

    .nav-links.active {
        transform: translateY(0);
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: 12px 16px;
    }

    .nav-links a i {
        margin-right: 12px;
        width: 20px;
        text-align: center;
    }
    .nav-dropdown {
        width: 100%;
    }
    .nav-dropdown:hover .dropdown-content {
        display: block;
    }
    .dropdown-link {
        width: 100%;
        justify-content: space-between;
    }

    .auth-section {
        flex: 0 1 auto;
        order: 1;
        margin-right: 0;
        min-width: 0;
        overflow: hidden;
    }

    .nav-toggle {
        display: flex !important;
        order: 2;
        margin-left: 0;
        position: relative;
        z-index: 1002;
        align-items: center;
        justify-content: center;
        visibility: visible;
    }

    .profile-btn {
        padding: 0.4rem;
        max-width: none;
        min-width: 40px;
        justify-content: center;
        overflow: visible;
    }

    .profile-btn .profile-name,
    .profile-btn i.fas.fa-chevron-down {
        display: none;
    }
    
    .profile-btn i.fas.fa-user-circle {
        font-size: 1.8rem;
        margin: 0;
        display: block;
    }

    /* Ensure hamburger lines are visible */
    .hamburger, 
    .hamburger::before, 
    .hamburger::after {
        right: auto;
        left: 50%;
    }

    /* Profile dropdown mobile styles */
    .profile-dropdown .dropdown-content {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        margin-top: 0;
        border-radius: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

      .profile-dropdown:hover .dropdown-content,
      .profile-dropdown.active .dropdown-content {
        display: block;
      }
       

    .profile-btn {
        max-width: calc(100% - 50px);
        overflow: hidden;
    }

    .profile-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Language selector mobile styles */
    .language-section {
        width: 100%;
    }

    .language-select {
        width: 100%;
        margin: 8px 0;
    }

    /* Adjust main content to account for fixed navbar */
    #home {
        margin-top: 70px;
    }
}

/* Style the Google Translate dropdown to be more compact */
#google_translate_element {
    margin: 0.25rem 0;
}

#google_translate_element select {
    padding: 0.25rem;
    font-size: 0.85rem;
    width: 100%;
    border: 1px solid var(--light-bg);
    border-radius: 4px;
}



/* Adjust icon sizes */
.dropdown-item i,
.profile-btn i {
    font-size: 0.9rem;
}

/* Update auth-section styles */
.auth-section {
    display: flex;
    align-items: center;
    margin-left: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    order: 0;
}


/* Update language select styles */
.language-select {
    width: 100%;
    padding: 0.4rem;
    border: 1px solid var(--light-bg);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-color);
    background: var(--white);
    cursor: pointer;
    margin-top: 0.25rem;
}

.language-select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Hide Google Translate element but keep it functional */
#google_translate_element {
    position: absolute;
    top: -1000px;
    visibility: hidden;
}

/* Adjust dropdown item spacing */
.dropdown-item {
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.2s;
    font-size: 0.9rem;
    cursor: pointer;
}

.dropdown-item:hover {
    color: var(--primary-color);
    background: linear-gradient(to right, rgba(26, 115, 232, 0.1), transparent);
}

/* Make language section more compact */
.language-section {
    padding: 0.5rem 0.75rem;
    flex-direction: column;
    align-items: flex-start;
}

/* Update profile button hover */
.profile-btn:hover {
    color: var(--primary-color);
    background: linear-gradient(to right, rgba(26, 115, 232, 0.1), transparent);
    border-radius: 5px;
}

/* Home Section */
#home {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    margin-top: 70px;
}

#home h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

#home p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Classes Section */
#classes {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.class-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.class-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.class-card:hover {
    transform: translateY(-5px);
}

.class-card h3 {
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
}

/* Buttons */
.start-class-btn, .join-class-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.start-class-btn {
    background: var(--secondary-color);
    color: var(--white);
}

.join-class-btn {
    background: var(--accent-color);
    color: var(--white);
}

.start-class-btn:hover, .join-class-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Jitsi Container */
#jitsi-container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 2rem auto;
    overflow: hidden;
}

/* Recording Interface */
#recording-interface {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 2rem auto;
    padding: 1rem;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    .dropdown-content {
        position: static;
        box-shadow: none;
        margin-top: 0;
        padding-left: 20px;
    }

    #home {
        padding: 2rem 1rem;
    }

    #home h1 {
        font-size: 2rem;
    }

    .class-list {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.class-card {
    animation: fadeIn 0.5s ease forwards;
}

/* Add this to your HTML head */
/* <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet"> */

/* Section Headers */
.section-header {
    text-align: center;
    margin: 0 4rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.section-header h2 {
    font-size: 2.2rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
}

.section-header .section-description {
    font-size: 1.2rem;
    opacity: 1;
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section {
        padding: 1rem;
    }
    
    .section-header {
        padding: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header .section-description {
        font-size: 1.1rem;
    }
}

/* Available Classes */
.class-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.class-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    position: relative;
}

.class-card:hover {
    transform: translateY(-4px);
}

.class-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.class-status.live {
    background: var(--accent-color);
    color: white;
}

.class-status.upcoming {
    background: var(--secondary-color);
    color: white;
}

.class-content {
    padding: 1.5rem;
}

.class-info {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.class-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.class-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.recordings-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
    width: 100%;
}

.recording-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.recording-card:hover {
    transform: translateY(-4px);
}

.recording-thumbnail {
    background: var(--gray-800);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.recording-thumbnail i {
    font-size: 3rem;
    color: var(--white);
    opacity: 0.8;
    transition: opacity 0.2s;
}

.recording-card:hover .recording-thumbnail i {
    opacity: 1;
}

.duration {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.75);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

.recording-content {
    padding: 3rem;
}

.recording-content h4 {
    margin: 0 0 1rem 0;
    color: var(--gray-800);
}

.recording-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.recording-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-recording-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.view-recording-btn:hover {
    background: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .class-list,
    .recordings-list {
        grid-template-columns: 1fr;
    }
    
    .class-actions {
        grid-template-columns: 1fr;
    }
}


/* Update danger button hover to keep red theme */
.text-danger:hover {
    color: var(--accent-color) !important;
    background: linear-gradient(to right, rgba(231, 76, 60, 0.1), transparent) !important;
}


/* Update the nav-links a style to add space after icons */
.nav-links a i {
    margin-right: 8px; /* Add space after icons */
}

/* Update auth-section styles */
.auth-section {
    display: flex;
    align-items: center;
    margin-left: 0;
    white-space: nowrap;
    flex-shrink: 0;
    order: 0;
}

/* Hero Section */
#hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../assets/images/hero-bg.svg") no-repeat center center;
  background-size: cover;
  opacity: 0.1;
  z-index: 0;
}

#hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

#hero p {
  font-size: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Class Cards */
.class-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.class-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15), 0 10px 25px rgba(0, 0, 0, 0.15);
}

.class-header {
  background: var(--light-bg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.class-header h3 {
  margin: 0;
  color: var(--text-color);
}

.class-content {
  padding: 1.5rem;
}

.class-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.class-info span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #4a5568;
  font-size: 0.9rem;
}

.class-actions {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.start-class-btn {
  background: var(--secondary-color);
  color: white;
}

.start-class-btn:hover {
  background: #388e3c;
}

.join-class-btn {
  background: #e2e8f0;
  color: #2d3748;
}

.join-class-btn:hover {
  background: #cbd5e0;
}

/* Recording Cards */
.recording-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.recording-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15), 0 10px 25px rgba(0, 0, 0, 0.15);
}

.recording-thumbnail {
  height: 200px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #4a5568;
}



.recording-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
  color: #4a5568;
  font-size: 0.9rem;
}

.recording-info span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.view-recording-btn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: var(--primary-color);
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background 0.2s ease;
}

.view-recording-btn:hover {
  background: var(--secondary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  #hero {
    padding: 4rem 1rem;
  }

  #hero h1 {
    font-size: 2.5rem;
  }

  #hero p {
    font-size: 1.2rem;
  }

  .class-list,
  .recordings-list {
    grid-template-columns: 1fr;
  }
}

/* Keep the existing ERMS classes for backward compatibility */
.erms-dropdown { @extend .nav-dropdown; }
.erms-link { @extend .dropdown-link; }
.erms-dropdown-content { @extend .dropdown-content; } 

/* Add/Update these styles */

/* Recordings Section */
#recordings {
    padding: 2rem;
    margin-top: 2rem;
}


.teacher-section {
    background: white;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%;
    display: block;
    flex: 0 0 100%;
    break-inside: avoid;
    page-break-inside: avoid;
}

.teacher-header {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    cursor: pointer;
    transition: background 0.3s ease;
}

.teacher-header:hover {
    background: #f1f3f5;
}

.teacher-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.teacher-name i {
    font-size: 1.2rem;
    min-width: 24px;
}

.teacher-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

.video-count {
    font-size: 0.9rem;
    color: #666;
    margin-left: auto;
    padding-right: 1rem;
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 1rem;
    transform: rotate(0deg);
}

/* Grid for recordings within each teacher section */
.teacher-recordings {
    padding: 1.5rem;
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Add style for active teacher recordings */
.teacher-recordings.active {
    display: grid;
}

/* Recording Cards */
.recording-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.recording-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.recording-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.recording-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.recording-info span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Video Container */
.video-container {
    margin: 0.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    aspect-ratio: 16/9;
    width: 100%;
    position: relative;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

/* Add these new styles for video controls */
.video-container video::-webkit-media-controls {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

.video-container video::-webkit-media-controls-panel {
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

/* Add hover effect for better visibility */
.video-container:hover video::-webkit-media-controls-panel {
    opacity: 1;
}

.recording-description {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .teacher-recordings {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    #recordings {
        padding: 1rem;
    }

    .recordings-list {
        gap: 1.5rem;
        padding: 0.5rem;
    }

    .teacher-recordings {
        grid-template-columns: minmax(0, 1fr) !important;
        padding: 1rem;
    }

    .teacher-header {
        padding: 0.75rem 1rem;
    }

    .teacher-name {
        font-size: 1rem;
    }

    .video-count {
        font-size: 0.8rem;
    }

    .recording-content {
        padding: 0.75rem;
    }

    .teacher-section {
        margin-bottom: 1.5rem;
    }
}

/* Add/Update these styles for the recordings dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    z-index: 1001;
    padding: 8px 0;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
    display: block;
}

/* Add padding to create hover buffer zone */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
}

/* Mobile styles */
@media (max-width: 768px) {
    .dropdown .dropdown-content {
        position: static;
        width: 100%;
        margin-top: 0;
        box-shadow: none;
        background: transparent;
        padding-left: 1rem;
    }

    .dropdown::after {
        display: none;
    }
}

/* Update dropbtn styles */
.dropbtn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dropbtn:hover {
    color: var(--primary-color);
    background: linear-gradient(to right, rgba(26, 115, 232, 0.1), transparent);
}

/* Update dropdown item styles */
.dropdown-content a {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 0.5rem;
}

.dropdown-content a:hover {
    color: var(--primary-color);
    background: linear-gradient(to right, rgba(26, 115, 232, 0.1), transparent);
}

/* Add these styles for better video grid appearance */
.recording-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.recording-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.recording-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}
.transcript-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 300px;
    max-height: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.transcript-header {
    padding: 10px;
    background: #1a73e8;
    color: white;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transcript-controls {
    display: flex;
    gap: 8px;
}

.live-text, .final-text {
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.live-text {
    background: #f8f9fa;
    font-style: italic;
}

.final-text.editing {
    border: 1px solid #1a73e8;
    border-radius: 4px;
}

.edit-btn, .download-btn, .close-transcript-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.edit-btn:hover, .download-btn:hover, .close-transcript-btn:hover {
    background: rgba(255,255,255,0.1);
}