@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

:root {
    --bg-primary: #0a0a1a;
    --text-primary: #ffffff;
    --border-color: #333333;
    --glow-cyan: rgba(0, 229, 255, 0.8);
    --glow-green: rgba(0, 255, 136, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    --bg-primary: #0a0a1a;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 162, 255, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(0, 102, 204, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 40% 80%, rgba(0, 132, 255, 0.07) 0%, transparent 30%),
        radial-gradient(circle at 60% 40%, rgba(0, 195, 255, 0.06) 0%, transparent 30%);
    margin: 0;
    margin-top: -15px;
    padding: 0;
    min-height: 100vh;
    color: #fff;
    background-size: 400% 400%;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.title {
    font-size: 3em;
    font-weight: 700;
    padding: 20px 0;
    color: #fff;
    background: linear-gradient(45deg, #ffcc00, #ff8800);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 0 8px rgba(255, 77, 77, 0.3),
        0 0 12px rgba(255, 98, 0, 0.3);
    margin: 20px 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    letter-spacing: 5px;
    padding-bottom: 5px;
    padding-top: 5px;
    animation: glow 1s ease-in-out infinite alternate;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}


#header-icon {
    margin-left: 10px;
    margin-right: 10px;
    font-size: 70%;
}

@keyframes glow {
    0% {
        text-shadow:
            0 0 8px rgba(255, 77, 77, 0.3),
            0 0 12px rgba(255, 98, 0, 0.3);
    }

    100% {
        text-shadow:
            0 0 12px rgba(255, 77, 77, 0.5),
            0 0 18px rgba(255, 98, 0, 0.5);
    }
}

@keyframes titleGlow {
    0% {
        filter: brightness(1) saturate(1);
        transform: scale(1);
    }

    100% {
        filter: brightness(1.1) saturate(1.2);
        transform: scale(1.01);
    }
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(180deg);
    }
}


.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 400px));
    gap: 2rem;
    padding: 2rem;
    justify-content: center;
    margin: 0 auto;
}

.card {
    background: #1a1a2e;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 100%;
    transform: translateY(0);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
    transition: transform 0.3s ease;
}

/* Bookmark Icon */
.bookmark-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(26, 26, 46, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    pointer-events: auto;
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.bookmark-icon:hover {
    transform: scale(1.15) rotate(5deg);
    background: rgba(26, 26, 46, 1);
    border-color: #FFD700;
    box-shadow: 0 0 10px #FFD700, 0 0 20px #FFD700;
    animation: pulse 1.5s infinite;
}

.bookmark-icon.bookmarked {
    background: #FFD700;
    color: #000;
    border-color: #FFD700;
    box-shadow: 0 0 5px #FFD700, 0 0 15px #FFD700;
}

.card img:hover {
    transform: scale(1.05);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 5px #FFD700, 0 0 15px #FFD700;
    }
    50% {
        box-shadow: 0 0 10px #FFD700, 0 0 30px #FFD700, 0 0 45px #FFD700;
    }
    100% {
        box-shadow: 0 0 5px #FFD700, 0 0 15px #FFD700;
    }
}

/* Explore Button */
.explore-button {
    background: #5c65e7;
    color: white;
    border: none;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: calc(100% - 40px);
    margin: 15px 20px 20px 20px;
    box-shadow: 0 5px 15px rgba(92, 120, 231, 0.3);
}

.explore-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.4);
    background: #3d86e6;
}

.card:hover img {
    transform: scale(1.05);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    margin-top: 1rem;
    color: var(--text-primary);
}

/* Responsive Design - Extracted from test directory */
@media (min-width: 769px) and (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 350px));
        justify-content: center;
        gap: 1.5rem;
        padding: 1.5rem;
        margin: 0 auto;
    }
    
    .card {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .container {
        padding: 15px;
    }

    .card img {
        width: 100%;
        height: 160px;
        object-fit: cover;
        border-radius: 15px 15px 0 0;
        display: block;
    }
}

