body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 0; /* Reset padding for full width nav */
}

/* Navbar Styles */
.navbar {
    background-color: #2c3e50;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.nav-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 60px;
}

.brand {
    font-size: 1.2rem;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 20px;
}

.nav-link {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-link:hover {
    background-color: #34495e;
}

.nav-link.active {
    background-color: #3498db;
    color: white;
}

.container {
    max-width: 1000px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1, h2 {
    text-align: center;
    color: #2c3e50;
}

.controls {
    margin-bottom: 20px;
    text-align: center;
}

select, input[type="text"] {
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 16px;
}

select {
    min-width: 200px;
}

.chart-container {
    position: relative;
    height: 500px;
    width: 100%;
    margin-bottom: 40px;
}

.hidden {
    display: none;
}

#search-input {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f9fa;
    font-weight: bold;
}

tr:hover {
    background-color: #f1f1f1;
}

/* Party Colors (optional specific styling if needed later) */

/* Methodology Section */
.methodology-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    color: #2c3e50;
}

.methodology-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

.prompt-box {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
}

.prompt-box pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #495057;
}

#methodology-models-list {
    list-style-type: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

#methodology-models-list li {
    background-color: #fff;
    border: 1px solid #dfe6e9;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    color: #2c3e50;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Word Cloud Section */
.word-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    min-height: 200px;
    margin-bottom: 30px;
}

.word-cloud-item {
    cursor: pointer;
    color: #333;
    text-transform: uppercase;
    font-weight: bold;
    transition: transform 0.2s, color 0.2s;
    user-select: none;
}

.word-cloud-item:hover {
    transform: scale(1.1);
    color: #3498db;
}

.word-cloud-item.active {
    color: #e74c3c;
}

#topic-details {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    color: #7f8c8d;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
}
