* {
    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, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    padding: 20px;
    color: #e0e0e0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: #1e1e2e;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid #2d2d3e;
}

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

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 600;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Navigation */
.page-nav {
    display: flex;
    gap: 0;
    background: #252535;
    border-bottom: 1px solid #2d2d3e;
    padding: 0;
}

.nav-btn {
    flex: 1;
    padding: 15px 30px;
    background: transparent;
    border: none;
    color: #b0b0b0;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.nav-btn:hover {
    background: #2d2d3e;
    color: #e0e0e0;
}

.nav-btn.active {
    color: #8b9aff;
    background: #2d2d3e;
    border-bottom-color: #8b9aff;
}

/* Page Views */
.page-view {
    display: none;
}

.page-view.active {
    display: block;
}

/* Filter Controls */
.filter-controls {
    padding: 20px 30px;
    background: #252535;
    border-bottom: 1px solid #2d2d3e;
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-controls label {
    font-weight: 500;
    color: #e0e0e0;
    white-space: nowrap;
}

.filter-controls select {
    flex: 1;
    max-width: 300px;
    padding: 10px 15px;
    background: #1e1e2e;
    border: 1px solid #3d3d4e;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-controls select:hover {
    border-color: #555;
}

.filter-controls select:focus {
    outline: none;
    border-color: #8b9aff;
    box-shadow: 0 0 0 3px rgba(139, 154, 255, 0.1);
}

.filter-controls select option {
    background: #1e1e2e;
    color: #e0e0e0;
    padding: 10px;
}

.table-container {
    overflow-x: auto;
    max-height: 70vh;
    overflow-y: auto;
}

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

thead {
    background: #2d2d3e;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #e0e0e0;
    border-bottom: 2px solid #3d3d4e;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    position: relative;
}

th:hover {
    background: #3d3d4e;
}

th.sortable::after {
    content: ' ⇅';
    opacity: 0.5;
    font-size: 0.8em;
    margin-left: 5px;
}

th.sort-asc::after {
    content: ' ↑';
    opacity: 1;
    color: #8b9aff;
}

th.sort-desc::after {
    content: ' ↓';
    opacity: 1;
    color: #8b9aff;
}

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

tbody tr:hover {
    background: #2d2d3e;
}

tbody tr:nth-child(even) {
    background: #252535;
}

tbody tr:nth-child(even):hover {
    background: #2d2d3e;
}

td {
    padding: 12px;
    border-right: 1px solid #2d2d3e;
}

td:last-child {
    border-right: none;
}

.info {
    padding: 20px 30px;
    background: #252535;
    border-top: 1px solid #2d2d3e;
    text-align: center;
    color: #b0b0b0;
}

.info p {
    font-size: 0.9em;
}

/* Scrollbar styling */
.table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: #2d2d3e;
}

.table-container::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 40px;
    color: #b0b0b0;
}

/* Empty state */
.empty {
    text-align: center;
    padding: 40px;
    color: #b0b0b0;
}

