/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    min-height: 100vh;
}

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

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.hidden {
    display: none !important;
}

.dashboard {
    padding: 120px 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    color: white;
}

.dashboard.no-navbar {
    /* padding: 2rem 2rem 2rem; */
     padding: 1.4rem 1rem 2rem 1rem;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.nav-img {
    width: 240px;
    height: 75px;
    margin-right: 15px;
}

.nav-logo i {
    margin-right: 0.5rem;
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #667eea;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn-login, .btn-signup {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-login {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-login:hover {
    background: #667eea;
    color: white;
}

.btn-signup {
    background: #667eea;
    color: white;
}

.btn-signup:hover {
    background: #764ba2;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    color: white;
    overflow: hidden;
    background-image:
        linear-gradient(135deg, rgba(148, 155, 207, 0.9) 0%, rgba(164, 132, 195, 0.9) 100%),
        url('./images/cover.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.text-highlight {
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.text-secondary {
    display: block;
    margin-top: 0.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
    animation: fadeInUp 1s ease-out 0.6s both;
    flex-wrap: nowrap;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.37);
    padding: 0.5rem 0.8rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    flex: 1 1 100px;
    min-width: 100px;
    max-width: 120px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #ffd93d;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.9s both;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
    margin-right: 5px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.5);
}

.btn-secondary {
    background: linear-gradient(45deg, #3342ebff, #a0fb84ff);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.9s both;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.5);
}

.hero-image {
    position: relative;
    margin-top: 4rem;
    z-index: 2;
}

.floating-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.leader-board-rank {
    font-weight: 700;
    font-size: 17px !important;
}

.floating-icons i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    animation: float 3s ease-in-out infinite;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.floating-icons i:nth-child(1) { animation-delay: 0s; }
.floating-icons i:nth-child(2) { animation-delay: 0.5s; }
.floating-icons i:nth-child(3) { animation-delay: 1s; }
.floating-icons i:nth-child(4) { animation-delay: 1.5s; }

/* Video List Section */
.video-list-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    /* backdrop-filter: blur(10px); */
}

.video-details h4 {
    color: #ffd93d;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 600px) {
    .hero-stats {
        flex-wrap: nowrap;
        gap: 0.5rem;
        padding: 0 0.5rem;
        overflow: visible;
    }

    .stat-item {
        flex: 1 1 80px;
        min-width: 80px;
        max-width: 100px;
        padding: 0.4rem 0.6rem;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .all-ranks-section h3 {
    color: #ffd93d;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .stat-number {
        font-size: 1.4rem;
    }
    .stat-label {
        font-size: 0.65rem;
    }
    .btn-primary {
        padding: 0.9rem 1.0rem;
        font-size: 0.8rem;
    }
    .btn-secondary {
        padding: 0.9rem 1.0rem;
        font-size: 0.8rem;
    }
    .hero-stats {
        gap: 0.3rem;
    }
    .stat-item {
        flex: 1 1 70px;
        min-width: 70px;
        max-width: 90px;
        padding: 0.3rem 0.5rem;
    }

    .about h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 3rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

}

/* About Section */
.about {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
}


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

.about-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.about-card:hover {
    transform: translateY(-10px);
}

.about-card i {
    font-size: 3rem;
    color: #ffd93d;
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.form-group {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.85rem;
}

.form-group input[type="number"] {
    width: 100px;
}

/* Dashboard Styles */
.dashboard {
    padding: 120px 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    color: white;
}

.hidden {
    display: none;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    position: relative;
}

.user-info-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.user-info-container h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffd93d;
    display: flex;
    align-items: center;
    margin: 0;
}

.user-info-container h2 i {
    font-size: 1.2rem;
    color: #ffd93d;
}

.compact-rank-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 700px;
    margin-top: 20px;
}

.user-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

.user-points {
    width: 100%;
    display: flex;
    align-items: center ;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 1.1rem 2.5rem;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
    /* margin-right: 10px; */
}

.admin-header-stats {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: white;
}

.rank-progress-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    flex: 1;
    animation: slideIn 0.5s ease-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.rank-progress-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.rank-progress-info img {
    width: 110px;
    height: 110px;
    animation: bounce 2s infinite;
}

.rank-progress-info h4 {
    color: #ffd93d;
    font-size: 1rem;
    margin: 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #4caf50, #8bc34a);
    transition: width 0.3s ease;
    animation: progressFill 2s ease-out;
}

#leaderboardRank {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.btn-logout {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.btn-logout:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

.btn-logout-icon {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
    margin-left: 20px !important;
}

.btn-logout-icon:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.5);
}