@media (min-width: 481px) and (max-width: 769px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 350px));
        justify-content: center;
        gap: 1.5rem;
        padding: 1.5rem;
        margin: 0 auto;
    }
    
    .card {
        max-width: 350px;
        margin: 0 auto;
    }

    .card img {
        width: 100%;
        height: 160px;
        object-fit: cover;
        border-radius: 15px 15px 0 0;
        display: block;
    }
    
    .container {
        padding: 15px;
    }
    .explore-button {
        padding: 10px 0;
        font-size: 0.9rem;
        margin: 12px 15px 15px 15px;
        width: calc(100% - 30px);
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2em;
    }

    .grid {
        grid-template-columns: 1fr;
        justify-content: center;
        gap: 15px;
        padding: 0 10px;
        max-width: 100%;
        margin: 0;
    }
    
    .card {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .card img {
        width: 100%;
        height: 160px;
        object-fit: cover;
        border-radius: 15px 15px 0 0;
        display: block;
    }
    
    .card-title {
        font-size: 1.1rem;
        margin-top: 0.8rem;
    }
    
    .explore-button {
        padding: 10px 0;
        font-size: 0.9rem;
        margin: 12px 15px 15px 15px;
        width: calc(100% - 30px);
    }
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr;
        justify-content: center;
        gap: 15px;
        padding: 0 10px;
        max-width: 100%;
        margin: 0;
    }
    
    .card {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .card img {
        width: 100%;
        height: 160px;
        object-fit: cover;
        border-radius: 15px 15px 0 0;
        display: block;
    }
    
    .card-title {
        font-size: 1.1rem;
        margin-top: 0.8rem;
    }
    
    .explore-button {
        padding: 10px 0;
        font-size: 0.9rem;
        margin: 12px 15px 15px 15px;
        width: calc(100% - 30px);
    }
}

/* Loading Spinner Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 5, 17, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(15px);
}

.spinner {
    --ring-size: 64px;
    --ring-thickness: 6px;
    width: var(--ring-size);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: conic-gradient(#1e90ff 0deg,
            #00b7eb 90deg,
            #a21caf 180deg,
            #ff6200 270deg,
            #1e90ff 360deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--ring-thickness)), #000 calc(100% - var(--ring-thickness)));
    mask: radial-gradient(farthest-side, transparent calc(100% - var(--ring-thickness)), #000 calc(100% - var(--ring-thickness)));
    animation: spin 1s linear infinite, glowPulse 1.6s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes glowPulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.5); }
}

.loading-text {
    font-size: 1.1em;
    font-weight: 600;
    background: linear-gradient(90deg, #1e90ff, #00b7eb, #1e90ff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    letter-spacing: 1px;
    margin-top: 0;
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

html {
    -webkit-font-smoothing: antialiased;
}



.back-btn {
    background: #009fd4;
    color: white;
    border: none;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 3px 10px rgba(0, 194, 212, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    margin-left: 20px;
    margin-right: 20px;
    text-decoration: none;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 187, 212, 0.4);
    background: #009fd4;
}

input[type="text"] {
    width: 100%;
    max-width: 600px;
    padding: 1rem 1.5rem;
    background: rgba(26, 26, 46, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin: 0 auto 2rem;
    display: block;
}

input[type="text"]:focus {
    border-color: #009fd4;
    box-shadow: 0 0 20px rgb(0, 96, 193);
    transform: translateY(-2px);
}

input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.3.5);
    font-style: italic;
}

.today-classes-wrapper {
    margin: 2rem 0;
    padding: 0 20px;
}

.chapter-meta i {
    margin-right: 6px;
    color: #63d0ff;
    font-size: 1rem;
    text-shadow: 0 0 10px rgba(0, 140, 255, 0.4);
}


.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 16px;
}

.chapter-card {
    background: rgba(26, 26, 46, 0.95);
    border-radius: 12px;
    padding: 20px;
    padding-bottom: 8px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    border-left: 4px solid #009fd4;
}

.chapter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: #009fd4;
}

.chapter-title {
    font-size: 1.3rem;
    color: #dbf5ff;
    margin: 0 0 12px 0;
    font-weight: 500;
    line-height: 1.4;
    text-shadow: 0 0 10px rgba(0, 140, 255, 0.4);
}

.chapter-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: .9rem;
    color: #ccc;
}

.chapter-meta div {
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

/* Responsive adjustment for chapter meta below 769px */
@media (max-width: 768px) {
    .chapter-meta {
        justify-content: flex-start;
        gap: 8px;
    }
    
    .chapter-meta div {
        flex: 0 0 calc(50% - 4px);
        margin: 2px 0;
    }
}

