
.navigation-sidebar {
    float: left;
    width: 200px;
    background-color: rgba(255, 255, 255, 0.5);
    position: relative;
    height: 100%;
    border-radius: 5px;
    margin-top: 70px;
    margin-right: 10px;
    font-family: sans-serif;
    font-size: 20px;
    order: -1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.navigation-sidebar > a {
    text-decoration: none;
    color: black;
    display: block;
}

.navitem {
    padding: 15px 20px;
    border-bottom: 1px solid #ccc;
    font-size: 18px;
    border-radius: 5px;
    margin: 2px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.navitem:hover {
    background-color: rgba(220, 220, 220, 0.7);
    cursor: pointer;
}

.navitem_sel {
    padding: 15px 20px;
    border-bottom: 1px solid #ccc;
    background-color: rgba(200, 200, 200, 0.7);
    font-weight: bold;
    border-radius: 5px;
    margin: 2px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.navitem_sel:hover {
    background-color: rgba(180, 180, 180, 0.7);
    cursor: pointer;
}

.navitemtext {
    text-decoration: none;
    color: black;
    display: block;
}

.navitemtext_sel {
    text-decoration: none;
    color: black;
    font-weight: bold;
    display: block;
}

/* Parties Panel Styling */
.parties-panel {
    width: 180px;
    background-color: rgba(255, 255, 255, 0.5);
    position: relative;
    height: fit-content;
    border-radius: 5px;
    margin-top: 70px;
    margin-right: 10px;
    padding: 15px;
    font-family: sans-serif;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.parties-panel h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: bold;
    color: black;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #ccc;
}

.party-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.party-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border-radius: 5px;
    cursor: default;
    transition: background-color 0.2s ease, border 0.2s ease;
    border: 2px solid transparent;
    background-color: rgba(240, 240, 240, 0.3);
}

.party-item:hover {
    background-color: rgba(200, 200, 200, 0.2);
}

.party-item.selected {
    background-color: rgba(150, 150, 150, 0.3);
    border: 2px solid #666;
}

.party-item.ruling-party-highlight {
    font-weight: 600;
}

.party-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.party-color {
    width: 24px;
    height: 24px;
    border-radius: 3px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.party-item:hover .party-color {
    transform: scale(1.1);
}

.party-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    flex: 1;
}

.party-name {
    font-size: 13px;
    color: black;
    text-decoration: none;
    font-weight: inherit;
}

.party-count {
    font-size: 11px;
    color: #666;
}

.party-buttons {
    display: flex;
    gap: 6px;
    width: 100%;
}

.party-btn {
    flex: 1;
    padding: 6px 8px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid #999;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: black;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.party-btn:hover {
    background-color: #e8e8e8;
    border-color: #666;
}

.filter-btn.active {
    background-color: rgba(100, 150, 200, 0.6);
    border-color: #4a7ba7;
    color: white;
    font-weight: 600;
}

/* Party Members Modal */
.party-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.party-modal.active {
    display: flex;
}

.party-modal-content {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.party-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #ccc;
}

.party-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: black;
}

.party-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.party-modal-close:hover {
    color: black;
}

.party-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.party-members-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.party-member-item {
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: rgba(240, 240, 240, 0.5);
    transition: background-color 0.2s ease;
}

.party-member-item:hover {
    background-color: rgba(220, 220, 220, 0.5);
}

.member-name {
    font-weight: bold;
    color: black;
    font-size: 14px;
    margin-bottom: 4px;
}

.member-position {
    font-size: 12px;
    color: #333;
    margin-bottom: 2px;
}

.member-constituency {
    font-size: 11px;
    color: #666;
    font-style: italic;
}