:root {
    /* Dark mode (default) */
    --bg-primary: #2d2d2d;
    --bg-secondary: #4a4a4a;
    --bg-tertiary: #3a3a3a;
    --bg-striped: #424242;
    --text-primary: #fff;
    --text-secondary: #ccc;
    --text-muted: #ddd;
    --border-color: #555;
    --warning-bg: #4a3728;
    --warning-border: #d19a66;
    --warning-text: #d19a66;
    --accent-color: #667eea;
    --accent-hover: #5a6fd8;
    --shadow: rgba(0, 0, 0, 0.3);
    --partial-color: #FF9800;
}

[data-theme="light"] {
    /* Light mode */
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8e8e8;
    --bg-striped: #f8f9fa;
    --text-primary: #2c3e50;
    --text-secondary: #34495e;
    --text-muted: #555;
    --border-color: #ddd;
    --warning-bg: #fff3cd;
    --warning-border: #ffeaa7;
    --warning-text: #856404;
    --accent-color: #667eea;
    --accent-hover: #5a6fd8;
    --shadow: rgba(0, 0, 0, 0.1);
    --partial-color: #E65100;
}

/* Theme toggle button */
.theme-toggle-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-toggle {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px var(--shadow);
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    transform: scale(1.05);
}

.theme-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 40px 20px 20px 20px;
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}

/* Validation warnings */
.validation-warnings {
    background-color: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px var(--shadow);
    max-width: 900px;
    width: 95%;
    text-align: left;
    transition: all 0.3s ease;
}

.validation-warnings h3 {
    margin: 0 0 12px 0;
    color: var(--warning-text);
    font-size: 1.1em;
}

.validation-warnings ul {
    margin: 12px 0;
    padding-left: 20px;
}

.validation-warnings li {
    margin: 6px 0;
    color: var(--text-muted);
}

.validation-warnings em {
    color: var(--text-secondary);
    font-size: 0.9em;
    display: block;
    margin-top: 12px;
}

.page-title {
    color: var(--text-primary);
    font-size: 3rem;
    font-weight: bold;
    margin: 0 0 2rem 0;
    text-align: center;
    text-shadow: 2px 2px 4px var(--shadow);
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.container {
    background: var(--bg-secondary);
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow);
    text-align: center;
    max-width: 900px;
    width: 95%;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tabs {
    display: flex;
    background: var(--bg-tertiary);
    border-radius: 10px 10px 0 0;
}

.tab-button {
    flex: 1;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: none;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-radius: 0;
}

.tab-button.active {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: bold;
}

.tab-button:hover:not(.active) {
    background: var(--border-color);
    color: var(--text-primary);
}

.tab-content {
    padding: 2.5rem;
}

.filters {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    color: var(--text-primary);
    font-weight: bold;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

select {
    padding: 10px 15px;
    border: 2px solid var(--accent-color);
    border-radius: 5px;
    font-size: 1rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

select:focus {
    outline: none;
    border-color: var(--accent-hover);
}

.table-container {
    background: var(--bg-tertiary);
    border-radius: 10px;
    padding: 1.5rem;
    overflow-x: auto;
    transition: background 0.3s ease;
}

.feature-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    overflow: hidden;
    transition: background 0.3s ease;
}

.feature-table th {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 16px 12px;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.feature-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.feature-table td:first-child {
    text-align: left;
}

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

.feature-table tr:nth-child(even) {
    background: var(--bg-striped);
    transition: background 0.3s ease;
}

.supported {
    color: #4CAF50;
    font-weight: bold;
    text-align: center;
}

.partial {
    color: var(--partial-color);
    font-weight: bold;
    text-align: center;
    transition: color 0.3s ease;
}

.not-supported {
    color: #f44336;
    font-weight: bold;
    text-align: center;
}

.version-number {
    color: var(--text-muted);
    text-align: center;
    transition: color 0.3s ease;
}

/* Tooltip styles */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-primary);
    color: var(--text-primary) !important;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: pre;
    font-size: 0.85em;
    font-weight: normal !important;
    font-family: Arial, sans-serif !important;
    box-shadow: 0 2px 8px var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
    border: 1px solid var(--border-color);
}

.tooltip::before {
    content: '';
    position: absolute;
    bottom: 117%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--bg-primary);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

.tooltip:hover::after,
.tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}