:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --background-color: #f8fafc;
    --text-color: #1e293b;
    --border-color: #e2e8f0;
    --success-color: #059669;
    --error-color: #dc2626;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

header p {
    color: #64748b;
    font-size: 1.1rem;
}

.search-section {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    padding: 2rem;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

input[type="text"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: var(--secondary-color);
}

.message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    display: none;
}

.error {
    background-color: #fef2f2;
    color: var(--error-color);
    border: 1px solid #fee2e2;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    display: none;
}

.loading {
    text-align: center;
    color: #6b7280;
    padding: 1rem;
    display: none;
}

.results-section {
    display: none;
    margin-top: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

tr:hover {
    background-color: #f8fafc;
}

td {
    color: #1e293b;
}

td.positive {
    color: var(--success-color);
}

td.negative {
    color: var(--error-color);
}

footer {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    color: #64748b;
    font-size: 0.875rem;
    border-top: 1px solid var(--border-color);
}

footer p {
    margin: 0.5rem 0;
}

footer .copyright {
    color: #94a3b8;
    font-size: 0.8125rem;
}

.contact {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

.contact a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }

    .search-section {
        padding: 1rem;
    }

    .search-box {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    th, td {
        padding: 0.75rem;
    }
}

/* Responsive table */
@media (max-width: 1024px) {
    .search-section {
        overflow-x: auto;
    }
    
    table {
        min-width: 800px;
    }
}

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

.results-section.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}
