/* css/style.css */
.civic-lookup-container {
    max-width: 800px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.civic-search-box {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
}

.civic-search-box h3 {
    margin-top: 0;
    color: #1a1a1a;
}

.civic-search-box input[type="text"] {
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    width: 250px;
    margin-right: 8px;
    text-transform: uppercase;
}

.civic-search-box input[type="text"]:focus {
    outline: none;
    border-color: #0056b3;
}

.civic-btn {
    padding: 12px 24px;
    font-size: 16px;
    background: #0056b3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.civic-btn:hover {
    background: #004494;
}

.civic-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

#civic-loading {
    margin-top: 1rem;
    color: #6c757d;
    font-style: italic;
}

.civic-tabs {
    display: flex;
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 1.5rem;
}

.civic-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #6c757d;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.civic-tab:hover {
    color: #0056b3;
}

.civic-tab.active {
    color: #0056b3;
    border-bottom-color: #0056b3;
    font-weight: 600;
}

.civic-panel {
    display: none;
}

.civic-panel.active {
    display: block;
}

.civic-election-item, .civic-meeting-item, .civic-event-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.civic-election-item h4, .civic-meeting-item h4 {
    margin-top: 0;
    color: #1a1a1a;
    font-size: 1.1rem;
}

.civic-cancelled {
    color: #dc3545;
    font-weight: bold;
}

.civic-elections-list, .civic-meetings-list {
    margin: 1rem 0;
}

.civic-error {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.civic-success {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.civic-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.civic-info-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.civic-info-card h4 {
    margin-top: 0;
    color: #0056b3;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.civic-council-badge {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
    .civic-search-box input[type="text"] {
        width: 100%;
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
    
    .civic-btn {
        width: 100%;
    }
    
    .civic-tabs {
        flex-wrap: wrap;
    }
    
    .civic-tab {
        flex: 1;
        min-width: 120px;
        padding: 12px;
        font-size: 14px;
    }
}