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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: linear-gradient(135deg, #003580 0%, #0051a8 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 20px;
    width: 100%;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

.intro-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

.intro-text p {
    margin-bottom: 1rem;
}

.intro-text a {
    color: #0051a8;
    text-decoration: none;
    font-weight: 500;
}

.intro-text a:hover {
    text-decoration: underline;
}

.search-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    margin-bottom: 2rem;
}

.search-section h2 {
    color: #003580;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

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

input[type="text"] {
    flex: 1;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    outline: none;
    border-color: #0051a8;
}

button {
    padding: 1rem 2rem;
    font-size: 1rem;
    background: linear-gradient(135deg, #0051a8 0%, #003580 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,81,168,0.3);
}

button:active {
    transform: translateY(0);
}

#answer {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    min-height: 300px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    font-size: 1rem;
    line-height: 1.8;
}

#answer h1, #answer h2, #answer h3 {
    color: #003580;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

#answer h1:first-child, #answer h2:first-child, #answer h3:first-child {
    margin-top: 0;
}

#answer ul, #answer ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

#answer p {
    margin-bottom: 1rem;
}

#answer strong {
    color: #003580;
}

#answer table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
}

#answer table th,
#answer table td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}

#answer table th {
    background: #f5f7fa;
    font-weight: 600;
    color: #003580;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 2rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #0051a8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    text-align: center;
}

.loading-title {
    font-size: 1.2rem;
    color: #003580;
    font-weight: 600;
    margin-bottom: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.loading-subtitle {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.placeholder {
    color: #999;
    text-align: center;
    padding: 3rem;
    font-size: 1.1rem;
}

footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 2rem 0;
    margin-top: auto;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-branding {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    height: 80px;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s;
}

.footer-logo:hover {
    opacity: 0.8;
}

footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #0051a8;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Cookie Consent Modal */
.cookie-consent {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cookie-content {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 500px;
    margin: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
    text-align: center;
}

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

.cookie-content p {
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cookie-content strong {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #003580;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cookie-btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 120px;
}

.cookie-accept {
    background: linear-gradient(135deg, #0051a8 0%, #003580 100%);
    color: white;
}

.cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 81, 168, 0.4);
}

.cookie-reject {
    background: #f5f5f5;
    color: #666;
    border: 2px solid #e0e0e0;
}

.cookie-reject:hover {
    background: #e8e8e8;
    border-color: #ccc;
}

@media (max-width: 768px) {
    .cookie-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    button {
        width: 100%;
    }
    
    footer .container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-branding {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}