<!DOCTYPE html>
<html lang="<?php echo e(str_replace('_', '-', app()->getLocale())); ?>">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">

    <title><?php echo $__env->yieldContent('title', config('app.name', 'Edunetra')); ?></title>

    <!-- Fonts -->
    <link rel="preconnect" href="https://fonts.bunny.net">
    <link href="https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap" rel="stylesheet" />
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">

    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">

    <!-- Custom Styles -->
    <style>
        :root {
            /* Beautiful Yellow & Modern Color Palette */
            --edunetra-primary: #f59e0b;
            --edunetra-secondary: #d97706;
            --edunetra-accent: #fbbf24;
            --edunetra-success: #10b981;
            --edunetra-warning: #f59e0b;
            --edunetra-danger: #ef4444;
            --edunetra-dark: #1f2937;
            --edunetra-light: #fef3c7;
            --edunetra-yellow: #fbbf24;
            --edunetra-amber: #f59e0b;
            --edunetra-orange: #ea580c;
            --edunetra-blue: #3b82f6;
            --edunetra-green: #10b981;
            --edunetra-gray: #6b7280;
            --edunetra-light-gray: #fef3c7;
            --edunetra-border: #fde68a;
            --edunetra-text: #111827;
            --edunetra-text-light: #6b7280;
            --edunetra-gradient-start: #fbbf24;
            --edunetra-gradient-end: #f59e0b;
        }

        body {
            font-family: 'Inter', sans-serif;
            line-height: 1.6;
            margin: 0;
            padding: 0;
            overflow: hidden;
        }

        /* Full Screen Layout */
        .session-layout {
            height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* Top Header Bar */
        .session-topbar {
            background: #1f2937;
            color: white;
            padding: 0.75rem 1.5rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            z-index: 1000;
            border-bottom: 1px solid #374151;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .session-topbar .logo {
            font-weight: bold;
            font-size: 1.25rem;
            color: var(--edunetra-primary);
        }

        .session-topbar .course-title {
            font-weight: 600;
            font-size: 0.9rem;
            max-width: 400px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .session-topbar .user-info {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        /* Main Content Area */
        .session-main {
            flex: 1;
            display: flex;
            height: calc(100vh - 60px);
        }

        /* Video/Content Area */
        .session-content {
            flex: 1;
            background: #f8fafc;
            display: flex;
            flex-direction: column;
            position: relative;
            overflow: hidden;
        }

        .main-content-area {
            flex: 1;
            overflow-y: auto;
            padding: 2rem;
            background: white;
        }

        .video-container {
            width: 100%;
            max-width: 100%;
            background: #000;
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 2rem;
        }

        .video-player {
            width: 100%;
            height: auto;
            min-height: 400px;
            max-height: 60vh;
        }

        .text-content-area {
            background: white;
            border-radius: 8px;
            padding: 2rem;
            margin-bottom: 2rem;
            border: 1px solid #e5e7eb;
            min-height: 400px;
        }

        .file-preview-area {
            background: white;
            border-radius: 8px;
            padding: 2rem;
            margin-bottom: 2rem;
            border: 1px solid #e5e7eb;
            min-height: 400px;
        }

        .content-tabs {
            background: white;
            border-top: 1px solid #e5e7eb;
            padding: 1rem 2rem;
            border-radius: 0 0 8px 8px;
        }

        /* Sidebar */
        .session-sidebar {
            width: 400px;
            background: white;
            border-left: 1px solid #e5e7eb;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .sidebar-header {
            background: linear-gradient(135deg, var(--edunetra-light), #fef3c7);
            padding: 1.5rem;
            border-bottom: 1px solid var(--edunetra-border);
            position: relative;
        }

        .sidebar-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(135deg, var(--edunetra-gradient-start), var(--edunetra-gradient-end));
        }

        .sidebar-content {
            flex: 1;
            overflow-y: auto;
        }

        /* Session List */
        .session-item {
            padding: 1rem 1.5rem;
            border-bottom: 1px solid #f3f4f6;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 1rem;
            text-decoration: none;
            color: inherit;
        }

        .session-item:hover {
            background: #f9fafb;
            color: inherit;
            text-decoration: none;
            transform: translateX(2px);
        }

        .session-item:not(.active):hover .session-number {
            background: #e5e7eb;
            color: #374151;
        }

        .session-item.active {
            background: linear-gradient(135deg, var(--edunetra-gradient-start), var(--edunetra-gradient-end));
            color: white;
            border-left: 4px solid var(--edunetra-secondary);
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
            position: relative;
        }

        .session-item.active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background: var(--edunetra-secondary);
        }

        .session-item.active:hover {
            background: linear-gradient(135deg, var(--edunetra-secondary), var(--edunetra-primary));
            color: white;
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
        }

        .session-number {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 0.9rem;
            flex-shrink: 0;
        }

        .session-item:not(.active) .session-number {
            background: #f3f4f6;
            color: #6b7280;
            border: 2px solid transparent;
        }

        .session-item.active .session-number {
            background: white;
            color: var(--edunetra-primary);
            border: 2px solid white;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            font-weight: 700;
        }

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

        .session-title {
            font-weight: 600;
            font-size: 0.9rem;
            margin-bottom: 0.25rem;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .session-duration {
            font-size: 0.8rem;
            opacity: 0.8;
        }

        .session-icon {
            flex-shrink: 0;
            font-size: 1.2rem;
        }

        .session-item:not(.active) .session-icon {
            color: #9ca3af;
        }

        .session-item.active .session-icon {
            color: white;
        }

        /* Progress Bar */
        .progress-container {
            margin-bottom: 1rem;
        }

        .progress-bar-custom {
            height: 8px;
            background: #e5e7eb;
            border-radius: 10px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(135deg, var(--edunetra-gradient-start), var(--edunetra-gradient-end));
            border-radius: 10px;
            transition: width 0.3s ease;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .session-sidebar {
                position: fixed;
                top: 0;
                right: -400px;
                height: 100vh;
                z-index: 2000;
                transition: right 0.3s ease;
                box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
            }

            .session-sidebar.show {
                right: 0;
            }

            .session-content {
                width: 100%;
            }

            .session-topbar .course-title {
                display: none;
            }
        }

        /* Material Cards */
        .material-card {
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            margin-bottom: 1rem;
            overflow: hidden;
            transition: all 0.2s ease;
        }

        .material-card:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            border-color: var(--edunetra-border);
        }

        .material-header {
            background: #f9fafb;
            padding: 1rem;
            border-bottom: 1px solid #e5e7eb;
            font-weight: 600;
        }

        .material-body {
            padding: 1rem;
        }

        /* Info Cards */
        .info-card {
            background: #f8fafc;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            padding: 1rem;
            height: 100%;
        }

        /* Content Text Styling */
        .content-text {
            line-height: 1.8;
            font-size: 1rem;
        }

        .content-text p {
            margin-bottom: 1rem;
        }

        .content-text h1, .content-text h2, .content-text h3,
        .content-text h4, .content-text h5, .content-text h6 {
            color: var(--edunetra-text);
            margin-top: 1.5rem;
            margin-bottom: 1rem;
        }

        /* Buttons */
        .btn-edunetra {
            background: linear-gradient(135deg, var(--edunetra-gradient-start), var(--edunetra-gradient-end));
            border: none;
            color: white;
            font-weight: 600;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            transition: all 0.3s ease;
        }

        .btn-edunetra:hover {
            background: linear-gradient(135deg, var(--edunetra-secondary), var(--edunetra-primary));
            color: white;
            transform: translateY(-1px);
        }
    </style>

    <!-- Bootstrap JS -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</head>

<body>
    <?php echo $__env->yieldContent('content'); ?>
</body>
</html>
<?php /**PATH /Users/reihanpraja/ProjectWork/edunetra/resources/views/layouts/session.blade.php ENDPATH**/ ?>