* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    padding: 40px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    color: #2d3748;
    font-size: 2rem;
    margin-bottom: 8px;
}

.subtitle {
    color: #718096;
    font-size: 1rem;
}

.input-section {
    margin-bottom: 30px;
}

label {
    display: block;
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1rem;
}

#address-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

#address-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#find-button {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#find-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

#find-button:active {
    transform: translateY(0);
}

.result-section {
    padding: 24px;
    border-radius: 8px;
    animation: fadeIn 0.4s ease;
}

.result-section.hidden {
    display: none;
}

.result-success {
    background-color: #f0fdf4;
    border: 2px solid #86efac;
}

.result-error {
    background-color: #fef2f2;
    border: 2px solid #fca5a5;
}

.result-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #2d3748;
}

.polling-info {
    background: white;
    padding: 20px;
    border-radius: 6px;
    margin-top: 12px;
}

.info-row {
    margin-bottom: 16px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: 600;
    color: #4a5568;
    display: block;
    margin-bottom: 4px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: #2d3748;
    font-size: 1.125rem;
}

.error-message {
    color: #991b1b;
    font-size: 1rem;
    line-height: 1.6;
}

footer {
    margin-top: 30px;
    text-align: center;
}

.note {
    color: #a0aec0;
    font-size: 0.875rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .container {
        padding: 24px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
