/* BASE */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    margin: 0;
}

/* CARD */
.container {
    width: 100%;
    max-width: 600px;
    padding: 40px 30px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.08);
}

/* TITLE */
.title {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #111827;
}

/* INPUT */
.form-group {
    margin-bottom: 15px;
}

input {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    transition: all 0.2s ease;
}

input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* BUTTON */
.btn-primary {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    margin-top: 15px;
    margin-bottom: 20px;
    transition: 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

/* RESULT CONTAINER */
.result {
    margin-top: 25px;
    padding: 18px;
    border-radius: 14px;
    display: none;
    animation: fadeIn 0.25s ease;
}

/* STATES */
.result.loading {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.result.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.result.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

/* RECORD (SINGLE RESULT) */
.record {
    background: #ffffff;
    padding: 16px 18px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    text-align: left;
    line-height: 1.6;
    font-size: 15px;
}

.record strong {
    display: inline-block;
    width: 130px;
    color: #374151;
}

/* HEADER TEXT */
.result-header {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* WARNING (MULTIPLE MATCHES) */
.alert-warning {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    padding: 18px;
    text-align: left;
}

.alert-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    color: #92400e;
}

.alert-text {
    font-size: 14px;
    color: #7c2d12;
    line-height: 1.5;
}

/* HINT */
.hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
}

/* DISCLAIMER */
.disclaimer-box {
    margin-top: 20px;
    font-size: 12px;
    color: #6b7280;
    text-align: center;
}

.warning {
    margin-top: 20px;
    padding: 14px 18px;

    border-radius: 12px;
    border: 1px solid #fed7aa;
    background: #fff7ed;

    font-size: 13px;
    line-height: 1.6;
    color: #7c2d12;

    width: 100%;
    box-sizing: border-box;

    text-align: justify;           /* 🔥 JUSTIFY */
    text-justify: inter-word;      /* 🔥 smoother spacing */
    hyphens: auto; /* prevents ugly gaps */
}

/* ANIMATION */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.data-range {
    margin-top: 14px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
    line-height: 1.4;
}

.badge {
    background:#16a34a;
    color:white;
    padding:4px 10px;
    border-radius:999px;
    font-size:12px;
    display:inline-block;
    margin-bottom:10px;
}

.card-main {
    background: #f0fdf4;
    padding: 20px;
    border-radius: 14px;
    border: 2px solid #16a34a;
}

.chips {
    margin-top:10px;
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.chip {
    background: #ecfdf5;
    border: 1px solid #16a34a;
    padding: 6px 12px;
    border-radius: 999px; /* 🔥 pill look */
    font-size: 13px;
    font-weight: 500;
    color: #065f46;
}

.btn-secondary {
    background: transparent;
    border: none;
    padding: 6px 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    color: #9ca3af;
    transition: 0.2s ease;
}

.btn-secondary:hover {
    color: #374151;
    text-decoration: underline;
}

.history-card {
    background: #f9fafb;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid #e5e7eb;
    transition: 0.2s ease;
}

.history-card:hover {
    background: #f3f4f6;
}

#history {
    transition: all 0.25s ease;
    margin-top: 18px;
}

.chip:hover {
    background: #dcfce7;
}