/* Focus Mode Styles - Light Theme using roleplay.html color palette */

:root {
    --primary-color: #6B9DE8; /* Lighter blue for chat header start */
    --secondary-color: #8BB4F0; /* Lighter blue for chat header end */
    --accent-color: #00A1C9;
    --background-color: #f8fafc; /* Light background */
    --chat-bg: #ffffff;
    --user-message-bg: #eef2ff; /* Very light blue for user messages */
    --bot-message-bg: #f1f5f9; /* Light gray-blue for bot messages */
    --success-color: #4CAF50; /* Green color for status indicator */
    --surface-color: #ffffff;
    --success-gradient: linear-gradient(135deg, #4CAF50, #45a049);
    --primary-gradient: linear-gradient(135deg, #6B9DE8, #8BB4F0);
    --corporate-navy: #374151;
    --corporate-gray: #6B7280;
    --subtle-green: #4CAF50;
    --muted-gold: #F59E0B;
    --light-gray: #F8F9FA;
    --soft-white: #FFFFFF;
    --gentle-shadow: rgba(107, 157, 232, 0.08);
    --text-primary: #374151;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --border-color: #E5E7EB;
    --hover-bg: #F3F4F6;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: var(--text-primary);
    overflow-y: auto; /* allow vertical scroll */
    overflow-x: hidden;
    height: auto; /* let content define height */
    min-height: 100vh;
}

/* Animation styles for UI.html focus button click */
#focus-animation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#focus-svgator-animation {
    width: 70vw;
    height: 60vh;
    overflow: hidden;
}

/* Hide watermark for focus animation */
#focus-svgator-animation g[transform="matrix(1,0,0,1,0,540)"] {
    opacity: 0 !important;
    display: none !important;
}

.focus-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: var(--background-color);
    display: flex; /* Show immediately since no animation */
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ===== EXECUTIVE DASHBOARD ===== */
.executive-dashboard {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    z-index: 100;
    overflow: hidden;
    border: none;
}

.dashboard-header {
    background: var(--primary-gradient);
    height: 120px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    color: var(--soft-white);
    font-weight: 600;
    font-size: 26px;
    box-shadow: 0 4px 20px var(--gentle-shadow);
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
        transparent 47%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 53%);
    animation: headerShine 6s ease-in-out infinite;
}

.dashboard-content {
    padding: 80px 60px 60px;
    height: calc(100% - 120px);
    background: var(--background-color);
    border-radius: 0;
    position: relative;
}

/* === NEW LAYOUT: Ongoing Courses (Left) + Plan a Path (Right) === */
.dashboard-content {
    height: calc(100% - 120px);
    position: relative;
}

/* Ongoing Courses Panel (Left Side) */
.ongoing-courses-panel {
    width: 32%; /* Reduced from 40% by 20% */
    background: var(--surface-color);
    border-right: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
}

.courses-header {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
    background: rgba(107, 157, 232, 0.05);
}

.courses-content {
    padding: 0;
    display: flex;
    flex-direction: row;
    height: 100%;
}

.course-section {
    flex: 1;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    max-height: 100%;
}

.course-section:last-child {
    border-right: none;
}

.section-items {
    flex: 1;
    overflow-y: auto;
    background: var(--surface-color);
}

.course-item {
    position: relative;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.course-item:hover {
    background: var(--hover-bg);
    transform: translateX(5px);
}

.course-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.course-topic {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
}

.course-progress {
    font-size: 0.75rem;
    color: var(--subtle-green);
    font-weight: 500;
}

.no-courses-message, .error-message {
    padding: 1.5rem 1.25rem;
    text-align: center;
    opacity: 0.7;
    font-style: italic;
    color: var(--text-muted);
}

.error-message {
    color: #ef4444;
}

/* Plan a Path Panel (Right Side) */
.plan-path-panel {
    width: 68%; /* Increased from 60% to compensate for reduced left panel */
    background: var(--surface-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: absolute;
    left: 32%; /* Updated to match new left panel width */
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* allow vertical scroll */
    overflow-x: hidden;
    height: auto; /* let content define height */
}

.plan-content {
    text-align: center;
    padding: 2rem 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.plan-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    min-height: 70px;
    margin: 0 auto 1rem;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--soft-white);
    box-shadow: 0 8px 24px rgba(107, 157, 232, 0.3);
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1200px) {
    .plan-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .plan-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .plan-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
        min-height: 45px;
        font-size: 20px;
    }
}

