* {
    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%);
    color: #333;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
}

header {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.about-link {
    color: #667eea;
    text-decoration: underline;
    transition: opacity 0.3s;
}

.about-link:hover {
    opacity: 0.7;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-link {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    color: #667eea;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid #667eea;
}

.nav-link:hover {
    background: #667eea;
    color: white;
}

.nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.table-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.table-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 300px;
    padding: 12px 20px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.search-box:focus {
    outline: none;
    border-color: #667eea;
}

.filter-select {
    padding: 12px 20px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
}

.stats {
    margin-bottom: 15px;
    font-weight: 600;
    color: #666;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

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

tbody tr:hover {
    background-color: #f8f9fa;
}

tbody tr.hidden {
    display: none;
}

td {
    padding: 12px;
    vertical-align: top;
}

.year-cell {
    font-weight: 600;
    color: #667eea;
    font-size: 1.1rem;
}

.category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.category-physics { background: #667eea; }
.category-chemistry { background: #f093fb; }
.category-medicine { background: #4facfe; }
.category-literature { background: #43e97b; }
.category-peace { background: #fa709a; }
.category-economics { background: #feca57; color: #333; }

.name-cell {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.05rem;
}

.location-cell {
    color: #666;
    font-size: 0.9rem;
}

.years-cell {
    color: #888;
    font-size: 0.9rem;
    white-space: nowrap;
}

.achievement-cell {
    color: #555;
    line-height: 1.4;
    max-width: 400px;
}

.shared-cell {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

/* Responsive design */
@media (max-width: 1400px) {
    table {
        font-size: 0.85rem;
    }

    th, td {
        padding: 10px 8px;
    }

    .achievement-cell {
        max-width: 300px;
    }
}

@media (max-width: 1024px) {
    .table-container {
        overflow-x: auto;
    }

    table {
        min-width: 1200px;
    }
}
