.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: #fff;
    border-right: 1px solid #e5e5e5;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-toggle {
    position: fixed;
    top: 16px;
    left: 16px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #6D1A86;
    display: none !important;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    pointer-events: auto;
    display: flex;
}

.sidebar-toggle i {
    display: none;
}

.sidebar-toggle::before {
    content: '';
    width: 20px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor;
    border-radius: 2px;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1099;
}

.sidebar-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.main-content {
    flex: 1;
    margin-left: 250px;
    display: flex;
    flex-direction: column;
}

.logo {
    padding: 0 20px 30px;
    text-align: center;
}

.logo img {
    max-width: 150px;
    height: auto;
}

.beta-text {
    font-size: 12px;
    font-weight: 600;
    color: #6D1A86;
    text-align: center;
    margin-top: 5px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
    border-radius: 8px;
    margin: 2px 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.nav-item:hover, .nav-item.active {
    background: #f0f7ff;
    color: #2CC5FF;
    border-right: 3px solid #2CC5FF;
    text-decoration: none;
}

.nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.submenu {
    padding-left: 20px;
}

.submenu .nav-item {
    margin: 1px 15px;
    padding-left: 35px;
}

.collapsible .fa-chevron-down {
    transition: transform 0.2s;
}

.collapsible.collapsed .fa-chevron-down {
    transform: rotate(-90deg);
}

/* Podcast-level sidebar styles */
.podcast-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 15px;
}

.podcast-artwork {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6D1A86 0%, #2CC5FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.podcast-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.podcast-artwork i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.8);
}

/* All Podcasts Button Styling */
.podcast-header .btn-outline-secondary {
    border: 2px solid #e5e5e5;
    color: #666;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.podcast-header .btn-outline-secondary:hover {
    background: linear-gradient(135deg, #6D1A86 0%, #2CC5FF 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(109, 26, 134, 0.3);
}

.podcast-header .btn-outline-secondary i {
    transition: transform 0.3s;
}

.podcast-header .btn-outline-secondary:hover i {
    transform: translateX(-3px);
}

.podcast-title-sidebar {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.back-to-podcasts {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #2CC5FF;
    text-decoration: none;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.back-to-podcasts:hover {
    background: #f0f7ff;
    text-decoration: none;
}

.back-to-podcasts i {
    margin-right: 6px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    padding: 8px 20px;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

.badge-count {
    background: #2CC5FF;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
    display: none;
}

.nav-item .badge-count {
    margin-left: 8px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
        border-right: none;
    }

    .sidebar.open {
        transform: translateX(0) !important;
        border-right: 1px solid #e5e5e5;
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: inline-flex !important;
    }
}

@media (min-width: 769px) {
    .sidebar-toggle {
        display: none !important;
    }
}