#lectureContent {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    padding: 8px 12px;
}

/* Responsive grid adjustments */
@media (min-width: 768px) {
    #lectureContent {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 24px;
        padding: 12px 16px;
    }
}

@media (min-width: 1200px) {
    #lectureContent {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
        gap: 28px;
        padding: 16px 20px;
    }
}

.lecture-card {
    background: rgba(26, 26, 46, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 100%;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.lecture-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 173, 212, 0.3);
}

.lecture-card-inner {
    display: flex;
    flex-direction: column;
}

.lecture-thumbnail {
    position: relative;
    width: 100%;
}

.lecture-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.status-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border-radius: 50%;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lecture-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.lecture-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lecture-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.lecture-date {
    font-size: 0.85rem;
    color: #c4c4c4;
}

.lecture-duration {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.icon-calendar::before {
    content: "📅";
    margin-right: 5px;
}

.icon-clock::before {
    content: "⏱";
    margin-right: 5px;
}

@media screen and (max-width: 600px) {
    .lecture-card {
        max-width: 100%;
    }
}


.today-scroll-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 16px;
    scroll-snap-type: x mandatory;
    padding: 12px 0;
}

.today-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.today-scroll-container::-webkit-scrollbar-thumb {
    background: var(--squid-pink);
    border-radius: 10px;
}

.today-scroll-container .today-card {
    flex: 0 0 auto;
    width: 260px;
    scroll-snap-align: start;
}


.today-classes-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0084ff 0%, #5fbfff 50%, #00ddff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(135, 206, 235, 0.4), 0 0 40px rgba(79, 195, 247, 0.2);
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.today-classes-container {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 16px;
    scroll-snap-type: x mandatory;
    padding: 12px 0;
}

.today-classes-container .today-card {
    flex: 0 0 auto;
    min-width: 240px;
    scroll-snap-align: start;
}

/* Scrollbar for WebKit browsers */
.today-classes-container::-webkit-scrollbar {
    height: 8px;
}

.today-classes-container::-webkit-scrollbar-track {
    background: transparent;
}

.today-classes-container::-webkit-scrollbar-thumb {
    background-color: var(--squid-pink);
    border-radius: 10px;
}

.today-class-card {
    flex: 0 0 auto;
    min-width: 240px;
    /* Play Button Styling */
.play-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    pointer-events: none;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.4),
        0 0 15px rgba(102, 126, 234, 0.7),
        0 0 30px rgba(118, 75, 162, 0.5),
        0 0 45px rgba(102, 126, 234, 0.3);
}

.play-button:hover {
    box-shadow:
        0 4px 25px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.6),
        0 0 20px rgba(102, 126, 234, 0.9),
        0 0 40px rgba(118, 75, 162, 0.7),
        0 0 60px rgba(102, 126, 234, 0.5),
        0 0 80px rgba(118, 75, 162, 0.3);
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.play-button svg {
    margin-left: 2px;
}

/* Lecture Play Button Styles */
.lecture-thumbnail {
    position: relative;
}

.lecture-play-button {
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    pointer-events: none;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.4),
        0 0 15px rgba(102, 126, 234, 0.7),
        0 0 30px rgba(118, 75, 162, 0.5),
        0 0 45px rgba(102, 126, 234, 0.3);
    z-index: 2;
}

