@charset "utf-8";
/* CSS Document */

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
           /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
			*/
        }

        .course-container {
            width: 100%; max-width: 100%;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            
            overflow: hidden;
        }

        .course-header {
            background: linear-gradient(135deg, #add 0%, #669 100%);
            color: white;
            padding: 30px 25px;
            text-align: center;
			box-shadow: none !important;
        }

        .course-header h1 {
            font-size: 24px;
            margin-bottom: 10px;
        }

        .course-progress {
            background: rgba(255,255,255,0.2);
            border-radius: 10px;
            height: 8px;
            margin-top: 15px;
            overflow: hidden;
        }

        .progress-bar {
            background: white;
            height: 100%;
            width: 35%;
            border-radius: 10px;
            transition: width 0.3s ease;
        }

        .course-modules {
            padding: 10px;
        }

        .module {
            margin-bottom: 10px;
            border-radius: 15px;
            overflow: hidden;
            background: #f8f9fa;
            transition: all 0.3s ease;
        }

        .module.active {
            background: #fff;
            
        }

        .module-header {
            padding: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: all 0.3s ease;
            position: relative;
        }

        .module-header-left {
            display: flex;
            align-items: center;
            flex: 1;
        }

        .module-checkbox {
            width: 22px;
            height: 22px;
            border: 2px solid #ddd;
            border-radius: 5px;
            margin-right: 12px;
            position: relative;
            transition: all 0.3s ease;
            background: white;
            cursor: default;
            pointer-events: none;
        }

        .module-checkbox.checked {
            background: #4caf50;
            border-color: #4caf50;
        }

        .module-checkbox.checked::after {
            content: '✓';
            color: white;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 14px;
            font-weight: bold;
        }

        .module-checkbox.partial {
            background: #ffeb3b;
            border-color: #ffc107;
        }

        .module-checkbox.partial::after {
            content: '−';
            color: #333;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 16px;
            font-weight: bold;
        }

        .module.active .module-checkbox {
            border-color: rgba(255,255,255,0.5);
        }

        .module.active .module-checkbox.checked {
            background: white;
            border-color: white;
        }

        .module.active .module-checkbox.checked::after {
            color: #4caf50;
        }

        .module.active .module-checkbox.partial {
            background: white;
            border-color: white;
        }

        .module.active .module-checkbox.partial::after {
            color: #ffc107;
        }

        .module-header:hover {
            background: #f0f0f0;
        }

        .module.active .module-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .module-info {
            flex: 1;
        }

        .module-number {
            display: inline-block;
            width: 35px;
            height: 35px;
            background: #667eea;
            color: white;
            border-radius: 50%;
            text-align: center;
            line-height: 35px;
            font-weight: bold;
            margin-right: 15px;
            font-size: 14px;
        }

        .module.active .module-number {
            background: white;
            color: #667eea;
        }

        .module-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 5px;
        }

        .module-meta {
            font-size: 12px;
            color: #666;
            display: flex;
            gap: 15px;
        }

        .module.active .module-meta {
            color: rgba(255,255,255,0.9);
        }

        .module-icon {
            transition: transform 0.3s ease;
            font-size: 20px;
            color: #999;
        }

        .module.active .module-icon {
            transform: rotate(180deg);
            color: white;
        }

        .module-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
            background: white;
        }

        .module.active .module-content {
            /* max-height kontrolowane przez JavaScript */
            overflow-y: auto;
        }

        .content-list {
            padding: 0 20px 20px;
        }

        .content-item {
            display: flex;
            align-items: center;
            padding: 12px 15px;
            margin: 5px 0;
            background: #f8f9fa;
            border-radius: 10px;
            text-decoration: none;
            color: #333;
            transition: all 0.2s ease;
            border-left: 3px solid transparent;
            position: relative;
            cursor: pointer;
        }

        .content-item:hover {
            background: #e9ecef;
            transform: translateX(5px);
            border-left-color: #667eea;
        }

        .content-item.completed {
            opacity: 0.7;
            background: #e8f5e9;
        }

        .content-item.completed .item-icon {
            color: #4caf50;
        }

        /* Checkbox dla elementów content-item */
        .item-status {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            border: 2px solid #ddd;
            position: relative;
            z-index: 10;
            cursor: default;
            pointer-events: none;
            background: white;
            transition: all 0.2s ease;
        }

        }

        .content-item.completed .item-status {
            background: #4caf50;
            border-color: #4caf50;
        }

        .content-item.completed .item-status::after {
            content: '✓';
            color: white;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 12px;
        }

        .item-icon {
            width: 35px;
            height: 35px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            font-size: 18px;
        }

        .icon-article { background: #e3f2fd; color: #2196f3; }
        .icon-video { background: #ffebee; color: #f44336; }
        .icon-quiz { background: #f3e5f5; color: #9c27b0; }
        .icon-exercise { background: #fff3e0; color: #ff9800; }
        .icon-test { background: #e8f5e9; color: #4caf50; }
        .icon-podcast { background: #fce4ec; color: #e91e63; }
        .icon-exam { background: #e0f2f1; color: #009688; }
        .icon-task { background: #f1f8e9; color: #689f38; }
        .icon-other { background: #eceff1; color: #607d8b; }

        .item-details {
            flex: 1;
        }

        .item-title {
            font-size: 14px;
            font-weight: 500;
            margin-bottom: 3px;
            color: #333;
        }

        .item-meta {
            font-size: 11px;
            color: #999;
        }


        /* Ważne dla SEO - linki są widoczne dla botów */
        .seo-friendly-links {
            position: absolute;
            left: -9999px;
            width: 1px;
            height: 1px;
            overflow: hidden;
        }

        /* Animacje */
        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .module.active .content-item {
            animation: slideIn 0.3s ease forwards;
        }

        .module.active .content-item:nth-child(1) { animation-delay: 0.05s; }
        .module.active .content-item:nth-child(2) { animation-delay: 0.1s; }
        .module.active .content-item:nth-child(3) { animation-delay: 0.15s; }
        .module.active .content-item:nth-child(4) { animation-delay: 0.2s; }
        .module.active .content-item:nth-child(5) { animation-delay: 0.25s; }

        /* Responsywność */
        @media (max-width: 480px) {
            .course-container {
                max-width: 100%;
                border-radius: 0;
            }
            
            .module-header {
                padding: 15px;
            }
            
            .content-item {
                padding: 10px;
            }
        }

        /* Wskaźnik ładowania */
        .loading-spinner {
            display: none;
            width: 20px;
            height: 20px;
            border: 2px solid #f3f3f3;
            border-top: 2px solid #667eea;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 20px auto;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .module.loading .loading-spinner {
            display: block;
        }

        /* Sekcja z dodatkowymi kursami */
        .additional-courses {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            padding: 30px 20px;
            margin-top: 20px;
            border-radius: 0 0 20px 20px;
        }

        .courses-header {
            text-align: center;
            margin-bottom: 25px;
        }

        .courses-header h2 {
            font-size: 20px;
            color: #333;
            margin-bottom: 5px;
        }

        .courses-header p {
            font-size: 14px;
            color: #666;
        }


        @keyframes shimmer {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }




        .badge {
            padding: 3px 8px;
            border-radius: 5px;
            font-weight: 600;
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .badge-hot {
            background: #ff4757;
            color: white;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        .badge-advanced {
            background: #5f27cd;
            color: white;
        }

        .badge-basic {
            background: #00d2d3;
            color: white;
        }

        .course-modules,
        .course-duration {
            opacity: 0.7;
        }

        .browse-all {
            margin-top: 20px;
            text-align: center;
        }

        .btn-browse-all {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: white;
            color: #667eea;
            padding: 15px 30px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
            border: 2px solid transparent;
        }

        .btn-browse-all:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
            border-color: #667eea;
        }

        .btn-icon {
            font-size: 18px;
        }

        .btn-count {
            background: #667eea;
            color: white;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
        }

        /* Responsywność dla sekcji kursów */
        @media (max-width: 480px) {
            .additional-courses {
                padding: 20px 15px;
            }

            .btn-browse-all {
                padding: 12px 20px;
                font-size: 13px;
            }
        }
 

        /* Pasek postępu przy contencie */
        .item-progress-container {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 8px;
            margin-left: 15px;
            flex-shrink: 0;
        }
        
        .item-progress-bar {
            width: 80px;
            height: 6px;
            background: #e0e0e0;
            border-radius: 3px;
            overflow: hidden;
            position: relative;
            flex-shrink: 0;
        }
        
        .item-progress-percent {
            font-size: 12px;
            font-weight: 600;
            color: #666;
            min-width: 35px;
            text-align: right;
            white-space: nowrap;
            flex-shrink: 0;
        }
        
        /* Kolor procentu w zależności od postępu */
        .content-item:not(.completed) .item-progress-percent {
            color: #ff9800;
        }
        
        .content-item.completed .item-progress-percent {
            color: #4caf50;
        }

        .item-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #4caf50 0%, #8bc34a 100%);
            border-radius: 3px;
            transition: width 0.3s ease;
        }

        /* Kolor paska w zależności od postępu */
        .content-item:not(.completed) .item-progress-fill {
            background: linear-gradient(90deg, #ff9800 0%, #ffc107 100%);
        }

        .content-item.completed .item-progress-fill {
            background: linear-gradient(90deg, #4caf50 0%, #8bc34a 100%);
        }

        /* Wyłącz hover i pointer dla current-content */
        .content-item.current-content {
            background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
            border-left: 3px solid #667eea !important;
            font-weight: 600;
            cursor: default;
            pointer-events: none;
        }

        .content-item.current-content:hover {
            transform: none !important;
        }

        /* Ukryj item-status dla premium (mają pasek postępu) */
        .item-status {
            display: block;
        }

        /* Grafika dziobaka przy postępie */
        .item-meta img {
            display: inline-block;
            vertical-align: middle;
            border-radius: 4px;
            object-fit: contain;
        }