/* All Ranks Section */
.all-ranks-section {
    background: rgba(255, 255, 255, 0.1);
    padding:  1rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    position: relative;
}

.all-ranks-section h3 {
    color: #ffd93d;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.all-ranks-container-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    position: relative;
}

.all-ranks-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0 1.5rem 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
    flex: 1;
}

.all-ranks-container::-webkit-scrollbar {
    display: none;
}

.rank-tier-card {
    flex: 0 0 280px;
    background: rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

.rank-tier-card.unlocked {
    border: 2px solid #ffd93d;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.rank-tier-card.locked {
    opacity: 0.6;
}

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

.rank-tier-card img {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem auto;
    animation: bounce 2s infinite;
    display: block;
}

.rank-tier-card h4 {
    color: #ffd93d;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rank-tier-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.rank-tier-card .points-required {
    font-size: 0.9rem;
    color: #fff;
    background-color: rgb(77, 211, 223);
    border-radius: 25px;
    padding: 12px;
    margin-top: auto;
    font-weight: 600;
}

.scroll-arrow {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.scroll-arrow:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.scroll-arrow:active {
       transform: scale(0.95);
}

@media (max-width: 768px) {
    .all-ranks-container {
        gap: 1rem;
    }
    .rank-tier-card {
        flex: 0 0 220px;
        padding: 1.5rem;
    }
    .rank-tier-card img {
        width: 90px;
        height: 90px;
    }
    .rank-tier-card h4 {
        font-size: 1.1rem;
    }
    .rank-tier-card .points-required {
        font-size: 0.8rem;
        padding: 10px;
    }
    .scroll-arrow {
        font-size: 1.2rem;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .all-ranks-container-wrapper {
        gap: 0.5rem;
    }
    .all-ranks-container {
        gap: 0.5rem;
        padding-bottom: 1rem;
    }
    .rank-tier-card {
        flex: 0 0 180px;
        padding: 1rem;
        min-height: 200px;
    }
    .rank-tier-card img {
        width: 70px;
        height: 70px;
    }
    .rank-tier-card h4 {
        font-size: 1rem;
    }
    .rank-tier-card p {
        font-size: 0.8rem;
    }
    .rank-tier-card .points-required {
        font-size: 0.75rem;
        padding: 8px;
    }
    .scroll-arrow {
        font-size: 1rem;
        width: 35px;
        height: 35px;
    }

    .all-ranks-section h3 {
    color: #ffd93d;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.0rem;
}

/* Video List Section */
.video-list-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    /* backdrop-filter: blur(10px); */
}

   .video-details h4 {
    color: #ffd93d;
    font-size: 0.8rem !important;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-info-container h2 {
    font-size: 1.1rem !important;
    font-weight: 700;
    color: #ffd93d;
    display: flex;
    align-items: center;
    margin: 0;
}

.about-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.account-text {
   margin-top: 1rem;
}

}

/* Video List Section */
/* .video-list-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
} */

.video-list-section h3 {
    color: #ffd93d;
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 1.4rem;
}

.video-list-container {
    /* background: rgba(255, 255, 255, 0.1); */
    /* padding: 1.5rem; */
    border-radius: 15px;
    margin-top: 1rem;
    backdrop-filter: blur(10px);
    max-height: 600px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.video-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: white;
    transition: transform 0.3s ease;
}

.video-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

.video-thumbnail {
    flex: 0 0 120px;
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.video-details {
    flex: 1;
}

/* .video-details h4 {
    color: #ffd93d;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
} */

.video-details .fa-check-circle {
    color: #4CAF50;
    font-size: 1.1rem;
}

.video-rewards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.video-rewards span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 500;
}

.points-reward {
    background: linear-gradient(45deg, #667eea, #764ba2) !important;
}

.btn-watch-all {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-watch-all:hover {
    background: #764ba2;
    transform: translateY(-2px);
}

.btn-watch-all:disabled {
    background: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

@media (max-width: 480px) {
    .video-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .video-thumbnail {
        flex: none;
        width: 100%;
        max-width: 150px;
    }
    .video-details h4 {
        font-size: 1rem;
    }
    .video-rewards {
        margin-top: 0.3rem;
    }
    .btn-watch-all {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .video-list-section h3 {
    color: #ffd93d;
    text-align: center;
    margin: 2rem 2rem 1.2rem 2rem;
    font-size: 0.9rem;
}

.des-text {
    font-size: 0.8rem;
}

.about-card {
    margin: 0px 20px 0 20px;
}
}

/* Progress Section */
.progress-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

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

.progress-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
}

.progress-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffd93d;
}

/* Admin Styles */
.admin-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.admin-section h3 {
    color: #ffd93d;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.admin-stats {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    color: white;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.stat-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffd93d;
}

.stat-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.stat-card p {
    font-size: 2rem;
    font-weight: 700;
    color: #ffd93d;
}

/* Video Preview (for Admin Upload Form) */
.video-preview {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.video-preview h4 {
    color: #ffd93d;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.preview-player {
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.preview-player iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.preview-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: white;
}

.preview-info h5 {
    font-size: 1.3rem;
    color: #ffd93d;
}

.preview-info p {
    font-size: 1rem;
    opacity: 0.8;
}

/* Video Library Styles */
.video-library-page {
    padding: 120px 2rem 2rem;
    color: white;
}

.video-library-page h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

/* Rankings Section */
.rankings {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-top: 4rem;
}

.rankings h2 {
    text-align: center;
    color: white;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    background: linear-gradient(45deg, #ffd700, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rankings-container {
    max-width: 1000px;
    margin: 0 auto;
}

.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 4rem;
    perspective: 1000px;
}

.podium-rank {
    background: rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    min-width: 200px;
    transform-style: preserve-3d;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.podium-rank:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.podium-rank.rank-1 {
    background: linear-gradient(135deg, #ffd700, #ff6b6b);
    transform: scale(1.1);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3);
    z-index: 3;
}
.podium-rank.rank-1:hover {
    transform: scale(1.12) translateY(-10px) rotateY(5deg);
    box-shadow: 0 25px 45px rgba(255, 215, 0, 0.4);
}

.podium-rank.rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #667eea);
    box-shadow: 0 15px 30px rgba(192, 192, 192, 0.2);
    z-index: 2;
}
.podium-rank.rank-2:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 20px 35px rgba(192, 192, 192, 0.3);
}

.podium-rank.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #764ba2);
    box-shadow: 0 10px 20px rgba(205, 127, 50, 0.2);
    z-index: 1;
}
.podium-rank.rank-3:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 15px 25px rgba(205, 127, 50, 0.3);
}

.podium-position {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.rank-crown {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    animation: bounce 2s infinite;
}

.rank-avatar {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}
.rank-avatar.winner {
    color: #ffd700;
}

.rank-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-points {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.rank-donations {
    font-size: 0.9rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.medal {
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

.gold-medal { animation-delay: 0s; }
.silver-medal { animation-delay: 0.5s; }
.bronze-medal { animation-delay: 1s; }

/* Top 10 Section */
.top-10-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.top-10-section h3 {
    color: #ffd93d;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.rankings-list-top10 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ranking-item-top10 {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ranking-item-top10:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.ranking-item-top10.top-three {
    border: 2px solid #ffd700;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}
.ranking-item-top10.top-three:hover {
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.ranking-item-top10.current-user {
    border: 2px solid #ff6b6b;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), rgba(255, 215, 0, 0.1));
    animation: glow 2s ease-in-out infinite alternate;
}
.ranking-item-top10.current-user:hover {
    transform: translateX(10px);
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 215, 0, 0.15));
    box-shadow: 0 0 25px rgba(255, 107, 107, 0.4);
}

.ranking-position {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    flex-shrink: 0;
}

.position-number {
    font-size: 1.5rem;
    font-weight: 700;
}

.ranking-avatar {
    font-size: 2rem;
    color: #667eea;
    flex-shrink: 0;
}

.ranking-info {
    flex: 1;
    min-width: 0;
}

.ranking-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-stats {
    font-size: 0.9rem;
    opacity: 0.8;
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
}

.ranking-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.ranking-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.ranking-badge img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.ranking-badge .rank-name {
    font-size: 1.0rem;
    color: #ffd93d;
    margin-bottom: 0;
}

.ranking-progress {
    min-width: 100px;
    flex-shrink: 0;
}

.ranking-progress .progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.ranking-progress .progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #4caf50, #8bc34a);
    transition: width 0.3s ease;
}

.rankings-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ranking-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.ranking-item:hover {
    transform: translateX(10px);
}

.ranking-item .rank-badge {
    position: static;
    width: 30px;
    height: 30px;
    margin-left: 1rem;
}

/* All Rankings Section */
.all-rankings-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    margin-top: 2rem;
}

.all-rankings-section h3 {
    color: #ffd93d;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.rankings-list-all {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.ranking-item-all {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: white;
    transition: all 0.3s ease;
}

.ranking-item-all:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.ranking-item-all.current-user {
    border: 1px solid #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}
.ranking-item-all.current-user:hover {
    background: rgba(255, 107, 107, 0.15);
    transform: translateX(5px);
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.3);
}

.ranking-item-all .ranking-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.ranking-item-all .ranking-name {
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 1.2rem;
}

.ranking-item-all .ranking-stats {
    font-size: 1.2rem;
    opacity: 0.8;
    display: flex;
    gap: 0.5rem;
}

.ranking-item-all .ranking-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.ranking-item-all .ranking-badge img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.ranking-item-all .ranking-badge .rank-name {
    font-size: 1.0rem;
    color: #ffd93d;
}

.no-rankings {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    padding: 2rem;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffd93d;
    font-size: 1.3rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ffd93d;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 500;
    z-index: 3000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    background: linear-gradient(45deg, #4caf50, #8bc34a);
}

.notification.error {
    background: linear-gradient(45deg, #f44336, #ff6b6b);
}

.notification.info {
    background: linear-gradient(45deg, #2196f3, #667eea);
}

.notification i {
    font-size: 1.2rem;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes progressFill {
    from { width: 0%; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

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

@keyframes slideIn {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes glow {
    from { box-shadow: 0 0 20px rgba(255, 215, 0, 0.6); }
    to { box-shadow: 0 0 30px rgba(255, 215, 0, 0.8); }
}

/* Navigation - Responsive Toggler */
.nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: #667eea;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px; /* Adjusted to be below the navbar */
        left: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 1rem 0;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        box-sizing: border-box; /* Include padding in width */
    }

    .ranking-item-all .ranking-name {
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 1.0rem;
}

    .nav-menu.active {
        display: flex;
    }

    .nav-menu .nav-link {
        padding: 1rem;
        text-align: center;
        width: 100%; /* Make links take full width */
    }

    .nav-toggle {
        display: block;
    }

    .nav-container {
            flex-wrap: wrap;
    padding: 0.5rem 1rem; /* Added padding for better spacing */
}

.nav-logo {
    margin-right: auto; /* Push elements to the right */
}

.hero-title {
    font-size: 2.8rem;
}

.text-highlight {
    font-size: 2rem;
}

.text-secondary {
    font-size: 2rem;
}

.hero-subtitle {
    font-size: 15px !important;
}

.stat-number {
    font-size: 28px !important;
}

.ranking-item-top10 {
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0.8rem;
    font-size: 0.9rem;
}

.ranking-position {
    min-width: 50px;
}

.position-number {
    font-size: 0.9rem;
}

.ranking-avatar {
    font-size: 1.5rem;
}

.ranking-info {
    flex: 1;
    min-width: 0;
}

.ranking-name {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.ranking-stats {
    font-size: 0.8rem;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.ranking-badge {
    gap: 0.3rem;
}

.ranking-badge img {
    width: 40px;
    height: 40px;
}

.ranking-badge .rank-name {
    font-size: 1.0rem;
}

.ranking-progress {
    min-width: 80px;
}

.rank-progress-info img {
    width: 80px;
    height: 80px;
}

.podium-container {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.podium-rank.rank-1 {
    transform: none;
    order: -1;
    margin-bottom: 1rem;
}

.podium-rank {
    width: 100%;
    max-width: 300px;
    margin-bottom: 0.5rem;
    min-width: auto;
}

.podium-rank:hover {
    transform: none;
}
.podium-rank.rank-1:hover {
    transform: none;
}
.podium-rank.rank-2:hover {
    transform: none;
}
.podium-rank.rank-3:hover {
    transform: none;
}

.ranking-item-all .ranking-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
}

.ranking-item-all .ranking-stats {
    font-size: 0.9rem;
}

.video-item {
    flex-direction: row;
    gap: 0.5rem;
}

.video-thumbnail {
    flex: 0 0 100px;
}

.video-details h4 {
    font-size: 1rem;
}

.video-details p {
    font-size: 0.8rem;
}

.btn-watch-all {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.dashboard-header {
    flex-direction: column;
    gap: 0rem;
    text-align: left;
    padding: 1.2rem;
}

.user-info-container {
    flex-direction: column;
    align-items: flex-start;
    flex: none; /* Remove flex: 1 */
    width: 100%; /* Occupy full width */
}

.user-stats {
    flex-direction: column; /* Arrange stats horizontally */
    gap: 1rem;
    align-items: center;
    width: 100%; /* Occupy full width */
    margin-top: 0.5rem;
}

.user-points {
    width: 100%;
    justify-content: center;
    padding: 1.2rem 0.8rem;
    font-size: 1.3rem;
    font-weight: 700;
    /* margin-right: 10px; */
}

.btn-logout-icon {
    position: absolute; /* Position absolutely within the header */
    top: 15px; /* Adjust as needed */
    right: 15px; /* Adjust as needed */
    background-color: #e74c3c; /* Red color for logout */
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
 
}

.btn-logout-icon:hover {
    background-color: #c0392b;
    transform: scale(1.1);
}

.compact-rank-progress {
    max-width: 250px;
    width: 100%;
}

.rank-progress-card {
    padding: 0.8rem;
}

/* mobile view */
.rank-progress-info img {
    width: 80px;
    height: 80px;
}

.rank-progress-info h4 {
    font-size: 0.9rem;
}

#leaderboardRank {
    font-size: 0.7rem;
}

.preview-container {
    grid-template-columns: 1fr;
}

.about-content {
    grid-template-columns: 1fr;
}

.footer-content {
    grid-template-columns: 1fr;
    text-align: center;
}

.video-history-item {
    flex-direction: column;
    align-items: flex-start;
}

.video-history-item .video-thumbnail {
    flex: none;
    width: 100%;
    max-width: 200px;
}

.video-actions {
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
}

.user-list-container {
    overflow-x: auto;
}

#userTable {
    font-size: 0.9rem;
}

#userTable th, #userTable td {
    padding: 0.8rem;
}

#userTable th:nth-child(4),
#userTable th:nth-child(5) {
    width: 100px;
}
}

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

    .nav-container {
        padding: 0 1rem;
    }

    .dashboard {
        padding: 120px 1rem 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .ranking-item-top10 {
        padding: 0.6rem;
        font-size: 0.8rem;
        gap: 0.3rem;
    }

    .ranking-position {
        min-width: 40px;
    }

    .position-number {
        font-size: 0.9rem;
    }

    .ranking-avatar {
        font-size: 1.2rem;
    }

    .ranking-name {
        font-size: 0.8rem;
    }

    .ranking-stats {
        font-size: 0.75rem;
        gap: 0.3rem;
    }

    .ranking-badge img {
        width: 25px;
        height: 25px;
    }

    .ranking-badge .rank-name {
        font-size: 0.7rem;
    }

    .ranking-progress {
        min-width: 60px;
    }

    .podium-rank {
        width: 100%;
        max-width: 250px;
        padding: 1rem;
    }

    .ranking-item-all {
        padding: 0.6rem;
    }

    .ranking-item-all .ranking-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .ranking-item-all .ranking-stats {
        font-size: 0.7rem;
    }

    .ranking-item-all .ranking-badge img {
        width: 25px;
        height: 25px;
    }

    .ranking-item-all .ranking-badge .rank-name {
        font-size: 0.7rem;
    }

    .compact-rank-progress {
        max-width: 200px;
        width: 100%;
    }

    .rank-progress-card {
        padding: 0.5rem;
    }

    .rank-progress-info h4 {
        font-size: 0.9rem;
    }

    .btn-logout-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        top: 10px;
        right: 10px;
       
    }

    .rankings h2 {
    text-align: center;
    color: white;
    margin-bottom: 3rem;
    font-size: 1.6rem;
    background: linear-gradient(45deg, #ffd700, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-group {
    display: flex;
    justify-content: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.ranking-item-all .ranking-name {
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
}

}

/* Video Rewards Styles */
.video-rewards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.video-rewards span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.points-reward {
    background: linear-gradient(45deg, #667eea, #764ba2) !important;
}

.clicks-reward {
    background: linear-gradient(45deg, #4caf50, #8bc34a) !important;
}

.usd-reward {
    background: linear-gradient(45deg, #ffd700, #ff6b6b) !important;
}

.reward-status {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0.3rem 0;
}

/* Admin User List Styles */
.user-list-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
    overflow-x: auto;
}

#userTable {
    width: 100%;
    border-collapse: collapse;
    color: white;
}

#userTable th,
#userTable td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

#userTable th {
    background: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

#userTable td {
    font-size: 0.95rem;
}

#userTable tbody tr:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Video History Styles */
.video-history-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 1rem;
    backdrop-filter: blur(10px);
    max-height: 600px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.video-history-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: white;
    transition: all 0.3s ease;
}

.video-history-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
}

.video-history-item .video-thumbnail {
    flex: 0 0 120px;
}

.video-history-item .video-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.video-history-item .video-info {
    flex: 1;
    color: white;
}

.video-history-item .video-info h4 {
    color: #ffd93d;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.video-history-item .video-info p {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-history-item .video-info i {
    color: #667eea;
}

.video-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-small:hover {
    transform: translateY(-2px);
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-primary.btn-small {
    background: #667eea;
    color: white;
}

.btn-primary.btn-small:hover {
    background: #764ba2;
}

.btn-secondary.btn-small {
    background: #667eea;
    color: white;
}

.btn-secondary.btn-small:hover {
    background: #764ba2;
}

/* Responsive adjustments for table */
@media (max-width: 1200px) {
    #userTable th,
    #userTable td {
        padding: 0.8rem;
    }
    #userTable th:nth-child(4),
    #userTable th:nth-child(5) {
        width: 100px;
    }
}

@media (max-width: 768px) {
    #userTable th,
    #userTable td {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
}

/* Final check for responsive adjustments on dashboard header */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }
    .user-info-container {
        width: 100%;
        margin-bottom: 1rem;
    }
    .user-stats {
        width: 100%;
        justify-content: flex-start;
        margin-top: 0.5rem;
    }
    .btn-logout-icon {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    .compact-rank-progress {
        max-width: 100%;
    }
}

/* Toggle functionality styles */
.rank-progress-card.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100% !important;
}

.rank-progress-card.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.rank-progress-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    justify-content: space-between;
}

.toggle-icon {
    font-size: 1.2rem;
    color: #ffd93d;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.toggle-icon.fa-chevron-up {
    transform: rotate(180deg);
}

.rank-progress-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.rank-progress-info .toggle-icon {
    margin-left: auto;
}

/* All ranks section toggle animation */
.all-ranks-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.all-ranks-section.hidden {
    max-height: 0;
    padding: 0 1rem;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(-10px);
}

.all-ranks-section:not(.hidden) {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments for toggle icon */
@media (max-width: 768px) {
    .rank-progress-info {
        flex-wrap: nowrap;
    }
    
    .toggle-icon {
        font-size: 0.9rem;
        margin-left: 0.5rem;
    }
}

@media (max-width: 480px) {
    .rank-progress-info {
        gap: 0.3rem;
    }
    
    .toggle-icon {
        font-size: 1.2rem;
        margin-right: 1rem;
    }
}

.video-warning {
      background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
      color: #333;
      padding: 15px 20px;
      border-radius: 16px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
      max-width: 500px;
      width: 90%;
      font-size: 0.8rem;
      text-align: center;
      line-height: 1.6;
      border-left: 5px solid #ff9800;
    }

    @media (max-width: 480px) {
      .video-warning {
        padding: 15px 20px;
        font-size: 0.8rem;
      }
    }

  .all-ranks-section {
  position: relative;
  padding: 20px;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #333;
  transition: color 0.3s;
}

.close-button:hover {
  color: #ff0000;
}

.close-button i {
  margin: 0;
}

.box {
      width: 100%;
      background: linear-gradient(135deg, #ffffff, #f0f4ff);
      border-radius: 15px;
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
      overflow: hidden;
      border: 2px solid #6366f1;
      padding: 5px;
    }
    .marquee {
      width: 100%;
      overflow: hidden;
      white-space: nowrap;
      box-sizing: border-box;
    }
    .marquee p {
      display: inline-block; 
      font-size: 13px;
      color: #1e40af;
      font-weight: bold;
      padding-left: 100%;
      animation: marquee 12s linear infinite;
      margin: 0;
    }
    @keyframes marquee {
      0% {
        transform: translateX(0);
      }
      100% {
        transform: translateX(-100%);
      }
    }
    /* Hover effect to pause animation */
    .marquee:hover p {
      animation-play-state: paused;
    }

   /* Container for the form */
#scrollingTextForm {
  max-width: 800px; /* Increased width for laptop view */
  margin: 20px auto;
  padding: 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  font-family: 'Arial', sans-serif;
}

/* Textarea styling */
#scrollingTextInput {
  width: 100%;
  padding: 12px;
  border: 2px solid #dfe1e5;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
}

/* Textarea focus effect */
#scrollingTextInput:focus {
  outline: none;
  border-color: #6200ea;
  box-shadow: 0 0 8px rgba(98, 0, 234, 0.3);
}

/* Button styling */
.update-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #6200ea;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Button hover effect */
.update-btn:hover {
  background-color: #4500a0;
  transform: translateY(-2px);
}

/* Button active effect */
.update-btn:active {
  transform: translateY(0);
}

/* Responsive design for smaller screens */
@media (max-width: 480px) {
  #scrollingTextForm {
    padding: 15px;
    margin: 10px;
  }

  #scrollingTextInput {
    font-size: 14px;
  }

  .update-btn {
    width: 100%;
    padding: 12px;
  }
}

/* Ensure wider form only for laptop screens (1024px and above) */
@media (min-width: 1024px) {
  #scrollingTextForm {
    max-width: 900px; /* Further increased width for larger laptop screens */
  }
}