/* ==========================================
   Yeapdata Politics Responsive Sidebar CSS (Light Theme)
   ========================================== */

/* Main layout wrapper */
.politics-layout-container {
    display: flex;
    min-height: calc(100vh - 80px);
    margin-top: 80px; /* Offset for fixed navbar */
    position: relative;
    background: #f8fafc; /* Slate 50 - Light, clean background */
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* Sidebar Styling (Desktop) */
.politics-sidebar {
    width: 340px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0; /* Slate 200 */
    padding: 35px 24px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex-shrink: 0;
}

.politics-sidebar-header {
    margin-bottom: 15px;
}

.politics-sidebar-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a; /* Slate 900 */
    margin: 0 0 8px 0;
    border-bottom: 2px solid #E61667; /* Yeapdata Pink Accent */
    padding-bottom: 8px;
    display: inline-block;
}

.politics-sidebar-header p {
    font-size: 0.85rem;
    color: #64748b; /* Slate 500 */
    margin: 0;
    line-height: 1.4;
}

/* Navigation items */
.politics-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.politics-menu-item {
    cursor: pointer;
    padding: 15px 20px;
    border-radius: 12px;
    background: #f1f5f9; /* Slate 100 */
    border: 1px solid #e2e8f0;
    color: #475569; /* Slate 600 */
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.politics-menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #E61667; /* Yeapdata Pink Accent */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.politics-menu-item:hover {
    background: #e2e8f0; /* Slate 200 */
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.politics-menu-item.active {
    background: #ffffff;
    border-color: #E61667;
    color: #E61667;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(230, 22, 103, 0.1);
}

.politics-menu-item.active::before {
    opacity: 1;
}

.politics-menu-icon {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

/* Content Area */
.politics-content-area {
    flex-grow: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    background: #f8fafc;
}

.pdf-viewer-card {
    width: 100%;
    height: 80vh;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

#adobe-dc-view {
    width: 100%;
    height: 100%;
}

/* Mobile Toggle and Header */
.politics-mobile-bar {
    display: none;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 20px;
    justify-content: space-between;
    align-items: center;
    z-index: 101;
    margin-top: 80px; /* Offset for navbar */
}

.politics-mobile-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
}

.politics-mobile-toggle {
    background: none;
    border: none;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s;
    border: 1px solid #e2e8f0;
}

.politics-mobile-toggle:hover {
    background: #f1f5f9;
}

/* Mobile Close Button */
.politics-sidebar-close {
    display: none;
    background: none;
    border: none;
    color: #0f172a;
    cursor: pointer;
    font-size: 1.2rem;
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* Overlay for Mobile Drawer */
.politics-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.politics-sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Adjustments for politics-security-parent container */
#politics-security-parent {
    min-height: 100vh;
    background: #f8fafc;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .politics-layout-container {
        flex-direction: column;
        min-height: calc(100vh - 160px);
        margin-top: 0; /* Remove top offset because mobile bar has it */
    }

    .politics-mobile-bar {
        display: flex;
    }

    .politics-sidebar {
        position: fixed;
        top: 0;
        left: -340px;
        height: 100vh;
        width: 290px;
        box-shadow: 10px 0 30px rgba(15, 23, 42, 0.15);
        z-index: 10000; /* Must be above navbar drawer overlay */
        background: #ffffff;
        border-right: 1px solid #e2e8f0;
    }

    .politics-sidebar.active {
        left: 0;
    }

    .politics-sidebar-close {
        display: block;
    }

    .politics-content-area {
        padding: 15px;
    }

    .pdf-viewer-card {
        height: 72vh;
    }
}