.plan-content h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.plan-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.plan-path-button {
    background: var(--primary-gradient);
    color: var(--soft-white);
    border: none;
    padding: 18px 40px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 24px rgba(107, 157, 232, 0.2);
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.plan-path-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(107, 157, 232, 0.3);
}

.plan-path-button i {
    margin-right: 8px;
}

.plan-features-benefits-container {
    display: flex;
    gap: 2rem; /* Increased from 1rem by 100% */
    margin-top: 1rem;
}

.plan-features {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--hover-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 0.5rem;
    background: var(--surface-color);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(107, 157, 232, 0.05);
    transform: translateX(5px);
}

.feature i {
    width: 20px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.plan-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--hover-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--surface-color);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-benefits {
    flex: 1;
    text-align: left;
    padding: 0.75rem;
    background: var(--hover-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    max-height: 300px;
    overflow-y: auto;
}

.benefits-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    text-align: center;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
    padding: 0.3rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(107, 157, 232, 0.05);
}

.benefit-item i {
    color: var(--subtle-green);
    margin-top: 0.25rem;
    font-size: 0.85rem;
}

.benefit-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.3;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.back-button {
    background: rgba(255, 255, 255, 0.15);
    color: var(--soft-white);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Course Sections */

.section-header {
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--hover-bg);
}

.planning-header {
    color: var(--muted-gold);
    background: linear-gradient(135deg, 
        rgba(245, 158, 11, 0.12) 0%, 
        rgba(255, 255, 255, 0.06) 50%,
        rgba(245, 158, 11, 0.08) 100%);
    border-radius: 10px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.planning-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--muted-gold) 0%, 
        rgba(245, 158, 11, 0.6) 50%,
        var(--muted-gold) 100%);
    opacity: 0.8;
}

.planning-header i {
    color: var(--muted-gold);
    background: rgba(245, 158, 11, 0.15);
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.25);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.planned-header {
    color: var(--subtle-green);
    background: linear-gradient(135deg, 
        rgba(76, 175, 80, 0.12) 0%, 
        rgba(255, 255, 255, 0.06) 50%,
        rgba(76, 175, 80, 0.08) 100%);
    border-radius: 10px;
    border: 1px solid rgba(76, 175, 80, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.planned-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--subtle-green) 0%, 
        rgba(76, 175, 80, 0.6) 50%,
        var(--subtle-green) 100%);
    opacity: 0.8;
}

