/* Global Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f0f2f5;
    background-image: radial-gradient(#e2e8f0 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

main {
    flex: 1;
}

/* Footer Styles */
footer {
    background-color: #212529 !important;
}

footer h5, footer h6 {
    color: #ffffff !important;
}

footer .text-muted {
    color: #adb5bd !important;
}

footer .footer-link {
    color: #adb5bd !important;
    transition: color 0.3s ease;
}

footer .footer-link:hover {
    color: #ffffff !important;
}

footer .social-links a {
    color: #ffffff !important;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    color: #0d6efd !important;
    transform: translateY(-2px);
}

footer .payment-methods i {
    color: #adb5bd !important;
}

footer .bg-black {
    background-color: #000000 !important;
}

footer .bg-black .text-muted {
    color: #6c757d !important;
}

/* 3D Utilities */
.perspective-container {
    perspective: 1000px;
}

.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.floating-3d {
    animation: float 6s ease-in-out infinite;
}

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

/* Glassmorphism */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    border-radius: 16px;
}

.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Hover Effects */
.hover-shadow {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.transition-all {
    transition: all 0.3s ease;
}

/* Card Styles */
.card-img-top {
    object-fit: cover;
    height: 200px;
    width: 100%;
}

/* Updated Jumbotron for Hero */
.jumbotron {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    border-radius: 20px;
    color: white;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.jumbotron h1 {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Course Detail Page Styles */
.module-card {
    border-left: 4px solid #0d6efd;
}

.video-item {
    padding: 8px 12px;
    border-left: 2px solid #e9ecef;
    margin-left: 10px;
    transition: all 0.2s;
}

.video-item:hover {
    border-left-color: #0d6efd;
    background-color: #f8f9fa;
}

.sticky-sidebar {
    position: sticky;
    top: 20px;
}

.price-tag {
    font-size: 2rem;
    font-weight: bold;
}

/* Payment Success Page */
.success-animation {
    animation: scaleIn 0.5s ease-in-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

/* Payment Failed Page */
.failed-animation {
    animation: shakeX 0.5s ease-in-out;
}

@keyframes shakeX {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

/* My Courses Detail Page */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.course-sidebar {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    position: sticky;
    top: 100px;
}

.course-sidebar::-webkit-scrollbar {
    width: 6px;
}

.course-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.course-sidebar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.course-sidebar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.module-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    transition: all 0.3s;
}

.module-header:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.module-header.collapsed {
    background: #f8f9fa;
    color: #333;
}

.video-list-item {
    padding: 14px 20px;
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
}

.video-list-item:hover {
    background: #f8f9fa;
    border-left-color: #667eea;
}

.video-list-item.active {
    background: linear-gradient(to right, #e3f2fd, #ffffff);
    border-left-color: #667eea;
    font-weight: 600;
}

.video-list-item.completed {
    background: #f1f8e9;
}

.video-list-item .video-icon {
    font-size: 16px;
    color: #667eea;
}

.video-list-item.completed .video-icon {
    color: #4caf50;
}

.progress-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}
