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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

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

.search-box {
    padding: 30px 40px;
    background: #f8f9fa;
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e9ecef;
}

#searchInput {
    flex: 1;
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s;
}

#searchInput:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

#searchBtn {
    background: #667eea;
    color: white;
}

#searchBtn:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

#clearBtn {
    background: #6c757d;
    color: white;
}

#clearBtn:hover {
    background: #5a6268;
}

.stats {
    display: flex;
    gap: 20px;
    padding: 20px 40px;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.stat-card {
    flex: 1;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    font-weight: 600;
    color: #6c757d;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.loading, .error {
    padding: 40px;
    text-align: center;
    font-size: 1.1rem;
}

.loading {
    color: #667eea;
}

.error {
    color: #dc3545;
    background: #f8d7da;
}

.hidden {
    display: none;
}

.table-container {
    padding: 40px;
    max-height: 600px;
    overflow-y: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    position: sticky;
    top: 0;
    background: #667eea;
    color: white;
    z-index: 10;
}

th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background 0.2s;
}

tbody tr:hover {
    background: #f8f9fa;
}

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

td {
    padding: 16px;
}

td:first-child {
    font-weight: 600;
    color: #667eea;
    font-family: 'Courier New', monospace;
}

td:last-child {
    color: #495057;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .stats {
        flex-direction: column;
    }
    
    .table-container {
        padding: 20px;
    }
    
    th, td {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
}
