/* Sidebar Navigation Styles for movieslist_new.php */

/* Layout Container */
.movies-layout-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 20px;
}

/* Sidebar Column */
.movies-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Main Content Column */
.movies-content {
    flex-grow: 1;
    min-width: 0;
    /* Prevent flex overflow */
}

/* Responsive: Stack on mobile */
@media (max-width: 800px) {
    .movies-layout-container {
        flex-direction: column;
    }

    .movies-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Sidebar Section Styles */
.sidebar-section {
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-header {
    background: #f9f9f9;
    padding: 12px 15px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-left: 3px solid transparent;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header:hover {
    background: #f0f0f0;
}

/* Chevron indicator */
.sidebar-header::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(45deg);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 8px;
}

/* Collapsed state */
.sidebar-section.collapsed .sidebar-header::after {
    transform: rotate(-45deg);
}

.sidebar-section.collapsed .sidebar-body {
    display: none;
}

/* Highlight active section header if needed, or just stylistic */
.sidebar-header.active {
    border-left-color: #44c767;
    /* Green accent */
}

.sidebar-body {
    padding: 15px;
    font-size: 13px;
}

/* List Styles in Sidebar */
.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 8px;
}

.sidebar-list li:last-child {
    margin-bottom: 0;
}

.sidebar-list a {
    display: block;
    color: #555;
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
}

.sidebar-list a:hover {
    color: #d95e11;
    /* Orange hover */
    padding-left: 3px;
}

.sidebar-list a.active {
    color: #44c767;
    /* Green active */
    font-weight: bold;
}

/* Tags Cloud Style */
.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sidebar-tag {
    background: #f0f0f0;
    color: #444;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    text-decoration: none;
    transition: background 0.2s;
}

.sidebar-tag:hover {
    background: #d95e11;
    color: #fff;
}

/* Inputs in Sidebar */
.sidebar-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
    color: #333;
    margin-bottom: 10px;
}

.sidebar-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #44c767;
    color: #fff;
    padding: 8px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 5px;
    border: 1px solid #3ca85a;
}

.sidebar-btn:hover {
    background: #3ca85a;
}

/* Specific Adjustments for Legacy Elements inside Sidebar */
/* If include_category_file outputs existing classes, we override them to fit */
.movies-sidebar .sortcatg {
    background: transparent !important;
    text-align: left !important;
    padding: 0 !important;
    margin: 0 !important;
}

.movies-sidebar .sortcatg li {
    display: block !important;
    padding: 2px 0 !important;
    margin: 0 0 5px 0 !important;
}

.movies-sidebar .starcast {
    background: transparent !important;
    text-align: left !important;
    padding: 0 !important;
    border: none !important;
}