.planned-header i {
    color: var(--subtle-green);
    background: rgba(76, 175, 80, 0.15);
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(76, 175, 80, 0.25);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Planning Items */
.planning-item {
    border-left: 4px solid var(--muted-gold);
    background: linear-gradient(135deg, 
        rgba(245, 158, 11, 0.08) 0%, 
        rgba(255, 255, 255, 0.04) 50%,
        rgba(245, 158, 11, 0.04) 100%);
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.04),
        0 2px 8px rgba(245, 158, 11, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.planning-item:hover {
    background: linear-gradient(135deg, 
        rgba(245, 158, 11, 0.15) 0%, 
        rgba(255, 255, 255, 0.08) 50%,
        rgba(245, 158, 11, 0.08) 100%);
    border-left-color: rgba(245, 158, 11, 0.9);
    border-color: rgba(245, 158, 11, 0.25);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 4px 16px rgba(245, 158, 11, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.planning-item .course-title {
    color: var(--muted-gold);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Planned Items */
.planned-item {
    border-left: 4px solid var(--subtle-green);
    background: linear-gradient(135deg, 
        rgba(76, 175, 80, 0.08) 0%, 
        rgba(255, 255, 255, 0.04) 50%,
        rgba(76, 175, 80, 0.04) 100%);
    border-radius: 12px;
    border: 1px solid rgba(76, 175, 80, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.04),
        0 2px 8px rgba(76, 175, 80, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.planned-item:hover {
    background: linear-gradient(135deg, 
        rgba(76, 175, 80, 0.15) 0%, 
        rgba(255, 255, 255, 0.08) 50%,
        rgba(76, 175, 80, 0.08) 100%);
    border-left-color: rgba(76, 175, 80, 0.9);
    border-color: rgba(76, 175, 80, 0.25);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 4px 16px rgba(76, 175, 80, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.planned-item .course-title {
    color: var(--subtle-green);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes headerShine {
    0%, 100% { transform: translateX(-120%); }
    50% { transform: translateX(120%); }
}

/* Loading Indicators */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-secondary);
    min-height: 120px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    opacity: 0.8;
}

.loading-subtext {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-align: center;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading states for different sections */
.planning-loading {
    background: linear-gradient(135deg, 
        rgba(245, 158, 11, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 50%,
        rgba(245, 158, 11, 0.03) 100%);
    border-radius: 10px;
    border: 1px solid rgba(245, 158, 11, 0.1);
}

.planned-loading {
    background: linear-gradient(135deg, 
        rgba(76, 175, 80, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 50%,
        rgba(76, 175, 80, 0.03) 100%);
    border-radius: 10px;
    border: 1px solid rgba(76, 175, 80, 0.1);
}

.planning-loading .loading-spinner {
    border-top-color: var(--muted-gold);
}

.planned-loading .loading-spinner {
    border-top-color: var(--subtle-green);
}

/* Course Sections */

.section-header {
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(255, 255, 255, 0.02);
}

.planning-header {
    color: var(--muted-gold);
    background: linear-gradient(135deg, 
        rgba(245, 158, 11, 0.12) 0%, 
        rgba(255, 255, 255, 0.06) 50%,
        rgba(245, 158, 11, 0.08) 100%);
    border-radius: 10px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.planning-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--muted-gold) 0%, 
        rgba(245, 158, 11, 0.6) 50%,
        var(--muted-gold) 100%);
    opacity: 0.8;
}

.planning-header i {
    color: var(--muted-gold);
    background: rgba(245, 158, 11, 0.15);
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.25);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.planned-header {
    color: var(--subtle-green);
    background: linear-gradient(135deg, 
        rgba(76, 175, 80, 0.12) 0%, 
        rgba(255, 255, 255, 0.06) 50%,
        rgba(76, 175, 80, 0.08) 100%);
    border-radius: 10px;
    border: 1px solid rgba(76, 175, 80, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.planned-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--subtle-green) 0%, 
        rgba(76, 175, 80, 0.6) 50%,
        var(--subtle-green) 100%);
    opacity: 0.8;
}

.planned-header i {
    color: var(--subtle-green);
    background: rgba(76, 175, 80, 0.15);
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(76, 175, 80, 0.25);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}



/* Planning Items - Enhanced Mobile/Alternative Styles */
.planning-item {
    border-left: 4px solid var(--muted-gold);
    background: linear-gradient(135deg, 
        rgba(245, 158, 11, 0.08) 0%, 
        rgba(255, 255, 255, 0.04) 50%,
        rgba(245, 158, 11, 0.04) 100%);
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.04),
        0 2px 8px rgba(245, 158, 11, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.planning-item:hover {
    background: linear-gradient(135deg, 
        rgba(245, 158, 11, 0.15) 0%, 
        rgba(255, 255, 255, 0.08) 50%,
        rgba(245, 158, 11, 0.08) 100%);
    border-left-color: rgba(245, 158, 11, 0.9);
    border-color: rgba(245, 158, 11, 0.25);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 4px 16px rgba(245, 158, 11, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.planning-item .course-title {
    color: var(--muted-gold);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Planned Items - Enhanced Mobile/Alternative Styles */
.planned-item {
    border-left: 4px solid var(--subtle-green);
    background: linear-gradient(135deg, 
        rgba(76, 175, 80, 0.08) 0%, 
        rgba(255, 255, 255, 0.04) 50%,
        rgba(76, 175, 80, 0.04) 100%);
    border-radius: 12px;
    border: 1px solid rgba(76, 175, 80, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.04),
        0 2px 8px rgba(76, 175, 80, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.planned-item:hover {
    background: linear-gradient(135deg, 
        rgba(76, 175, 80, 0.15) 0%, 
        rgba(255, 255, 255, 0.08) 50%,
        rgba(76, 175, 80, 0.08) 100%);
    border-left-color: rgba(76, 175, 80, 0.9);
    border-color: rgba(76, 175, 80, 0.25);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 4px 16px rgba(76, 175, 80, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.planned-item .course-title {
    color: var(--subtle-green);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Delete Button Styles */
.delete-button {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    z-index: 10;
}

.course-item:hover .delete-button {
    opacity: 1;
    transform: scale(1);
}

.delete-button:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #dc2626;
    transform: scale(1.1);
}

.delete-button i {
    font-size: 0.7rem;
}

/* Clean Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.popup-dialog {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 400px;
    width: 90vw;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
    border: none;
    animation: slideIn 0.3s ease;
    position: relative;
}

.popup-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: none;
}

.popup-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.popup-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--muted-gold);
    border: 2px solid rgba(245, 158, 11, 0.2);
}

.popup-icon.success {
    background: rgba(76, 175, 80, 0.1);
    color: var(--subtle-green);
    border: 2px solid rgba(76, 175, 80, 0.2);
}

.popup-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.popup-message {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 2rem;
}

.popup-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.popup-button {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.9rem;
    min-width: 80px;
}

.popup-button.primary {
    background: var(--primary-gradient);
    color: white;
}

.popup-button.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 157, 232, 0.3);
}

.popup-button.secondary {
    background: var(--hover-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.popup-button.secondary:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.popup-button.danger {
    background: #ef4444;
    color: white;
}

.popup-button.danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Course Tags Container */
.course-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.4rem;
    align-items: center;
}

/* Publishing Manager Tag */
.publishing-manager-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(107, 157, 232, 0.08);
    border: 1px solid rgba(107, 157, 232, 0.2);
    border-radius: 12px;
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    max-width: fit-content;
}

/* Course Completion Tag */
.course-completion-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.12), rgba(76, 175, 80, 0.08));
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 8px;
    padding: 0.2rem 0.4rem;
    font-size: 0.6rem;
    font-weight: 600;
    color: #2e7d32;
    transition: all 0.3s ease;
    max-width: fit-content;
    box-shadow: 0 1px 4px rgba(76, 175, 80, 0.15);
    animation: completionPulse 2s ease-in-out infinite;
}

.course-completion-tag:hover {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.18), rgba(76, 175, 80, 0.12));
    border-color: rgba(76, 175, 80, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.course-completion-tag i {
    font-size: 0.6rem;
    color: #2e7d32;
    animation: checkmarkBounce 1.5s ease-in-out infinite;
}

.course-completion-tag span {
    font-size: 0.6rem;
    font-weight: 600;
    color: #2e7d32;
    text-shadow: 0 1px 2px rgba(76, 175, 80, 0.2);
}

@keyframes completionPulse {
    0%, 100% { 
        box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
    }
    50% { 
        box-shadow: 0 4px 16px rgba(76, 175, 80, 0.25);
    }
}

@keyframes checkmarkBounce {
    0%, 100% { 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.1);
    }
}

.publishing-manager-tag:hover {
    background: rgba(107, 157, 232, 0.12);
    border-color: rgba(107, 157, 232, 0.3);
}

.publishing-manager-tag i {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.publishing-manager-tag span {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Video Subsection Styles */
.video-subsection {
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Video Section Separator */
.video-section-separator {
    display: flex;
    align-items: center;
    margin: 2.5rem 0;
    padding: 0 1rem;
}

.separator-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.separator-text {
    padding: 0 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--surface-color);
    white-space: nowrap;
}

.video-subsection:hover {
    border-color: rgba(107, 157, 232, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.subsection-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(107, 157, 232, 0.08), rgba(139, 180, 240, 0.12));
    border-bottom: 1px solid rgba(107, 157, 232, 0.15);
    font-weight: 600;
    color: var(--text-primary);
    border-radius: 8px 8px 0 0;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.subsection-header:hover {
    background: linear-gradient(135deg, rgba(107, 157, 232, 0.12), rgba(139, 180, 240, 0.18));
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(107, 157, 232, 0.15);
}

.subsection-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 0 2px 2px 0;
}

.subsection-header i {
    color: var(--primary-color);
    font-size: 1rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(107, 157, 232, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.subsection-header:hover i {
    background: rgba(107, 157, 232, 0.2);
    transform: scale(1.1);
}

.subsection-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.subsection-header:hover .subsection-title {
    color: var(--primary-color);
}

.subsection-content {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0 0 8px 8px;
    border-top: 1px solid rgba(107, 157, 232, 0.1);
}

/* Video Category Styles */
.video-category {
    margin: 0.75rem 0;
    border: 1px solid rgba(107, 157, 232, 0.15);
    border-radius: 6px;
    background: rgba(107, 157, 232, 0.02);
    overflow: hidden;
    transition: all 0.2s ease;
}

.video-category:hover {
    border-color: rgba(107, 157, 232, 0.25);
    background: rgba(107, 157, 232, 0.04);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(107, 157, 232, 0.08);
    border-bottom: 1px solid rgba(107, 157, 232, 0.15);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.category-header i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.category-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Internal videos styling */
#internalVideosCategory .category-header {
    background: rgba(76, 175, 80, 0.08);
    border-bottom-color: rgba(76, 175, 80, 0.15);
}

#internalVideosCategory .category-header i {
    color: var(--subtle-green);
}

/* External videos styling */
#externalVideosCategory .category-header {
    background: rgba(245, 158, 11, 0.08);
    border-bottom-color: rgba(245, 158, 11, 0.15);
}

#externalVideosCategory .category-header i {
    color: var(--muted-gold);
}

/* Video list within categories */
.video-category .videos-list {
    padding: 0.75rem;
    background: var(--surface-color);
}

.video-category .videos-list .video-preview {
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.video-category .videos-list .video-preview:hover {
    border-color: rgba(107, 157, 232, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* YouTube Video Styles */
.youtube-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.youtube-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.youtube-thumbnail:hover .youtube-thumbnail-img {
    transform: scale(1.05);
}

.youtube-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    height: 100%;
}

.youtube-icon {
    font-size: 2rem;
    color: #ff0000;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.youtube-play-overlay .play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.youtube-play-overlay .play-button i {
    color: #ff0000;
    font-size: 1.5rem;
    margin-left: 3px; /* Slight offset for play icon */
}

.youtube-thumbnail:hover .youtube-play-overlay .play-button {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.video-source {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.25rem;
}

/* YouTube Modal Styles */
.youtube-modal {
    max-width: 900px;
    width: 90vw;
}

.youtube-embed-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.youtube-embed-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.youtube-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.youtube-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #ff0000;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.youtube-link-btn:hover {
    background: #cc0000;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
}

.youtube-link-btn i {
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .subsection-header {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }
    
    .subsection-header i {
        font-size: 0.9rem;
        width: 18px;
        height: 18px;
    }
    
    .subsection-title {
        font-size: 0.9rem;
    }
    
    .subsection-content {
        padding: 0.75rem;
    }
    
    .category-header {
        padding: 0.4rem 0.6rem;
    }
    
    .video-category .videos-list {
        padding: 0.5rem;
    }
    
    .youtube-modal {
        width: 95vw;
        max-width: none;
    }
    
    .youtube-thumbnail {
        height: 150px;
    }
    
    .youtube-play-overlay .play-button {
        width: 50px;
        height: 50px;
    }
    
    .youtube-play-overlay .play-button i {
        font-size: 1.2rem;
    }
}


 