* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #1A3A1F;
    color: white;
    overflow-x: hidden;
}


/* App Container */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    background-color: #000000;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.app-header h1 {
    color: #61CE70;
    font-size: 1.5rem;
}

.main-content {
    flex: 1;
    padding: 1rem;
    padding-bottom: 100px; /* Space for bottom nav */
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    color: #61CE70;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

/* Carousel */
.carousel-container {
    margin-bottom: 2rem;
}

.modules-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-behavior: smooth;
}

.modules-carousel::-webkit-scrollbar {
    height: 8px;
}

.modules-carousel::-webkit-scrollbar-track {
    background: #000000;
    border-radius: 10px;
}

.modules-carousel::-webkit-scrollbar-thumb {
    background: #61CE70;
    border-radius: 10px;
}

.module-card {
    min-width: 280px;
    background-color: #000000;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(97, 206, 112, 0.3);
}

.module-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.module-card h3 {
    padding: 1rem;
    color: white;
    font-size: 1rem;
}

/* Video Grid */
.video-grid {
    margin-top: 2rem;
}

.back-btn {
    background-color: #61CE70;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background-color: #4fb05a;
}

.videos-container {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.video-item {
    background-color: #000000;
    border-radius: 15px;
    overflow: hidden;
}

.video-item iframe {
    width: 100%;
    height: 200px;
    border: none;
}

/* File Download Styles */
.file-download {
    display: flex;
    align-items: center;
    padding: 2rem;
    background-color: #000000;
    border-radius: 15px;
    gap: 1.5rem;
}

.file-icon {
    font-size: 3rem;
    color: #61CE70;
    min-width: 60px;
    text-align: center;
}

.file-info {
    flex: 1;
}

.file-info h4 {
    color: #61CE70;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.file-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #61CE70;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background-color: #4fb05a;
    transform: translateY(-2px);
}

/* Day Selector Styles */
.day-selector {
    margin-bottom: 2rem;
}

.day-selector h4 {
    color: #61CE70;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.day-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.day-btn {
    padding: 8px 16px;
    background-color: #000000;
    color: white;
    border: 2px solid #61CE70;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.day-btn:hover {
    background-color: #61CE70;
    color: white;
}

.day-btn.active {
    background-color: #61CE70;
    color: white;
}

.day-videos-container {
    display: grid;
    gap: 1rem;
}

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

@media (min-width: 768px) {
    .day-videos-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .day-videos-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Upsell Cards */
.upsell-container {
    display: grid;
    gap: 1.5rem;
    margin-top: 1rem;
}

.upsell-card {
    background-color: #000000;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upsell-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(97, 206, 112, 0.3);
}

.upsell-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.upsell-card h3 {
    padding: 1rem 1rem 0.5rem;
    color: #61CE70;
    font-size: 1.2rem;
}

.upsell-card p {
    padding: 0 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
}

.price {
    padding: 0.5rem 1rem 1rem;
    color: #61CE70;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Configuration */
.config-options {
    space-y: 1rem;
}

.config-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #000000;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.config-item span {
    font-size: 1rem;
}

.config-item select {
    background-color: #1E1B2E;
    color: white;
    border: 1px solid #61CE70;
    border-radius: 5px;
    padding: 0.5rem;
}

/* Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #61CE70;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #000000;
    display: flex;
    padding: 1rem 0;
    border-top: 1px solid rgba(97, 206, 112, 0.3);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}

.nav-btn {
    flex: 1;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.nav-btn.active {
    color: #61CE70;
}

.nav-btn i {
    font-size: 1.2rem;
}

.nav-btn span {
    font-size: 0.8rem;
}

/* Responsive Design */
@media (min-width: 768px) {
    .videos-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .upsell-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-content {
        padding: 2rem;
        padding-bottom: 120px;
    }
}

@media (min-width: 1024px) {
    .videos-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .modules-carousel {
        justify-content: center;
    }
    
    .module-card {
        max-width: 300px;
    }
    
    .upsell-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Premium Section */
.premium-section {
    margin-top: 3rem;
}

.premium-section h2 {
    color: #61CE70;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.premium-container {
    display: grid;
    gap: 1.5rem;
    margin-top: 1rem;
}

.premium-card {
    position: relative;
    background-color: #000000;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.premium-card.locked {
    position: relative;
}

.lock-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.lock-overlay i {
    color: #61CE70;
    font-size: 1.2rem;
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(97, 206, 112, 0.3);
    opacity: 1;
}

.premium-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.premium-card h3 {
    padding: 1rem 1rem 0.5rem;
    color: #61CE70;
    font-size: 1.2rem;
}

.premium-card p {
    padding: 0 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
}

.premium-card .price {
    padding: 0.5rem 1rem 1rem;
    color: #61CE70;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Continue watching section */
.continue-watching {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.7);
}

.continue-watching p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive Design Updates */
@media (min-width: 768px) {
    .premium-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .premium-card {
        max-width: 400px;
        margin: 0 auto;
    }
}