.lecture-card:hover .lecture-play-button {
    box-shadow:
        0 4px 25px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.6),
        0 0 20px rgba(102, 126, 234, 0.9),
        0 0 40px rgba(118, 75, 162, 0.7),
        0 0 60px rgba(102, 126, 234, 0.5),
        0 0 80px rgba(118, 75, 162, 0.3);
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.lecture-play-button i {
    margin-left: 2px;
    font-size: 16px;
}

/* Ensure lecture thumbnail has relative positioning for play button */
.lecture-thumbnail {
    position: relative;
}

/* Add any additional styles here if needed */
    background: #1e1e1e;
    padding: 16px;
    border-radius: 12px;
    scroll-snap-align: start;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.schedule-card {
    min-width: 240px;
    /* or 300px depending on content */
    flex-shrink: 0;
    scroll-snap-align: start;
    background: #1e1e1e;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.today-card {
    flex: 0 0 auto;
    width: 350px !important;
    scroll-snap-align: start;
    background: rgba(26, 26, 46, 0.95);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.today-card::after {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.today-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 155, 212, 0.3);
}

.today-card-title {
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.4;
    text-shadow: 0 0 10px rgba(0, 98, 255, 0.4);
}

.today-card:hover .today-play-button {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.6), 0 0 40px rgba(118, 75, 162, 0.4);
}

.subject-card {
    background: rgba(26, 26, 46, 0.95);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    cursor: pointer;
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: #009fd4;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.subject-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.subject-title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.card-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.teacher-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.teacher-name {
    font-size: 12px;
    font-weight: 500;
}

.subjects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    padding: 20px;
}

.lecture-tabs {
    display: flex !important;
    gap: 0 !important;
    margin-bottom: 20px;
    margin-left: 20px;
    margin-right: 20px;
    background: rgba(26, 26, 46, 0.8);
    border-radius: 8px;
    padding: 4px;
    overflow-x: auto;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    align-items: center;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .lecture-tabs {
        padding: 2px;
        -webkit-overflow-scrolling: touch;
        display: flex !important;
        flex-wrap: nowrap !important;
        flex-direction: row !important;
        align-items: center;
    }
    
    .lecture-tabs button {
        padding: 8px 15px;
        font-size: 0.8rem;
        min-width: unset !important;
        width: auto !important;
        white-space: nowrap;
    }
}

.lecture-tabs button {
    background: transparent;
    border: none;
    color: #888;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.lecture-tabs button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.lecture-tabs button.active {
    background: #00a2ff;
    color: #fff;
}

.load-more-btn {
    background: linear-gradient(45deg, var(--squid-dark-blue), var(--squid-red));
    border: 2px solid var(--squid-cyan);
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 0 25px var(--glow-cyan);
}

.load-more-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 35px var(--glow-cyan);
    border-color: var(--squid-pink);
}

.note-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
    /* ✅ Center horizontally */
}


.note-buttons button {
    background: linear-gradient(45deg, var(--squid-cyan), var(--squid-green));
    border: 2px solid var(--squid-cyan);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px var(--glow-cyan);
}

.note-buttons button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 25px var(--glow-cyan);
    border-color: var(--squid-pink);
}

@media (max-width: 768px) {

    .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card {
        padding: 0;
    }

    .card::after {
        width: 20px;
        height: 20px;
    }

    .card:nth-child(3n+3)::after {
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 17px solid var(--squid-green);
    }

    /* Removed conflicting rule that forced vertical stacking */

    .today-classes-container {
        flex-direction: column;
        gap: 1rem;
    }

    .today-card {
        flex: 0 0 auto;
        width: 260px;
        scroll-snap-align: start;
    }


    .today-card::after {
        width: 16px;
        height: 16px;
    }


    h1 {
        font-size: 2rem;
    }


    .loaders-container {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .card::after {
        width: 18px;
        height: 18px;
    }

    .card:nth-child(3n+3)::after {
        border-left: 9px solid transparent;
        border-right: 9px solid transparent;
        border-bottom: 15px solid var(--squid-green);
    }

    .today-card::after {
        width: 14px;
        height: 14px;
    }

}

/* P O P U P */

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 11, 25, 0.454);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    z-index: 100000 !important;
}

