/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Neue', cursive;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    font-size: 4rem;
    animation: bounce 2s infinite;
    margin-bottom: 20px;
}

.loading-bar {
    width: 300px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 20px;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1);
    border-radius: 4px;
    animation: loading 3s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

@keyframes loading {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 2rem;
    color: #4ecdc4;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 10px;
}

.menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.menu-btn:hover,
.menu-btn.active {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    transform: translateY(-2px);
}

.menu-btn i {
    font-size: 1.2rem;
}

.menu-btn span {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Learning Modules */
.learning-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.module-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.module-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.module-card:hover::before {
    left: 100%;
}

.module-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #4ecdc4;
    animation: float 3s ease-in-out infinite;
}

.module-card[data-module="butterfly"] .module-icon { color: #ff6b6b; }
.module-card[data-module="chicken"] .module-icon { color: #ffa726; }
.module-card[data-module="plant"] .module-icon { color: #66bb6a; }
.module-card[data-module="conservation"] .module-icon { color: #ab47bc; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.module-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.module-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ecdc4, #44a08d);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

.start-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.start-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

/* Module Sections */
.module-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.module-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.back-btn {
    background: #f8f9fa;
    border: none;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.back-btn:hover {
    background: #e9ecef;
    transform: translateX(-2px);
}

.module-header h2 {
    font-size: 2rem;
    color: #333;
}

/* Lifecycle Container */
.lifecycle-container {
    position: relative;
    margin-bottom: 40px;
}

.lifecycle-stage {
    display: none;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
}

.lifecycle-stage.active {
    display: flex;
    opacity: 1;
    transform: translateX(0);
    gap: 40px;
    align-items: center;
}

.stage-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
    position: relative;
}

.stage-visual i {
    font-size: 6rem;
    color: #4ecdc4;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.stage-info {
    flex: 1;
    padding: 20px;
}

.stage-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.stage-info p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #666;
}

.stage-info ul {
    list-style: none;
    padding-left: 0;
}

.stage-info li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #555;
}

.stage-info li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4ecdc4;
    font-weight: bold;
}

/* Stage Navigation */
.stage-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.prev-stage,
.next-stage {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.prev-stage:disabled,
.next-stage:disabled {
    background: #ddd;
    cursor: not-allowed;
    transform: none;
}

.prev-stage:not(:disabled):hover,
.next-stage:not(:disabled):hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

.stage-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #4ecdc4;
    transform: scale(1.2);
}

/* Quiz Section */
.quiz-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
}

.quiz-section h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.quiz-question p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.quiz-option {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid transparent;
    padding: 15px 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
}

.quiz-option:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.quiz-option.correct {
    background: #4caf50;
    border-color: #4caf50;
}

.quiz-option.incorrect {
    background: #f44336;
    border-color: #f44336;
}

/* Progress Section */
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.progress-header h2 {
    font-size: 2rem;
    color: #333;
}

.overall-progress {
    text-align: center;
}

.progress-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(#4ecdc4 0deg, #e0e0e0 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    position: relative;
}

.progress-circle::before {
    content: '';
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    position: absolute;
}

.progress-percentage {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    z-index: 1;
}

