:root {
    --primary: #0891b2;
    --primary-light: #ecfeff;
    --secondary: #1e40af;
    --bg: #f3f4f6;
    --white: #ffffff;
    --text: #0f172a;
    --text-muted: #6b7280;
    --shadow-card: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


.container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    flex-grow: 1;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Header */
.main-header {
    width: 100%;
    height: var(--header-h);
    background: var(--white);
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.header-content {
    width: 100%;
    max-width: 1100px;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-logo {
    height: 52px;
    width: auto;
}

.header-text {
    display: flex;
    flex-direction: column;
}

.header-text h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.header-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.01em;
}

.slim-header {
    width: 100%;
    background: var(--white);
    border-bottom: 3px solid var(--primary);
    padding: 0.75rem 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.slim-footer {
    width: 100%;
    background: #1e293b;
    color: white;
    padding: 0.75rem 0;
    margin-top: auto;
}

.slim-content {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.5rem;
}

.header-logo {
    height: 40px;
    width: auto;
}

.header-text h1 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
}

.header-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    flex-grow: 1;
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Search Card */
.search-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
}

.search-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.input-group {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.input-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    padding-left: 0.25rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1.1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input-wrapper svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 1.25rem;
    height: 1.25rem;
}

button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4);
    filter: brightness(1.1);
}

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

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Results Section */
.results-container {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.results-container.visible {
    display: block;
}

.result-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid #f1f5f9;
}

.result-header {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    padding: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.result-header .icon-circle {
    background: rgba(255, 255, 255, 0.2);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-body {
    padding: 1.5rem;
    display: grid;
    gap: 1.25rem;
}

.data-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.data-item .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 700;
}

.data-item .value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #b91c1c;
    padding: 1rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Enhanced Input Focus */
.input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
    transform: translateY(-1px);
}

/* Success Highlight for Result */
.results-container.visible .result-card {
    border: 2px solid rgba(37, 99, 235, 0.1);
    animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    70% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Data item styling enhancement */
.data-item {
    padding: 0.75rem;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.data-item:hover {
    background: #f8fafc;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.footer-logo {
    height: 40px;
    width: auto;
    margin: 0 auto 10px auto;
    display: block;
}

.slim-footer p {
    font-size: 0.8rem;
    opacity: 0.8;
    margin: 0;
}

.status-badge {
    margin-left: auto;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
}

@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 2rem auto;
    }
    .slim-content {
        max-width: 500px;
    }
}

@media (max-width: 550px) {
    .container {
        padding: 0 1rem;
        margin: 1.5rem auto;
    }

    .slim-content {
        gap: 0.75rem;
    }

    .header-logo {
        height: 32px;
    }

    .header-text h1 {
        font-size: 0.95rem;
    }

    .header-text p {
        font-size: 0.65rem;
    }

    .footer-logo {
        height: 25px;
        width: auto;
    }

    .slim-footer p {
        font-size: 0.7rem;
    }
}