.popup-content {
    background: #001133;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-in-out;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #ffffff;
    font-weight: bold;
    transition: color 0.2s;
}

.popup-close:hover {
    color: #ff4444;
}

.telegram-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    display: block;
}

.popup-content h2 {
    margin: 0 0 10px;
    color: #1a73e8;
    font-size: 24px;
}

.popup-content p {
    margin: 0 0 20px;
    color: #555;
    font-size: 16px;
}

.telegram-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(45deg, #ffcc00, #ff6200, #ffcc00);
    background-size: 400% 100%;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow:
        0 4px 10px rgba(255, 98, 0, 0.3),
        0 2px 5px rgba(0, 0, 0, 0.2);
    animation: gradientFlow 4s ease-in-out infinite;
}


.telegram-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 15px rgba(255, 98, 0, 0.4),
        0 3px 8px rgba(0, 0, 0, 0.3);
}

#telegramPopup .popup-content {
    animation: popupZoom 0.6s ease;
}

@keyframes popupZoom {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 200% 50%;
    }

    100% {
        background-position: 400% 50%;
    }
}

/* Custom Dark Purple Scrollbar Styles */

/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #0a0a2e;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #1a0033, #2d1b69, #4a148c);
    border-radius: 10px;
    border: 2px solid #0a0a2e;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #2d1b69, #5e35b1, #7e57c2);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(45deg, #4a148c, #6a1b9a, #8e24aa);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #2d1b69 #0a0a2e;
}

/* Internet Explorer and Edge Legacy */
body {
    scrollbar-face-color: #2d1b69;
    scrollbar-track-color: #0a0a2e;
    scrollbar-arrow-color: #ffffff;
    scrollbar-shadow-color: #1a0033;
    scrollbar-highlight-color: #5e35b1;
    scrollbar-3dlight-color: #5e35b1;
    scrollbar-darkshadow-color: #0a0a2e;
}

/* Floating Telegram Button */
.floating-telegram-btn {
    position: fixed;
    bottom: 32px;
    right: 35px;
    z-index: 1000;
    animation: float 3s ease-in-out infinite;
}

.telegram-float-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0088cc, #229ED9);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 34px;
    box-shadow: 
        0 4px 20px rgba(0, 136, 204, 0.4),
        0 8px 40px rgba(0, 136, 204, 0.2);
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.telegram-float-link:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 
        0 6px 25px rgba(0, 136, 204, 0.6),
        0 12px 50px rgba(0, 136, 204, 0.3);
    background: linear-gradient(135deg, #229ED9, #0088cc);
}

