/* Base Styles */


.last-updated {
    font-size: 1.2rem;
    opacity: 0.9;
}

.section-title {
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.section-title h2 {
    font-size: 28px;
}

/* Results Summary */
.results-progress {
    margin-bottom: 30px;
}

.progress {
    height: 10px;
    background-color: #f5f5f5;
    border-radius: 5px;
    margin-top: 10px;
}

.progress-bar {
    background-color: #1a73e8;
}

.party-cards .card {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.party-cards .card:hover {
    transform: translateY(-5px);
}

.jlp-card {
    border-top: 4px solid #349311;
}

.pnp-card {
    border-top: 4px solid #FF6347;
}

.others-card {
    border-top: 4px solid #9999CC;
}

.seat-count {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.seat-label {
    font-size: 1rem;
    opacity: 0.7;
    margin-bottom: 10px;
}

.results-detail {
    font-size: 0.9rem;
}

.results-detail .declared {
    display: block;
    color: #28a745;
}

.results-detail .leading {
    display: block;
    color: #6c757d;
}

/* Interactive Map */
.map-container {
    /* background: #f8f9fa; */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.map-key .key-list {
    list-style: none;
    padding: 0;
}

.key-list li {
    padding: 5px 0;
    display: flex;
    align-items: center;
}

.key-color {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 4px;
}

.key-color.jlp { background-color: #349311; }
.key-color.pnp { background-color: #FF6347; }
.key-color.inda { background-color: #3366CC; }
.key-color.indb { background-color: #A237D3; }
.key-color.indc { background-color: #FF759C; }
.key-color.undecided { background-color: #DDDDDD; }

.constituency-search {
    margin: 20px 0;
}

.search-box {
    display: flex;
    margin-bottom: 15px;
}

.search-box input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.search-box button {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* Detailed Results */
.results-filter {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.filter-options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-options label {
    font-weight: 600;
    margin-right: 10px;
}

.filter-options select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

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

.results-table table {
    width: 100%;
    border-collapse: collapse;
}

.results-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.results-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.results-table tr:hover {
    background-color: #f8f9fa;
}

/* Analysis Section */
.analysis-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: 100%;
}

.analysis-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1a73e8;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    
    .party-cards .col-md-4 {
        margin-bottom: 15px;
    }
    
    .filter-options {
        flex-direction: column;
        align-items: flex-start;
    }
}
