/* Existing styles */
.logo-sm {
    width: 14.5rem;
}

.nav-container {
    height: 7rem;
}

nav {
    height: 8rem;
}

.bold {
    font-weight: bold;
}

h3 {
    font-size: 1.25rem;
}

.red {
    color: #fd000b;
}

.drop-shadow-white {
    text-shadow: 1px 1px 6px white;
}

.card ul {
    text-align: left;
    padding-left: 1em;
}

.center-by-margin {
    margin: 0 auto;
}

.padding-left-right-10 {
    padding-left: 10px;
    padding-right: 10px;
}

.bg-blue {
    --tw-bg-opacity: 1;
    background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
}

.bg-blue-250 {
    background-color: rgb(59 130 246 / 67%);
}

.text-white-600 {
    --tw-text-opacity: 1;
    color: white;
}

/* Hide the original Wistia transcript - we'll use our styled version */
.wistia-transcript {
    display: none !important;
}

/* Video section styling */
.video-section {
    max-width: 960px;
    margin-bottom: 2rem;
    float: left;
    padding-right: 10px;
    min-width: 100%;
}

/* Tab Navigation Styling */
.tab-navigation {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
    border: 1px solid #e9ecef;
    border-bottom: none;
    padding: 4px;
    gap: 2px;
    margin-bottom: 0;
    clear: both;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.tab-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #294ae6;
}

.tab-btn.active {
    background: #294ae6;
    color: white;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.tab-icon {
    font-size: 1rem;
    opacity: 0.8;
}

.tab-btn.active .tab-icon {
    opacity: 1;
}

/* Tab Content Container */
.tab-content-container {
    border: 1px solid #e9ecef;
    border-radius: 0 0 12px 12px;
    background: white;
    min-height: 400px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Tab Panels */
.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tab Panel Headers */
.tab-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f3f4f6;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.tab-panel-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

/* Tab Panel Content */
.tab-panel-content {
    padding: 24px;
    line-height: 1.6;
    color: #374151;
}

/* Description Tab Styling */
.lesson-description {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.learning-objectives h4 {
    color: #294ae6;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.learning-objectives ul {
    margin: 0;
    padding-left: 1.25rem;
}

.learning-objectives li {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

/* Transcript Tab Styling */
.transcript-controls {
    display: flex;
    gap: 8px;
}

.transcript-controls .btn {
    font-size: 0.75rem;
    padding: 6px 12px;
}

.transcript-content {
    background: #fafbfc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.transcript-content mark {
    background: #fef3c7;
    color: #92400e;
    padding: 1px 2px;
    border-radius: 2px;
}

/* Custom scrollbar for transcript */
.transcript-content::-webkit-scrollbar {
    width: 8px;
}

.transcript-content::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

.transcript-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.transcript-content::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Materials Tab Styling */
.lesson-materials {
    font-size: 1rem;
    line-height: 1.7;
}

.lesson-materials h4,
.lesson-materials h5,
.lesson-materials h6 {
    color: #294ae6;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.lesson-materials ul,
.lesson-materials ol {
    margin-left: 1.25rem;
    margin-bottom: 1rem;
}

.lesson-materials a {
    color: #294ae6;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.lesson-materials a:hover {
    border-bottom-color: #294ae6;
}

/* Notes Tab Styling */
.notes-controls {
    display: flex;
    gap: 8px;
}

.notes-section {
    width: 100%;
}

.notes-textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.notes-textarea:focus {
    border-color: #294ae6;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

.notes-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#notes-status {
    color: #059669;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tab-navigation {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1 1 45%;
        min-width: 120px;
    }

    .tab-panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .transcript-controls,
    .notes-controls {
        flex-wrap: wrap;
        width: 100%;
    }

    .video-section {
        max-width: 100%;
    }
}

/* Right Sidebar Styling */
.card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: white;
    color: black;
    font-weight: 600;
    padding: 16px 20px;
    border-bottom: none;
}

.card-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.card-body {
    padding: 20px;
    background: white;
}

.card-body p {
    margin-bottom: 0.75rem;
    color: #4b5563;
    font-size: 0.95rem;
}

/* Progress Bar Styling */
.progress {
    height: 8px;
    background: #f3f4f6;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    transition: width 0.3s ease;
    border-radius: 6px;
}

/* Badge Styling */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
}

.badge-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

/* Course Lessons List Styling */
.list-group {
    border-radius: 8px;
    overflow: hidden;
}

.list-group-item {
    border: none;
    border-bottom: 1px solid #f3f4f6;
    padding: 16px 20px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #374151;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    color: #294ae6;
    text-decoration: none;
    transform: translateX(2px);
}

.list-group-item.active {
    background: linear-gradient(135deg, #294ae6 0%, #6366f1 100%);
    color: white;
    border-color: #294ae6;
    font-weight: 500;
}

.list-group-item.active:hover {
    background: linear-gradient(135deg, #4338ca 0%, #5b21b6 100%);
    transform: translateX(0);
}

.list-group-item.active .badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Sidebar responsive adjustments */
@media (max-width: 991.98px) {
    .card {
        margin-top: 2rem;
    }
}

/* Navigation buttons styling */
.btn-outline-secondary {
    border-color: #e5e7eb;
    color: #6b7280;
    background: white;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-outline-secondary:hover {
    background: #6b7280;
    border-color: #6b7280;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(107, 114, 128, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #294ae6 0%, #6366f1 100%);
    border-color: #294ae6;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #5b21b6 100%);
    border-color: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

@media (min-width: 1024px) {
    .lg\:col-span-2 {
        grid-column: span 2 / span 2
    }
}
