:root {
    --primary-color: #111827;
    --primary-hover: #374151;
    --bg-color: #f3f4f6;
    --text-main: #111827;
    --text-muted: #6b7280;
    --card-bg: #ffffff;
    --card-border: #e5e7eb;
    --success-bg: #ecfdf5;
    --success-text: #059669;
    --error-color: #ef4444;
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    background: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    -webkit-font-smoothing: antialiased;
}

.background-animation {
    display: none;
}

.container {
    width: 100%;
    max-width: 560px;
    padding: 3rem 2.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.02), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
}

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

h1 {
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.search-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    gap: 0.5rem;
    position: relative;
}

input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-main);
    background: #f9fafb;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    outline: none;
    transition: all 0.2s ease;
}

input:focus {
    border-color: #d1d5db;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.05);
}

input::placeholder {
    color: #9ca3af;
}

button {
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

button:active {
    transform: scale(0.98);
}

#loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 1rem 0;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--card-border);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-text {
    color: var(--error-color);
    text-align: center;
    font-size: 0.9rem;
    background: #fef2f2;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #fecaca;
}

.hidden {
    display: none !important;
}

/* Card Styling */
.card {
    border-top: 1px solid var(--card-border);
    padding-top: 2rem;
    background: none;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    animation: fadeIn 0.4s ease forwards;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--card-border);
}

.card-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

.status-badge {
    background: var(--success-bg);
    color: var(--success-text);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.info-group.highlight {
    margin-top: 0.5rem;
    padding: 1.25rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

.label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.value {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-main);
    word-break: break-word;
}

.info-group.highlight .value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
}

@media (max-width: 480px) {
    .input-group {
        flex-direction: column;
    }

    button {
        padding: 1rem;
    }

    .container {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    h1 {
        font-size: 1.5rem;
    }
}