:root {
    --main-color: #1e3a8a; /* Navy */
    --point-color: #ef4444; /* Red for urgency */
    --accent-color: #10b981; /* Emerald for score */
    --bg-color: #f3f4f6;   /* Gray-100 */
    --card-bg: #ffffff;
    --text-primary: #111827; /* Gray-900 */
    --text-secondary: #4b5563; /* Gray-600 */
    --border-color: #e5e7eb; /* Gray-200 */
}

body {
    font-family: 'Spoqa Han Sans Neo', 'sans-serif';
    background-color: var(--bg-color);
    color: var(--text-primary);
}

.filter-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: white;
}

.filter-input:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.2);
}

.policy-card {
    background-color: var(--card-bg);
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s, transform 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-color);
    position: relative; /* For badge positioning */
}

.policy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.08);
}

.deadline-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px; /* pill shape */
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    background-color: var(--point-color);
}

.deadline-badge.ended {
    background-color: #6b7280; /* Gray-500 */
}
.deadline-badge.always {
    background-color: #059669; /* Emerald-600 */
}

.score-display {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-color);
    background-color: #ecfdf5; /* Emerald-50 */
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    text-align: center;
}

.official-link {
    display: block;
    width: 100%;
    text-align: center;
    font-weight: 700;
    color: white;
    background-color: var(--main-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: background-color 0.2s;
    border: none;
}

.official-link:hover {
    background-color: #1e40af; /* Darker Navy */
}

#results-count {
    font-weight: 600;
    color: var(--main-color);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

/* Loader */
.loader {
    border: 4px solid #e5e7eb; /* Gray-200 */
    border-top: 4px solid var(--main-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
