:root {
    --primary-color: #d32f2f;
    --secondary-color: #ef5350;
    --accent-color: #ffcdd2;
    --background-gradient: linear-gradient(135deg, #cb2d3e 0%, #ef473a 100%);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.3);
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background: var(--background-gradient);
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    color: var(--text-primary);
}

.container {
    width: 100%;
    max-width: 1000px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid var(--glass-border);
    padding: 40px;
    animation: fadeIn 0.6s ease-out;
}

.logo {
    display: block;
    margin: 0 auto 20px auto;
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

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

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

h1 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.search-box {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    justify-content: center;
}

input[type="text"] {
    width: 100%;
    max-width: 400px;
    padding: 15px 25px;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
}

input[type="text"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
}

button {
    padding: 15px 35px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(211, 47, 47, 0.1), 0 2px 4px -1px rgba(211, 47, 47, 0.06);
}

button:hover {
    background: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(211, 47, 47, 0.2), 0 4px 6px -2px rgba(211, 47, 47, 0.1);
}

.result-container {
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
}

th {
    background: #f8fafc;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 16px;
    text-align: left;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e2e8f0;
}

td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-primary);
    font-size: 1rem;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: #f8fafc;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: default;
}

.badge-unit {
    background: #ffebee;
    color: #b71c1c;
}

.badge-id {
    background: #f3f4f6;
    color: #374151;
    font-family: monospace;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
}

.footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 2rem;
    }

    .search-box {
        flex-direction: column;
        gap: 10px;
    }

    input[type="text"] {
        max-width: 100%;
        width: 100%;
    }

    button {
        width: 100%;
    }

    th,
    td {
        padding: 12px;
        font-size: 0.9rem;
    }
}

/* Stats Counter */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    background: white;
}

.stat-icon {
    font-size: 1.2rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-value {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}