.telegram-float-link i {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive adjustments for floating button */
@media (max-width: 768px) {
    .floating-telegram-btn {
        bottom: 15px;
        right: 15px;
    }
    
    .telegram-float-link {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* Note and DPP Card Container - Responsive Grid */
#lectureContent {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Desktop Grid Layout - 2 columns for larger screens */
@media (min-width: 768px) {
    #lectureContent {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Large Desktop - 3 columns for very wide screens */
@media (min-width: 1200px) {
    #lectureContent {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Note and DPP Card Styles */
.note-card,
.dpp-card {
    background: rgba(26, 26, 46, 0.95);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 0; /* Remove margin since grid handles spacing */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: fit-content; /* Ensure cards don't stretch unnecessarily */
}

.note-card:hover,
.dpp-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.note-card-content,
.dpp-card-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.note-icon,
.dpp-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.note-content,
.dpp-content {
    flex: 1;
    min-width: 0;
}

.note-title,
.dpp-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.note-label {
    color: #FFA726;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dpp-label {
    color: #9C27B0;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.note-arrow,
.dpp-arrow {
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.note-card:hover .note-arrow,
.dpp-card:hover .dpp-arrow {
    opacity: 1;
}

/* Play Button Styling - Extracted from test directory */
.play-button {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.8);
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.4),
        0 0 15px rgba(102, 126, 234, 0.7),
        0 0 30px rgba(118, 75, 162, 0.5),
        0 0 45px rgba(102, 126, 234, 0.3);
}

.lecture-card:hover .play-button {
    opacity: 1;
    transform: scale(1);
}

.play-button:hover {
    box-shadow:
        0 4px 25px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.6),
        0 0 20px rgba(102, 126, 234, 0.9),
        0 0 40px rgba(118, 75, 162, 0.7),
        0 0 60px rgba(102, 126, 234, 0.5),
        0 0 80px rgba(118, 75, 162, 0.3);
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.play-button svg {
    margin-left: 2px;
}

/* Lecture Play Button Styles */
.lecture-thumbnail {
    position: relative;
}

.lecture-play-button {
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    pointer-events: none;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.4),
        0 0 15px rgba(102, 126, 234, 0.7),
        0 0 30px rgba(118, 75, 162, 0.5),
        0 0 45px rgba(102, 126, 234, 0.3);
    z-index: 2;
}

.lecture-card:hover .lecture-play-button {
    box-shadow:
        0 4px 25px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.6),
        0 0 20px rgba(102, 126, 234, 0.9),
        0 0 40px rgba(118, 75, 162, 0.7),
        0 0 60px rgba(102, 126, 234, 0.5),
        0 0 80px rgba(118, 75, 162, 0.3);
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.lecture-play-button i {
    margin-left: 2px;
    font-size: 16px;
}

.today-play-button {
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    pointer-events: none;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.4),
        0 0 15px rgba(102, 126, 234, 0.7),
        0 0 30px rgba(118, 75, 162, 0.5),
        0 0 45px rgba(102, 126, 234, 0.3);
    z-index: 2;
}

.today-card:hover .today-play-button {
    box-shadow:
        0 4px 25px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.6),
        0 0 20px rgba(102, 126, 234, 0.9),
        0 0 40px rgba(118, 75, 162, 0.7),
        0 0 60px rgba(102, 126, 234, 0.5),
        0 0 80px rgba(118, 75, 162, 0.3);
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.today-play-button i {
    margin-left: 2px;
    font-size: 16px;
}

/* Modern Notification Popup */
.notification-popup {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    animation: slideDown 0.4s ease-out;
}

.notification-content {
    background: rgba(26, 26, 46, 0.95);
    border: 2px solid #FF6B6B;
    border-radius: 12px;
    padding: 16px 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 107, 107, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 500px;
}

.notification-icon {
    color: #FF6B6B;
    font-size: 20px;
    flex-shrink: 0;
}

.notification-message {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

.notification-popup.fade-out {
    animation: slideUp 0.3s ease-in forwards;
}

.status-tag {
    box-shadow: 0 0 10px rgba(0, 140, 255, 0.4) !important;
}

/* Video Watermark Overlay */
.video-watermark-top {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-watermark-top .watermark-logo {
    width: 15px !important;
    height: 15px !important;
    border-radius: 50%;
    object-fit: cover;
    min-width: 15px;
    min-height: 15px;
    max-width: 15px;
    max-height: 15px;
    position: static !important;
}

/* Load More Button Styling */
.load-more-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    padding: 0 20px;
}

.load-more-btn {
    background: linear-gradient(135deg, #0088cc, #229ED9);
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.2);
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 20px rgba(0, 136, 204, 0.4),
        0 8px 40px rgba(0, 136, 204, 0.2);
    position: relative;
    overflow: hidden;
    animation: float 3s ease-in-out infinite;
}

.load-more-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 
        0 6px 25px rgba(0, 136, 204, 0.6),
        0 12px 50px rgba(0, 136, 204, 0.3);
    background: linear-gradient(135deg, #229ED9, #0088cc);
}

.load-more-btn:active {
    transform: scale(1.05) translateY(0);
    box-shadow: 
        0 4px 20px rgba(0, 136, 204, 0.4),
        0 8px 40px rgba(0, 136, 204, 0.2);
}

@media (max-width: 768px) {
    .load-more-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}