#lpcl-wrapper {
    position: relative;
}

.lpcl-course-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.lpcl-course-item {
    width: 100%;
    max-width: 350px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.lpcl-course-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.lpcl-thumb {
    height: 200px;
    overflow: hidden;
}

.lpcl-thumb img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lpcl-course-item:hover .lpcl-thumb img {
    transform: scale(1.05);
}

/* Custom Popup Styles */
#lpcl-single-container {
    display: none;

}

.lpcl-single-content-wrapper {
     border-radius: 12px;
    max-width: 1200px;
    margin: 40px auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: lpclFadeIn 0.3s ease;
}

@keyframes lpclFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lpcl-popup-header {
    padding: 25px 30px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lpcl-popup-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #333;
}

.lpcl-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s ease;
}

.lpcl-close-btn:hover {
    color: #000;
}

.lpcl-popup-body {

}

/* Loading State */
.lpcl-loading {
    text-align: center;
    padding: 60px;
}

.lpcl-loading-spinner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    animation: lpclSpin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes lpclSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lpcl-loading p {
    color: #666;
    margin: 0;
    font-size: 16px;
}

/* Course Info */
.lpcl-course-info {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.lpcl-course-thumb {
    flex: 0 0 300px;
}

.lpcl-course-thumb img {
    width: 100%;
    border-radius: 8px;
}

.lpcl-course-description {
    flex: 1;
    min-width: 300px;
}

.lpcl-course-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.lpcl-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.lpcl-meta-icon {
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .lpcl-popup-body {
        padding: 20px;
    }
    
    .lpcl-course-info {
        flex-direction: column;
    }
    
    .lpcl-course-thumb {
        flex: none;
        width: 100%;
    }
}


/* Copy/View Content Buttons */
.lpcl-copy-content-btn,
.lpcl-view-content-btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    min-width: 100px;
    white-space: nowrap;
}

.lpcl-copy-content-btn.copied {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: white !important;
}

.lpcl-copy-content-btn.copied .btn-text {
    color: white !important;
}

/* Toast Styles */
.lpcl-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    min-width: 250px;
}

/* Modal Styles */
#lpcl-content-modal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

#lpcl-content-modal .modal-body pre {
    white-space: pre-wrap;
    word-wrap: break-word;
   
    padding: 1rem;
    border-radius: 0.25rem;
   
}

/* Content wrapper in list items */
.list-group-item .flex-grow-1 {
    min-width: 0;
    margin-right: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .list-group-item {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .list-group-item .flex-grow-1 {
        margin-bottom: 0.5rem;
    }
    
    .list-group-item .d-flex {
        width: 100%;
        justify-content: space-between;
    }
    
    .lpcl-copy-content-btn,
    .lpcl-view-content-btn {
        min-width: auto;
        padding: 0.25rem 0.5rem;
    }
}
/* Style for edit button */
.lpcl-edit-btn {
    border-color: #ffc107;
    color: #ffc107;
}

.lpcl-edit-btn:hover {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

/* Button spacing adjustments */
.d-flex.align-items-center.gap-2 {
    gap: 0.5rem !important;
}


/* Audio Upload Modal Styles */
.upload-drop-zone {
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.upload-drop-zone.dragover {
    border-color: #007bff;
}

.upload-icon {
    color: #6c757d;
    margin-bottom: 15px;
}

.upload-text {
    font-size: 16px;
    color: #495057;
    margin-bottom: 15px;
}

.upload-info {
    font-size: 12px;
    color: #6c757d;
    margin-top: 10px;
}

.current-audio {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #17a2b8;
}

.current-audio h6 {
    color: #495057;
    margin-bottom: 10px;
}

.audio-preview audio {
    outline: none;
    border-radius: 5px;
}

/* Progress bar animation */
.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    from { background-position: 1rem 0; }
    to { background-position: 0 0; }
}

/* Button spacing in lesson items */
.lesson-item .gap-2 {
    gap: 0.5rem !important;
}