* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #1a1a1a;
    color: #fff;
    line-height: 1.6;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0d47a1;
    padding: 0.5rem 1rem;
    height: 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.navbar-left, .navbar-right {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 1.5rem;
}

.logo i {
    margin-right: 0.5rem;
}

.navbar nav ul {
    display: flex;
    list-style: none;
}

.navbar nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0 1rem;
    display: flex;
    align-items: center;
}

.navbar nav ul li a i {
    margin-right: 0.5rem;
}

.container {
    display: flex;
    height: calc(100vh - 50px);
}

.sidebar {
    width: 270px;
    background-color: #212121;
    border-right: 1px solid #333;
    overflow-y: auto;
}

.profile-card {
    padding: 1rem;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: flex-start;
}

.avatar {
    margin-right: 0.75rem;
}

.avatar img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.profile-info h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.profile-info .user-id {
    font-size: 0.7rem;
    color: #777;
    word-break: break-all;
}

.content {
    flex: 1;
    overflow-y: auto;
    background-color: #1a1a1a;
}

.content-header {
    padding: 1rem;
    border-bottom: 1px solid #333;
}

.match-info {
    margin-bottom: 1rem;
}

.match-info h2 {
    font-size: 1.2rem;
}

.match-info p {
    font-size: 0.8rem;
    color: #aaa;
}

.tabs {
    display: flex;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.tabs button {
    background: transparent;
    color: #aaa;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.tabs button.active {
    color: white;
    border-bottom: 2px solid #1976d2;
}

.tabs button i {
    margin-right: 0.5rem;
}

.filter-section {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.filter-section p {
    margin-right: 1rem;
    font-size: 0.9rem;
}

.filter-bar {
    flex: 1;
    height: 2px;
    background-color: #333;
}

.platform-stats {
    display: flex;
    background-color: #1a1a1a;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #333;
    justify-content: space-between;
}

.platform-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
}

.platform-label {
    font-size: 0.7rem;
    color: #aaa;
    margin-bottom: 0.2rem;
    display: block;
}

.platform-count {
    font-size: 0.9rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.platform-count i {
    margin-right: 0.3rem;
    font-size: 1rem;
}

.fa-robot {
    color: #999;
}

.fa-robot {
    color: #999;
}

.fa-windows {
    color: #00adef;
}

.fa-playstation {
    color: #2e6db4;
}

.fa-xbox {
    color: #107c10;
}

.fa-gamepad {
    color: #e60012;
}

.fa-android {
    color: #78C257;
}

.data-table {
    width: 100%;
    overflow-x: auto;
}

.table-header {
    display: flex;
    background-color: #1a1a1a;
    padding: 0.5rem 0.5rem;
    font-size: 0.8rem;
    font-weight: bold;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
}

.col {
    padding: 0 0.5rem;
    white-space: nowrap;
}

.col.skin {
    width: 50px;
}

.col.name {
    width: 200px;
}

.col.team-id, .col.level, .col.elims, .col.placement, .col.platform, .col.anon, .col.has-crown, .col.crowns, .col.wins, .col.rank {
    width: 100px;
    text-align: center;
}

.row {
    display: flex;
    padding: 0.5rem;
    border-bottom: 1px solid #333;
    align-items: center;
}

.row:hover {
    background-color: #2a2a2a;
}

.highlighted {
    color: #1976d2;
}

.fa-sort-down {
    margin-left: 0.25rem;
}

.fa-lock, .fa-copy, .fa-circle-info {
    opacity: 0.7;
    font-size: 0.8rem;
    margin-left: 0.25rem;
}

@media (max-width: 1200px) {
    .content {
        min-width: 950px;
    }
    
    .platform-stats {
        flex-wrap: wrap;
    }
    
    .platform-stat-item {
        flex-basis: 33.33%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    
    .platform-stat-item {
        flex-basis: 50%;
    }
}

.search-bar {
    display: flex;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.search-bar input {
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem;
    min-width: 290px;
}

.search-bar button {
    background: transparent;
    border: none;
    color: white;
    padding: 0 0.75rem;
    cursor: pointer;
}

.rank {
    width: 30px;
    height: auto;
    vertical-align: middle;
}

.platform-icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    vertical-align: middle;
    border-radius: 0.15em;
    margin: 0.25em;
}

.platform-icon.switch1 {
    background-image: url('https://tracker.oli.rip/cdn/platforms/switch-1.svg');
    height: 1.3em;
    width: 1.3rem;
}

.platform-icon.switch2 {
    background-image: url('https://tracker.oli.rip/cdn/platforms/switch-2.svg');
    width: 2em;
}
