/* ===== App Layout Styles (based on Admin but for user-facing) ===== */

/* App Content Layout */
.app-content-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.app-content-wrapper { 
    display: flex; 
    min-height: 100vh;
    margin-top: 0;
}

/* App Layout Base */
.app-layout {
    margin: 0;
    padding: 0;
}

/* Enhanced Sidebar Layout */
.ms-sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
}

.ms-sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: 0.75rem 0;
}

/* Fixed sections */
.sidebar-fixed-top {
    flex-shrink: 0; /* Never shrink */
}

.sidebar-fixed-bottom {
    flex-shrink: 0; /* Never shrink */
    margin-top: auto; /* Push to bottom */
}

/* Sidebar Logo */
.sidebar-logo {
    border-radius: 8px;
    object-fit: contain;
}

/* Enhanced Sidebar Navigation for App */
.ms-nav .nav-link {
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    color: var(--ms-text);
    border-radius: 6px;
    line-height: 1.3;
    text-decoration: none;
}

.ms-nav .nav-link span {
    flex-grow: 1;
}

.ms-nav .nav-link small {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Filter Bubbles */
.filter-bubble {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.filter-bubble.active {
    background-color: var(--ms-primary) !important;
    border-color: var(--ms-primary) !important;
    color: white !important;
}

.filter-bubble:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Sessions List */
.sessions-list {
    flex: 1;
    overflow-y: auto;
    min-height: 0; /* Important for flexbox scrolling */
}

.session-item {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.session-item:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(164, 172, 255, 0.3);
}

.session-icon {
    font-size: 1.2rem;
}

.session-title {
    font-weight: 500;
}

/* User Account Section */
.user-account-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.user-account-section .btn-link {
    color: white;
    border: none;
    background: none;
    transition: background-color 0.2s ease;
}

.user-account-section .btn-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

.user-account-section .dropdown-menu {
    background-color: var(--ms-bg);
    border: 1px solid var(--ms-border);
}

/* Search input styling in sidebar */
.ms-sidebar .form-control {
    background: var(--ms-bg);
    border-color: var(--ms-border);
    color: var(--ms-text);
}

.ms-sidebar .form-control:focus {
    background: var(--ms-bg);
    border-color: var(--ms-primary);
    color: var(--ms-text);
    box-shadow: 0 0 0 0.2rem rgba(164, 172, 255, 0.25);
}

.ms-sidebar .form-control::placeholder {
    color: var(--ms-muted);
}

.ms-sidebar .input-group-text {
    background: var(--ms-bg);
    border-color: var(--ms-border);
}

/* Progress bar in sidebar */
.ms-sidebar .progress {
    background-color: rgba(164, 172, 255, 0.1);
}

.ms-sidebar .progress-bar {
    background-color: var(--ms-primary);
}

/* Responsive behavior for App area */
@media (max-width: 991.98px) {
    .app-content-container {
        padding: 0;
    }
    .app-content-wrapper > .sidebar { 
        display: none !important; 
    }
}