.detailed-progress {
    background: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.progress-item:last-child {
    border-bottom: none;
}

.progress-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.progress-details {
    flex: 1;
}

.progress-details h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.progress-details .progress-bar {
    margin-bottom: 5px;
}

.progress-text {
    font-size: 0.9rem;
    color: #666;
}

/* Achievements */
.achievements {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.achievements h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.achievement-badge {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.achievement-badge.locked {
    background: #f0f0f0;
    color: #999;
    box-shadow: none;
}

.achievement-badge:not(.locked):hover {
    transform: scale(1.05);
}

.achievement-badge i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.achievement-badge span {
    font-weight: 600;
}

/* Videos Section */
.videos-header {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 50px 40px;
    border-radius: 25px;
    margin-bottom: 40px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    color: white;
}

.videos-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.videos-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease;
}

.videos-header p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Videos Header Decorative Elements */
.videos-header::after {
    content: '🎬🦋🌱🎮✨';
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 1.2rem;
    opacity: 0.3;
    animation: float 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Enhanced Videos Header Hover Effect */
.videos-header:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 70px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.video-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-preview {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.video-preview .fa-play-circle {
    position: absolute;
    font-size: 4rem;
    color: white;
    z-index: 2;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.video-card:hover .video-preview .fa-play-circle {
    transform: scale(1.1);
    opacity: 1;
}

.thumbnail-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.video-card:hover .thumbnail-image {
    opacity: 0.6;
    transform: scale(1.05);
}

.video-info {
    padding: 25px;
}

.video-info h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.4;
}

.video-info p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.video-duration {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: #999;
    font-size: 0.9rem;
}

.video-duration i {
    color: #4ecdc4;
}

.watch-btn {
    background: linear-gradient(45deg, #4ecdc4, #6bcf7f);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.watch-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

.watch-btn i {
    font-size: 1.1rem;
}

/* Games Section */
.games-header {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.games-header h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
}

.games-header p {
    font-size: 1.2rem;
    color: #666;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.game-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.game-icon {
    font-size: 3rem;
    color: #4ecdc4;
    margin-bottom: 20px;
}

.game-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.game-card p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.play-btn {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .learning-modules {
        grid-template-columns: 1fr;
    }
    
    .lifecycle-stage.active {
        flex-direction: column;
        gap: 20px;
    }
    
    .stage-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .progress-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .progress-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .module-card {
        padding: 20px;
    }
    
    .module-section {
        padding: 20px;
    }
    
    .stage-visual {
        min-height: 200px;
    }
    
    .stage-visual i {
        font-size: 4rem;
    }
    
    .quiz-options {
        grid-template-columns: 1fr;
    }
}

/* Animation Utilities */
.fade-in {
    animation: fadeIn 0.5s ease;
}

.slide-in-left {
    animation: slideInLeft 0.5s ease;
}

.slide-in-right {
    animation: slideInRight 0.5s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Success and Error Messages */
.message {
    padding: 15px 20px;
    border-radius: 10px;
    margin: 20px 0;
    font-weight: 600;
    display: none;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Video Modal Styles */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.video-modal-header {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.video-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.video-player-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.video-player-container:hover .video-controls {
    opacity: 1;
}

.video-control-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-control-btn:hover {
    background: white;
    transform: scale(1.1);
}

.video-progress-container {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.video-progress {
    height: 100%;
    background: linear-gradient(45deg, #4ecdc4, #6bcf7f);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
}

.video-time {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 45px;
}

.video-error {
    padding: 40px;
    text-align: center;
    color: #666;
}

.video-error i {
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 15px;
}

.video-error h4 {
    margin-bottom: 10px;
    color: #333;
}

.video-error p {
    font-size: 0.9rem;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .videos-header {
        padding: 35px 25px;
        margin-bottom: 30px;
        border-radius: 20px;
    }
    
    .videos-header h2 {
        font-size: 2rem;
    }
    
    .videos-header p {
        font-size: 1.1rem;
    }
    
    .videos-header::after {
        font-size: 1rem;
        top: 12px;
        right: 20px;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .video-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .video-modal-header {
        padding: 15px;
    }
    
    .video-modal-header h3 {
        font-size: 1.3rem;
    }
    
    .video-controls {
        padding: 15px;
        gap: 10px;
    }
    
    .video-control-btn {
        width: 35px;
        height: 35px;
    }
    
    .video-time {
        font-size: 0.8rem;
        min-width: 40px;
    }
}

@media (max-width: 480px) {
    .videos-header {
        padding: 30px 20px;
        margin-bottom: 25px;
        border-radius: 15px;
    }
    
    .videos-header h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .videos-header p {
        font-size: 1rem;
    }
    
    .videos-header::after {
        font-size: 0.9rem;
        top: 10px;
        right: 15px;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .video-card {
        margin: 0 10px;
    }
    
    .video-thumbnail {
        height: 180px;
    }
    
    .video-info {
        padding: 20px;
    }
    
    .video-info h3 {
        font-size: 1.2rem;
    }
    
    .video-modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
        margin: 0;
    }
    
    .video-modal-header {
        padding: 12px 15px;
    }
    
    .video-modal-header h3 {
        font-size: 1.1rem;
    }
}

/* E-LKPD Styles */
.elkpd-header {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 50px 40px;
    border-radius: 25px;
    margin-bottom: 40px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    color: white;
    position: relative;
    overflow: hidden;
}

.elkpd-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

.elkpd-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.elkpd-header p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.elkpd-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.info-item i {
    font-size: 1.2rem;
    color: #ffd700;
}

/* Student Identity Section */
.student-identity {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    margin: 30px auto;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 69, 19, 0.2);
}

.student-identity h3 {
    color: #8b4513;
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid #228b22;
    padding-bottom: 15px;
}

.identity-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.identity-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.identity-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.identity-field.full-width {
    grid-column: 1 / -1;
    max-width: 400px;
}

.identity-field label {
    font-weight: 600;
    color: #8b4513;
    font-size: 1rem;
}

.identity-field input,
.identity-field select {
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.identity-field input:focus,
.identity-field select:focus {
    outline: none;
    border-color: #228b22;
    box-shadow: 0 0 0 3px rgba(34, 139, 34, 0.1);
    transform: translateY(-1px);
}

.identity-field input:valid,
.identity-field select:valid {
    border-color: #228b22;
}

.identity-field input:invalid:not(:placeholder-shown) {
    border-color: #ff6b6b;
}

/* Date input styling */
.identity-field input[type="date"] {
    color: #8b4513;
    font-family: inherit;
}

.identity-field input[type="date"]::-webkit-calendar-picker-indicator {
    color: #228b22;
    cursor: pointer;
}

/* Select styling */
.identity-field select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%238b4513' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .student-identity {
        margin: 20px;
        padding: 20px;
    }
    
    .identity-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .student-identity h4 {
        font-size: 1.3rem;
    }
}

/* Navigation Tabs */
.elkpd-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.elkpd-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 30px;
    background: white;
    border: 3px solid #e9ecef;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #666;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.elkpd-nav-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.elkpd-nav-btn.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.elkpd-nav-btn i {
    font-size: 1.5rem;
}

/* Phases */
.elkpd-phase {
    display: none;
    animation: fadeIn 0.5s ease;
}

.elkpd-phase.active {
    display: block;
}

.phase-header {
    text-align: center;
    margin-bottom: 40px;
}

.phase-header h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
}

.phase-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Activities Grid */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Activity Cards */
.activity-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.activity-header h4 {
    font-size: 1.3rem;
    color: #333;
    font-weight: 700;
}

.activity-type {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Instructions */
.instruction {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    border-left: 4px solid #667eea;
}

.instruction h5 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 700;
}

.instruction ol {
    margin-left: 20px;
    line-height: 1.8;
    color: #555;
}

.instruction li {
    margin-bottom: 8px;
}

/* Activity Workspace */
.activity-workspace {
    margin-bottom: 25px;
}

/* Topic Selector */
.topic-selector {
    margin-bottom: 20px;
}

.topic-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.topic-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.topic-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Upload Zones */
.upload-zone {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(102, 126, 234, 0.05);
    margin-bottom: 20px;
}

.upload-zone:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #5a67d8;
    transform: scale(1.02);
}

.upload-zone i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 15px;
    display: block;
}

.upload-zone p {
    color: #667eea;
    font-weight: 600;
    margin: 0;
}

.file-input {
    display: none;
}

/* Stage Inputs */
.stages-input {
    margin-top: 20px;
}

.stages-input h6 {
    margin-bottom: 15px;
    color: #333;
    font-weight: 700;
}

.stage-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.stage-name {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
}

.stage-description {
    flex: 2;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    resize: vertical;
    min-height: 80px;
}

.stage-name:focus,
.stage-description:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Comparison Table */
.comparison-table {
    overflow-x: auto;
    margin-bottom: 20px;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.comparison-table th {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 700;
}

.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.comparison-table td:first-child {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.comparison-table input,
.comparison-table textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.9rem;
}

.comparison-table textarea {
    min-height: 60px;
    resize: vertical;
}

/* Conclusion Area */
.conclusion-area {
    margin-top: 20px;
}

.conclusion-area h6 {
    margin-bottom: 10px;
    color: #333;
    font-weight: 700;
}

.conclusion-text {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    min-height: 100px;
    resize: vertical;
}

.conclusion-text:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Timeline Builder */
.timeline-builder {
    position: relative;
    padding-left: 40px;
}

.timeline-builder::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    border-radius: 2px;
}

.timeline-stage {
    position: relative;
    margin-bottom: 30px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #f0f0f0;
}

.timeline-stage:hover {
    border-color: #667eea;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.stage-number {
    position: absolute;
    left: -55px;
    top: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.stage-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: start;
}

.stage-title,
.stage-duration {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
}

.stage-factors {
    grid-column: 1 / -1;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    min-height: 80px;
    resize: vertical;
}

.image-upload {
    display: flex;
    align-items: center;
    gap: 10px;
}

.image-upload label {
    padding: 8px 15px;
    background: #667eea;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.image-upload label:hover {
    background: #5a67d8;
}

/* Project Planner */
.project-planner {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.project-section {
    margin-bottom: 25px;
}

.project-section h6 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1.1rem;
}

.project-goal {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    min-height: 80px;
    resize: vertical;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.schedule-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-item label {
    font-weight: 600;
    color: #333;
}

.schedule-item input {
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
}

/* Game Integration */
.game-integration {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.integration-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.integration-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    cursor: pointer;
}

.integration-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.integration-item textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    min-height: 60px;
    resize: vertical;
}

/* Documentation Area */
.documentation-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.observation-notes {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    min-height: 120px;
    resize: vertical;
}

/* Reflection Questions */
.reflection-questions {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.question-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.question-item h6 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1.1rem;
}

.reflection-answer {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    min-height: 100px;
    resize: vertical;
    font-size: 1rem;
}

/* Activity Rating */
.activity-rating {
    margin: 15px 0;
}

.rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.rating-item:last-child {
    border-bottom: none;
}

.rating-item label {
    font-weight: 600;
    color: #333;
}

.stars {
    display: flex;
    gap: 5px;
}

.star {
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.3;
}

.star:hover,
.star.active {
    opacity: 1;
    transform: scale(1.2);
}

.rating-explanation {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    min-height: 80px;
    resize: vertical;
    margin-top: 15px;
}

/* Final Test */
.final-test {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.test-question {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.test-question h6 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1.1rem;
}

.test-answer {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    min-height: 100px;
    resize: vertical;
    font-size: 1rem;
}

/* Drag and Drop */
.ordering-area {
    margin: 15px 0;
}

.draggable-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 2px dashed #e9ecef;
}

.drag-item {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: grab;
    font-weight: 600;
    transition: all 0.3s ease;
    user-select: none;
}

.drag-item:active {
    cursor: grabbing;
    transform: scale(1.05);
}

.drag-item.dragging {
    opacity: 0.5;
}

.drop-zone-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.drop-zone {
    width: 80px;
    height: 80px;
    border: 3px dashed #e9ecef;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #999;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.drop-zone.drag-over {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.05);
}

.drop-zone.filled {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
}

/* Quiz Integration */
.quiz-integration {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin-top: 20px;
}

.quiz-integration h6 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.quiz-integration p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.quiz-link-btn {
    background: white;
    color: #667eea;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.quiz-link-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Save Activity Button */
.save-activity-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.save-activity-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

/* E-LKPD Summary */
.elkpd-summary {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-top: 40px;
}

.elkpd-summary h3 {
    color: #333;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.summary-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
}

.stat-label {
    color: #666;
    font-weight: 600;
}

/* Export Options */
.export-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.export-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.export-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* E-LKPD Animation Styles */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(300px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(300px); opacity: 0; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* E-LKPD Progress Notifications */
.elkpd-completion-notification {
    animation: slideInRight 0.4s ease !important;
}

.elkpd-completion-notification .notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.elkpd-completion-notification .notification-content i {
    font-size: 1.5rem;
    color: white;
}

.elkpd-completion-notification .notification-text h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    font-weight: 700;
}

.elkpd-completion-notification .notification-text p {
    margin: 0 0 2px 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.elkpd-completion-notification .notification-text small {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Progress Badge in Navigation */
.progress-badge {
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

.progress-badge:hover {
    transform: scale(1.2) !important;
}

/* Enhanced Activity Cards */
.activity-card.completed {
    border-color: #28a745 !important;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.2) !important;
}

.activity-card.completed .activity-header {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.1));
    border-radius: 15px;
    margin: -15px -15px 20px -15px;
    padding: 20px;
}

.completion-indicator {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

/* Enhanced Upload Zones */
.upload-zone.success {
    border-color: #28a745 !important;
    background: rgba(40, 167, 69, 0.1) !important;
}

.upload-zone.success i {
    color: #28a745 !important;
}

.upload-zone.success p {
    color: #28a745 !important;
}

/* File Preview */
.file-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

.file-preview img {
    border: 2px solid #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.file-info {
    text-align: center;
}

.file-info p {
    margin: 5px 0;
    color: #28a745;
    font-weight: 600;
}

.file-info small {
    color: #666;
}

.remove-file-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 5px;
    transition: background 0.3s ease;
}

.remove-file-btn:hover {
    background: #c82333;
}

/* Phase Progress Indicators */
.phase-progress {
    animation: pulse 2s infinite;
    z-index: 10;
}

.elkpd-nav-btn {
    position: relative;
}

.elkpd-nav-btn.completed .phase-progress {
    background: #28a745 !important;
}

/* Activity Completion Indicators */
.activity-card.completed {
    border-color: #28a745 !important;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.2) !important;
    position: relative;
}

.activity-card.completed::before {
    content: '✅';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    z-index: 2;
}

.activity-card.completed .activity-header {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.1));
    border-radius: 15px;
    margin: -15px -15px 20px -15px;
    padding: 20px;
}

/* Enhanced Stars */
.star.active {
    color: #ffc107;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

/* Enhanced Phase Navigation */
.elkpd-nav-btn.active {
    position: relative;
    overflow: hidden;
}

.elkpd-nav-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

/* Enhanced Drop Zones */
.drop-zone.filled {
    animation: pulse 0.5s ease;
}

.drag-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Enhanced Notifications */
.notification {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.notification button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Enhanced Summary Stats */
.summary-stats .stat-item:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.summary-stats .stat-number {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Export Buttons */
.export-btn:active {
    transform: translateY(-2px) scale(0.98);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .elkpd-completion-notification {
        max-width: 280px !important;
        font-size: 0.9rem;
    }
    
    .progress-badge {
        font-size: 0.6rem !important;
        padding: 1px 6px !important;
        min-width: 18px !important;
    }
    
    .completion-indicator {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}
