@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lora:wght@400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #002447;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #5A67D8, #667eea);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-family: 'Lora', serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.header p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    opacity: 0.9;
}

.content {
    padding: 30px;
}

.warning {
    background: #FFF3CD;
    border: 1px solid #FFEAA7;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    color: #856404;
}

.warning h3 {
    font-family: 'Lora', serif;
    margin-bottom: 10px;
    color: #002447;
}

.controls {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    margin-bottom: 30px;
    align-items: end;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin-bottom: 8px;
    color: #002447;
}

.input-group input {
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #006BD6;
}

.scrape-btn {
    background: #006BD6;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    height: fit-content;
    font-family: 'Inter', sans-serif;
}

.scrape-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 107, 214, 0.3);
}

.scrape-btn:disabled {
    background: #9CA3AF;
    cursor: not-allowed;
    transform: none;
}

.status {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    display: none;
}

.status.loading {
    background: #DBEAFE;
    color: #002447;
    display: block;
}

.status.error {
    background: #FEE2E2;
    color: #002447;
    display: block;
}

.status.success {
    background: #D1FAE5;
    color: #002447;
    display: block;
}

.results {
    margin-top: 30px;
}

.export-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.export-btn {
    background: #F3F4F6;
    border: 1px solid #D1D5DB;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
    font-family: 'Inter', sans-serif;
    color: #002447;
}

.export-btn:hover {
    background: #006BD6;
    color: white;
}

.agencies-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.agency-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.agency-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.agency-name {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #002447;
    margin-bottom: 12px;
}

.agency-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: #002447;
}

.info-item .icon {
    width: 16px;
    height: 16px;
    fill: #6B7280;
}

.info-item a {
    color: #006BD6;
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

.summary {
    background: #F8FAFC;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.summary h3 {
    font-family: 'Lora', serif;
    margin-bottom: 10px;
    color: #002447;
}

@media (max-width: 768px) {
    .controls {
        grid-template-columns: 1fr;
    }
    
    .export-controls {
        flex-direction: column;
    }
    
    .agencies-grid {
        grid-template-columns: 1fr;
    }
}
