* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
    min-height: 100vh;
    transition: background 0.3s ease;
}

body.dark-mode {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.2em;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

body.dark-mode .container {
    background: rgba(26, 32, 44, 0.95);
}

h1 {
    text-align: center;
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 2.5em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: color 0.3s ease;
}

body.dark-mode h1 {
    color: #e2e8f0;
    background: linear-gradient(135deg, #9f7aea 0%, #b794f4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 30px;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

body.dark-mode .subtitle {
    color: #a0aec0;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    transition: background 0.3s ease;
}

body.dark-mode table {
    background: #2d3748;
}

thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

body.dark-mode thead {
    background: linear-gradient(135deg, #553c9a 0%, #6b46c1 100%);
}

th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95em;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

body.dark-mode tbody tr {
    border-bottom: 1px solid #4a5568;
}

tbody tr:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    transform: scale(1.01);
}

body.dark-mode tbody tr:hover {
    background: linear-gradient(90deg, rgba(159, 122, 234, 0.2) 0%, rgba(183, 148, 244, 0.2) 100%);
}

tbody tr:last-child {
    border-bottom: none;
}

td {
    padding: 16px 15px;
    color: #2d3748;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

body.dark-mode td {
    color: #e2e8f0;
}

td:first-child {
    font-weight: 600;
    color: #667eea;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 12px;
}

body.dark-mode td:first-child {
    color: #9f7aea;
}

.lang-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.year {
    color: #764ba2;
    font-weight: 500;
    transition: color 0.3s ease;
}

body.dark-mode .year {
    color: #b794f4;
}

.built-with {
    background: #f7fafc;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    font-size: 0.85em;
    color: #4a5568;
    transition: all 0.3s ease;
}

body.dark-mode .built-with {
    background: #1a202c;
    color: #cbd5e0;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.8em;
    }

    th, td {
        padding: 12px 10px;
        font-size: 0.85em;
    }
}

.legend {
    margin-top: 30px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

body.dark-mode .legend {
    background: #1a202c;
    border-left: 4px solid #9f7aea;
}

.legend h3 {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

body.dark-mode .legend h3 {
    color: #e2e8f0;
}

.legend p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

body.dark-mode .legend p {
    color: #a0aec0;
}