* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(1deg, #122646 0%, #000c22 100%);
    min-height: 100vh;
    color: #fff;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(16, 36, 68, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.nav-logo {
    font-size: 2em;
    font-weight: 700;
    background: linear-gradient(90deg, #88e8fd, #0dbce4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(90deg, #00b4db, #00b4db);
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(119, 224, 247, 0.6);
}

/* Steam Login Button Styles */
.steam-login-btn {
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
}

.steam-login-btn img {
    height: 35px;
    width: auto;
    display: block;
}

.steam-login-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.page-content {
    padding-top: 100px;
}

.section {
    display: none;
    padding: 130px 20px 40px;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
}

.section.active {
    display: flex;
    flex-direction: column;
}

.container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 60px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    max-width: 1100px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
}

h1 {
    color: #fff;
    margin-bottom: 30px;
    font-size: 3em;
    background: linear-gradient(1deg, #88e8fd, #0dbce4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.server-banner {
    margin: 25px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.server-banner:hover {
    border-color: #88e8fd; /* Bright cyan border */
    box-shadow: 0 0 20px rgba(136, 232, 253, 0.4);
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.status-text {
    font-size: 0.95em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.server-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #00b4db;
    transform: translateY(-2px);
}

.info-label {
    font-size: 0.85em;
    color: #88e8fd;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.info-value {
    font-size: 1.4em;
    font-weight: 700;
    color: #fff;
}

.server-banner img {
    width: 100%;
    max-width: 560px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    margin: 15px 0;
}

.server-banner:hover img {
    transform: scale(1.03);
}

.description {
    color: #ccc;
    margin-bottom: 40px;
    font-size: 1.2em;
    line-height: 1.6;
}

.server-titles {
    color: #fff;
    margin: 0;
    font-size: 1.5em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.status-online {
    background-color: #00ff7f;
    box-shadow: 0 0 10px #00ff7f;
}

.status-offline {
    background-color: #ff3b3b;
    box-shadow: 0 0 10px #ff3b3b;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.connect-button {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 35px;
    background: linear-gradient(90deg, #00b4db, #0083b0);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.05em;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.connect-button:hover {
    background: linear-gradient(90deg, #0083b0, #00b4db);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 180, 219, 0.6);
}

.connect-button:active {
    transform: translateY(-1px);
}

.connect-button.disabled {
    background: linear-gradient(90deg, #666, #555);
    cursor: not-allowed;
    opacity: 0.6;
}

.connect-button.disabled:hover {
    transform: none;
    box-shadow: none;
}

.server-details {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: #88e8fd;
    font-weight: 600;
    font-size: 0.95em;
}

.detail-value {
    color: #fff;
    font-family: monospace;
    font-size: 0.95em;
}

.map-name {
    text-transform: lowercase;
    font-family: monospace;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 1.2em;
    color: #88e8fd;
}

.button-group {
    margin-top: 15px;
}

.refresh-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(90deg, #88e8fd, #0dbce4);
    color: #111;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(136, 232, 253, 0.3);
}

.refresh-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(136, 232, 253, 0.5);
}

.refresh-button:active {
    transform: translateY(0);
}

.refresh-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.refresh-button svg {
    transition: transform 0.6s ease;
}

.refresh-button.refreshing svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.auto-refresh-timer {
    text-align: center;
    color: #88e8fd;
    font-size: 0.9em;
    margin-bottom: 20px;
    opacity: 0.8;
    font-weight: 500;
}

.auto-refresh-timer span {
    font-weight: 700;
    color: #fff;
    background: rgba(136, 232, 253, 0.2);
    padding: 2px 8px;
    border-radius: 8px;
    font-family: monospace;
}

.player-list-container {
    margin: 20px 0;
}

.toggle-players-btn {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(136, 232, 253, 0.3);
    border-radius: 12px;
    color: #88e8fd;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.toggle-players-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #88e8fd;
    transform: translateY(-2px);
}

.toggle-players-btn .chevron {
    transition: transform 0.3s ease;
}

.toggle-players-btn .chevron.rotated {
    transform: rotate(180deg);
}

.player-list {
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.player-list.hidden {
    display: none;
}

.player-list-header {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 15px;
    padding: 10px 15px;
    background: rgba(136, 232, 253, 0.1);
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #88e8fd;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.player-header-name {
    text-align: left;
}

.player-header-stat {
    text-align: center;
    min-width: 60px;
}

.player-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInPlayer 0.3s ease forwards;
}

@keyframes fadeInPlayer {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.player-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.player-item:last-child {
    margin-bottom: 0;
}

.player-name {
    color: #fff;
    font-weight: 500;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.staff-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}

.player-stat {
    color: #88e8fd;
    font-weight: 600;
    text-align: center;
    min-width: 60px;
    font-family: monospace;
}

.player-streak {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 60px;
}

.streak-badge {
    color: #ff6b35;
    padding: 4px 8px;
    font-size: 0.9em;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.streak-badge:hover {
    transform: scale(1.1);
}

.player-item:hover .streak-badge {
    animation: pulse-streak 0.6s ease;
}

@keyframes pulse-streak {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.player-list::-webkit-scrollbar {
    width: 8px;
}

.player-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.player-list::-webkit-scrollbar-thumb {
    background: rgba(136, 232, 253, 0.3);
    border-radius: 4px;
}

.player-list::-webkit-scrollbar-thumb:hover {
    background: rgba(136, 232, 253, 0.5);
}

.server-selector {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.server-select-btn {
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(136, 232, 253, 0.3);
    border-radius: 25px;
    color: #fff;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.server-select-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #88e8fd;
    transform: translateY(-2px);
}

.server-select-btn.active {
    background: linear-gradient(90deg, #88e8fd, #0dbce4);
    color: #111;
    border-color: #88e8fd;
}

.period-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.period-btn {
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(136, 232, 253, 0.3);
    border-radius: 20px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.period-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #88e8fd;
}

.period-btn.active {
    background: rgba(136, 232, 253, 0.2);
    border-color: #88e8fd;
    color: #88e8fd;
}

.chart-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    height: 400px;
    position: relative;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.summary-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 2px solid rgba(136, 232, 253, 0.2);
    transition: all 0.3s ease;
}

.summary-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #88e8fd;
    transform: translateY(-5px);
}

.summary-label {
    color: #88e8fd;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.summary-value {
    color: #fff;
    font-size: 2.5em;
    font-weight: 700;
}

.leaderboard-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.leaderboard-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(136, 232, 253, 0.3);
    border-radius: 25px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.leaderboard-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #88e8fd;
    transform: translateY(-2px);
}

.leaderboard-btn.active {
    background: linear-gradient(90deg, #88e8fd, #0dbce4);
    color: #111;
    border-color: #88e8fd;
}

.leaderboard-content {
    min-height: 400px;
}

.leaderboard-header {
    text-align: center;
    margin-bottom: 30px;
}

.leaderboard-header h2 {
    color: #88e8fd;
    font-size: 2em;
    margin-bottom: 10px;
}

.leaderboard-desc {
    color: #ccc;
    font-size: 1em;
    margin: 0;
}

.leaderboard-table {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 80px 1fr repeat(3, 120px);
    gap: 15px;
    padding: 15px 20px;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.leaderboard-row:last-child {
    border-bottom: none;
}

.leaderboard-row.header-row {
    background: rgba(136, 232, 253, 0.1);
    font-weight: 700;
    color: #88e8fd;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1px;
}

.leaderboard-row:not(.header-row):hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.leaderboard-row.gold {
    background: rgba(255, 215, 0, 0.1);
}

.leaderboard-row.silver {
    background: rgba(192, 192, 192, 0.1);
}

.leaderboard-row.bronze {
    background: rgba(205, 127, 50, 0.1);
}

.rank-col {
    text-align: center;
    font-weight: 700;
    font-size: 1.3em;
}

.rank-gold {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.rank-silver {
    color: #C0C0C0;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.rank-bronze {
    color: #CD7F32;
    text-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

.player-col {
    color: #fff;
    font-weight: 600;
    font-size: 1.1em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-col {
    text-align: center;
    color: #88e8fd;
    font-weight: 600;
    font-family: monospace;
}

.stat-col .highlight {
    color: #ff6b35;
    font-weight: 700;
}

.no-data {
    text-align: center;
    padding: 60px 20px;
    color: #88e8fd;
    font-size: 1.2em;
}

.staff-category {
    margin: 60px 0;
}

.staff-category h2 {
    color: #fff;
    font-size: 2.2em;
    margin-bottom: 25px;
    text-align: center;
    background: linear-gradient(90deg, #88e8fd, #0dbce4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.staff-category h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #88e8fd, #0dbce4);
    border-radius: 2px;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.staff-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 25px;
    padding: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.staff-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.rank-helpers.container {
    border-color: #4CAF50;
}

.rank-moderators:hover {
    border-color: #2196F3;
}

.rank-admins:hover {
    border-color: #FF9800;
}

.rank-management:hover {
    border-color: #f72f28;
}

.staff-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    font-size: 3em;
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #88e8fd;
}

.staff-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.staff-card h3 {
    color: #fff;
    margin-bottom: 1px;
    font-size: 1.5em;
}

.staff-role {
    color: #00d0ff;
    font-weight: 600;
    font-size: 1em;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.staff-description {
    color: #ccc;
    line-height: 1.4;
    font-size: 1em;
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.steam-link {
    display: inline-block;
    padding: 10px 22px;
    background: linear-gradient(90deg, #88e8fd, #0dbce4);
    color: #111;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: auto;
}

.steam-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgb(112, 200, 218, 0.6);
}

/* Combined selector for server and tabs */
.combined-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin: 30px 0 25px;
    flex-wrap: wrap;
}

.selector-divider {
    width: 2px;
    height: 40px;
    background: rgba(136, 232, 253, 0.3);
    margin: 0 5px;
}

.map-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 0 0 25px;
    flex-wrap: wrap;
}

.map-tab-btn {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(136, 232, 253, 0.3);
    border-radius: 25px;
    color: #fff;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-tab-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #88e8fd;
    transform: translateY(-2px);
}

.map-tab-btn.active {
    background: linear-gradient(90deg, #88e8fd, #0dbce4);
    color: #111;
    border-color: #88e8fd;
}

.map-tab-content {
    display: none;
}

.map-tab-content.active {
    display: block;
}

.map-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.map-card {
    background: rgba(20, 30, 48, 0.6);
    border: 2px solid rgba(136, 232, 253, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    
}

.map-card:hover {
    border-color: #88e8fd;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(136, 232, 253, 0.3);
}

.map-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.map-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(20, 30, 48, 0.8));
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 15px;
}

.map-card.rank-1 {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.08);
}

.map-card.rank-2 {
    border-color: #C0C0C0;
    background: rgba(192, 192, 192, 0.08);
}

.map-card.rank-3 {
    border-color: #CD7F32;
    background: rgba(205, 127, 50, 0.08);
}

.map-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(136, 232, 253, 0.2);
}

.map-card-body {
    padding: 20px;
}

.map-rank {
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.map-card.rank-1 .map-rank {
    color: #FFD700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.map-card.rank-2 .map-rank {
    color: #C0C0C0;
    text-shadow: 0 0 15px rgba(192, 192, 192, 0.6);
}

.map-card.rank-3 .map-rank {
    color: #CD7F32;
    text-shadow: 0 0 15px rgba(205, 127, 50, 0.6);
}

.map-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.map-stat-item {
    text-align: center;
}

.map-stat-label {
    font-size: 0.75em;
    color: #88e8fd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    font-weight: 600;
}

.map-stat-value {
    font-size: 1.8em;
    font-weight: 700;
    color: #fff;
}

.map-stat-sub {
    font-size: 0.75em;
    color: #ccc;
    margin-top: 3px;
}

.map-popularity-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.map-popularity-fill {
    height: 100%;
    background: linear-gradient(90deg, #88e8fd, #0dbce4);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.map-card.rank-1 .map-popularity-fill {
    background: linear-gradient(90deg, #FFD700, #FFA500);
}

.map-card.rank-2 .map-popularity-fill {
    background: linear-gradient(90deg, #C0C0C0, #A0A0A0);
}

.map-card.rank-3 .map-popularity-fill {
    background: linear-gradient(90deg, #CD7F32, #B87333);
}

.map-last-seen {
    text-align: center;
    font-size: 0.85em;
    color: #88e8fd;
    font-weight: 500;
}

.map-history-timeline {
    max-width: 800px;
    margin: 30px auto;
    position: relative;
    padding-left: 40px;
}

.map-history-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #88e8fd, rgba(136, 232, 253, 0.2));
}

.history-entry {
    position: relative;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 2px solid rgba(136, 232, 253, 0.2);
    transition: all 0.3s ease;
}

.history-entry:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #88e8fd;
    transform: translateX(5px);
}

.history-entry.recent {
    background: rgba(136, 232, 253, 0.1);
    border-color: #88e8fd;
}

.history-marker {
    position: absolute;
    left: -29px;
    top: 25px;
    width: 18px;
    height: 18px;
    background: #88e8fd;
    border: 3px solid #0a1628;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(136, 232, 253, 0.6);
}

.history-entry.recent .history-marker {
    background: #00ff7f;
    box-shadow: 0 0 20px rgba(0, 255, 127, 0.8);
    animation: pulse-marker 2s infinite;
}

@keyframes pulse-marker {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.history-time {
    color: #88e8fd;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 10px;
}

.history-map {
    font-size: 1.3em;
    font-weight: 700;
    color: #fff;
    font-family: monospace;
    text-transform: lowercase;
    margin-bottom: 5px;
}

.history-change {
    color: #ccc;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.history-players {
    color: #88e8fd;
    font-size: 0.85em;
    font-weight: 600;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .steam-login-btn {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .steam-login-btn img {
        height: 30px;
    }

    .section {
        padding: 150px 15px 40px;
    }

    .container {
        padding: 40px 20px;
        margin: 10px;
    }

    h1 {
        font-size: 2.5em;
    }

    .description {
        font-size: 1.1em;
    }

    .server-titles {
        font-size: 1.3em;
    }

    .server-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .server-info-cards {
        grid-template-columns: 1fr;
    }

    .leaderboard-row {
        grid-template-columns: 60px 1fr;
        gap: 10px;
        font-size: 0.9em;
    }

    .stat-col {
        display: none;
    }

    .player-col {
        font-size: 1em;
    }

    .staff-category h2 {
        font-size: 1.8em;
    }

    .staff-grid {
        grid-template-columns: 1fr;
    }

    .map-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .map-stats {
        grid-template-columns: 1fr;
    }
    
    .map-history-timeline {
        padding-left: 30px;
    }
    
    .map-history-timeline::before {
        left: 15px;
    }
    
    .history-marker {
        left: 0px;
    }
}

@media (max-width: 480px) {
    .nav-link {
        padding: 8px 12px;
        font-size: 0.9em;
    }

    .container {
        padding: 20px 15px;
    }

    .server-titles {
        font-size: 1.1em;
    }

    .info-value {
        font-size: 1.2em;
    }
}

/* User Dropdown Styles - Add to end of styles.css */

.user-dropdown {
    position: relative;
    flex-shrink: 0;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(136, 232, 253, 0.3);
    border-radius: 25px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-profile-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #88e8fd;
    transform: translateY(-2px);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #88e8fd;
}

.user-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-chevron {
    transition: transform 0.3s ease;
}

.user-profile-btn:hover .dropdown-chevron {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: rgba(16, 36, 68, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 15px;
    border: 2px solid rgba(136, 232, 253, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background: rgba(136, 232, 253, 0.1);
    border-left-color: #88e8fd;
}

.dropdown-item.logout {
    color: #ff6b6b;
}

.dropdown-item.logout:hover {
    background: rgba(255, 107, 107, 0.1);
    border-left-color: #ff6b6b;
}

.dropdown-item svg {
    flex-shrink: 0;
}

.dropdown-divider {
    height: 1px;
    background: rgba(136, 232, 253, 0.2);
    margin: 5px 0;
}

@media (max-width: 768px) {
    .user-name {
        display: none;
    }
    
    .dropdown-menu {
        right: -10px;
    }
}

/* Admin Panel Styles - Add to end of styles.css */

.admin-actions {
    margin: 30px 0;
    display: flex;
    justify-content: flex-end;
}

.admin-staff-table {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
}

.admin-staff-header {
    display: grid;
    grid-template-columns: 200px 150px 120px 1fr 180px;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(136, 232, 253, 0.1);
    font-weight: 700;
    color: #88e8fd;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1px;
}

.admin-staff-row {
    display: grid;
    grid-template-columns: 200px 150px 120px 1fr 180px;
    gap: 15px;
    padding: 15px 20px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.admin-staff-row:last-child {
    border-bottom: none;
}

.admin-staff-row:hover {
    background: rgba(255, 255, 255, 0.08);
}

.staff-steamid {
    font-family: monospace;
    font-size: 0.9em;
    color: #88e8fd;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: capitalize;
}

.category-management {
    background: rgba(247, 47, 40, 0.2);
    color: #ff6b6b;
}

.category-admins {
    background: rgba(255, 152, 0, 0.2);
    color: #ffa726;
}

.category-moderators {
    background: rgba(33, 150, 243, 0.2);
    color: #64b5f6;
}

.category-helpers {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
}

.staff-desc {
    color: #ccc;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.staff-actions {
    display: flex;
    gap: 10px;
}

.btn-edit, .btn-delete {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit {
    background: rgba(136, 232, 253, 0.2);
    color: #88e8fd;
}

.btn-edit:hover {
    background: rgba(136, 232, 253, 0.3);
    transform: translateY(-2px);
}

.btn-delete {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.btn-delete:hover {
    background: rgba(255, 107, 107, 0.3);
    transform: translateY(-2px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1a2744 0%, #0a1628 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    border: 2px solid rgba(136, 232, 253, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #88e8fd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.modal-content h2 {
    color: #88e8fd;
    margin-bottom: 25px;
    font-size: 1.8em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #88e8fd;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(136, 232, 253, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 1em;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #88e8fd;
    background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

.form-group input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(90deg, #88e8fd, #0dbce4);
    color: #111;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(136, 232, 253, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(136, 232, 253, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
    .admin-staff-header,
    .admin-staff-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .admin-staff-header {
        display: none;
    }
    
    .staff-actions {
        justify-content: flex-start;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
}

/* Admin Panel Styles - Add to end of styles.css */

.admin-actions {
    margin: 30px 0;
    display: flex;
    justify-content: flex-end;
}


.admin-staff-table {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
}

.admin-staff-header {
    display: grid;
    grid-template-columns: 180px 200px 150px 120px 1fr 180px;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(136, 232, 253, 0.1);
    font-weight: 700;
    color: #88e8fd;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1px;
}

.admin-staff-row {
    display: grid;
    grid-template-columns: 180px 200px 150px 120px 1fr 180px;
    gap: 15px;
    padding: 15px 20px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.admin-staff-row:last-child {
    border-bottom: none;
}

.admin-staff-row:hover {
    background: rgba(255, 255, 255, 0.08);
}


.staff-role {
    color: #fff;
    font-weight: 500;
}

.category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: capitalize;
}

.category-management {
    background: rgba(247, 47, 40, 0.2);
    color: #ff6b6b;
}

.category-admins {
    background: rgba(255, 152, 0, 0.2);
    color: #ffa726;
}

.category-moderators {
    background: rgba(33, 150, 243, 0.2);
    color: #64b5f6;
}

.category-helpers {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
}

.staff-desc {
    color: #ccc;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.staff-actions {
    display: flex;
    gap: 10px;
}

.btn-edit, .btn-delete {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit {
    background: rgba(136, 232, 253, 0.2);
    color: #88e8fd;
}

.btn-edit:hover {
    background: rgba(136, 232, 253, 0.3);
    transform: translateY(-2px);
}

.btn-delete {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.btn-delete:hover {
    background: rgba(255, 107, 107, 0.3);
    transform: translateY(-2px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1a2744 0%, #0a1628 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    border: 2px solid rgba(136, 232, 253, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #88e8fd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.modal-content h2 {
    color: #88e8fd;
    margin-bottom: 25px;
    font-size: 1.8em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #88e8fd;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(136, 232, 253, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 1em;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #88e8fd;
    background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

.form-group input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(90deg, #88e8fd, #0dbce4);
    color: #111;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(136, 232, 253, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(136, 232, 253, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
    .admin-staff-header,
    .admin-staff-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .admin-staff-header {
        display: none;
    }
    
    .staff-actions {
        justify-content: flex-start;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
}

/* Forum Styles */
.forum-categories {
    margin-top: 30px;
}

.forum-category {
    display: grid;
    grid-template-columns: 60px 1fr 200px 180px;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    margin-bottom: 15px;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.forum-category:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #88e8fd;
    transform: translateX(5px);
}

.category-icon svg {
    color: #88e8fd;
}

.category-info h2 {
    margin: 0 0 8px 0;
    font-size: 1.4em;
}

.category-info h2 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-info h2 a:hover {
    color: #88e8fd;
}

.category-desc {
    color: #ccc;
    font-size: 0.95em;
    margin: 0;
}

.category-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 1.8em;
    font-weight: 700;
    color: #88e8fd;
}

.stat-label {
    font-size: 0.85em;
    color: #ccc;
    text-transform: uppercase;
}

.category-activity {
    text-align: right;
}

.activity-label {
    font-size: 0.85em;
    color: #88e8fd;
    margin-bottom: 5px;
}

.activity-time {
    color: #fff;
    font-size: 0.9em;
}

.forum-breadcrumb {
    margin-bottom: 20px;
    color: #88e8fd;
    font-size: 0.95em;
}

.forum-breadcrumb a {
    color: #88e8fd;
    text-decoration: none;
}

.forum-breadcrumb a:hover {
    text-decoration: underline;
}

.forum-breadcrumb span {
    margin: 0 10px;
    color: #666;
}

.forum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.forum-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(90deg, #88e8fd, #0dbce4);
    color: #111;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.forum-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(136, 232, 253, 0.5);
}

.threads-table {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
}

.thread-row {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
    transition: all 0.3s ease;
}

.thread-row:last-child {
    border-bottom: none;
}

.thread-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.thread-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.2em;
}

.thread-info h3 a {
    color: #fff;
    text-decoration: none;
}

.thread-info h3 a:hover {
    color: #88e8fd;
}

.thread-pinned, .thread-locked {
    margin-right: 8px;
}

.thread-meta {
    color: #ccc;
    font-size: 0.9em;
}

.thread-meta .author {
    color: #88e8fd;
    font-weight: 600;
}

.thread-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.thread-activity {
    text-align: right;
}

.activity-author {
    color: #88e8fd;
    font-weight: 600;
    margin-bottom: 5px;
}

.forum-post {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    margin-bottom: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.post-author {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.author-name {
    color: #88e8fd;
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.post-date {
    color: #ccc;
    font-size: 0.85em;
}

.post-content {
    padding: 10px;
}

.post-text {
    color: #fff;
    line-height: 1.6;
    margin-bottom: 15px;
}

.edited-badge {
    color: #88e8fd;
    font-size: 0.85em;
    font-style: italic;
    display: block;
    margin-bottom: 10px;
}

.post-actions {
    display: flex;
    gap: 10px;
}

.post-action-btn {
    padding: 6px 14px;
    background: rgba(136, 232, 253, 0.2);
    color: #88e8fd;
    border: none;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.post-action-btn:hover {
    background: rgba(136, 232, 253, 0.3);
}

.post-action-btn.delete {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.post-action-btn.delete:hover {
    background: rgba(255, 107, 107, 0.3);
}

.reply-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.reply-section h3 {
    color: #88e8fd;
    margin-bottom: 15px;
}

.thread-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.thread-controls {
    display: flex;
    gap: 10px;
}

.admin-control-btn {
    padding: 8px 16px;
    background: rgba(136, 232, 253, 0.2);
    color: #88e8fd;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-control-btn:hover {
    background: rgba(136, 232, 253, 0.3);
}

.admin-control-btn.delete {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

@media (max-width: 768px) {
    .forum-category,
    .thread-row {
        grid-template-columns: 1fr;
    }
    
    .forum-post {
        grid-template-columns: 1fr;
    }
    
    .category-stats {
        justify-content: flex-start;
    }
    
    .thread-stats,
    .category-activity,
    .thread-activity {
        text-align: left;
    }
}

/* Forum Permissions Styles */
.section-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.tab-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(136, 232, 253, 0.3);
    border-radius: 25px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #88e8fd;
}

.tab-btn.active {
    background: linear-gradient(90deg, #88e8fd, #0dbce4);
    color: #111;
    border-color: #88e8fd;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.permission-list {
    margin-top: 20px;
}

.permission-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid rgba(136, 232, 253, 0.2);
}

.permission-card h3 {
    color: #88e8fd;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.permission-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.perm-type {
    color: #88e8fd;
    font-weight: 600;
    text-transform: capitalize;
    min-width: 80px;
}

.perm-level {
    color: #fff;
    font-size: 0.9em;
    flex: 1;
    margin: 0 15px;
}

.permission-item .btn-edit {
    margin-left: auto;
}

@media (max-width: 768px) {
    .permission-grid {
        grid-template-columns: 1fr;
    }
    
    .permission-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .perm-level {
        margin: 5px 0;
    }
    
    .permission-item .btn-edit {
        width: 100%;
        margin-left: 0;
    }
}

/* Dropdown/Select styling */
select option {
    background: #1a2744;
    color: #fff;
}

select optgroup {
    background: #0a1628;
    color: #88e8fd;
    font-weight: 600;
}

/* For Firefox */
select {
    color-scheme: dark;
}

/* Ensure all select elements have proper styling */
.form-group select option {
    background: #1a2744;
    color: #fff;
    padding: 10px;
}

.form-group select option:hover,
.form-group select option:checked {
    background: rgba(136, 232, 253, 0.2);
    color: #fff;
}

/* Original Post Styling */
.forum-post.original-post {
    border: 3px solid rgba(136, 232, 253, 0.4);
    background: rgba(136, 232, 253, 0.05);
}

.forum-post.original-post .post-author {
    background: rgba(136, 232, 253, 0.15);
}

.op-badge-small {
    background: rgba(171, 71, 188, 0.15);
    color: #ce93d8;
    padding: 2px 8px;
    border-radius: 8px;
    border: 1px solid rgba(171, 71, 188, 0.4);
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* User Rank Badges */
.author-rank {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 8px 0;
    display: inline-block;
}

.rank-management {
    background: rgba(247, 47, 40, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(247, 47, 40, 0.4);
}

.rank-admins {
    background: rgba(255, 152, 0, 0.2);
    color: #ffa726;
    border: 1px solid rgba(255, 152, 0, 0.4);
}

.rank-moderators {
    background: rgba(33, 150, 243, 0.2);
    color: #64b5f6;
    border: 1px solid rgba(33, 150, 243, 0.4);
}

.rank-helpers {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.rank-user {
    background: rgba(128, 128, 128, 0.2);
    color: #9e9e9e;
    border: 1px solid rgba(128, 128, 128, 0.3);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(90deg, #88e8fd, #0dbce4);
    color: #111;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(136, 232, 253, 0.5);
}

.back-to-top:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* Reputation Styling */
.author-reputation {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 8px 0;
    color: #88e8fd;
    font-size: 0.9em;
    font-weight: 600;
}

.rep-count {
    color: #fff;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.reputation-buttons {
    display: flex;
    gap: 8px;
}

.rep-btn {
    padding: 6px 12px;
    border: 2px solid rgba(136, 232, 253, 0.3);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    color: #88e8fd;
    font-size: 0.85em;
    font-weight: 600;
}

.rep-btn:hover {
    background: rgba(136, 232, 253, 0.15);
    border-color: #88e8fd;
    transform: translateY(-2px);
}

.rep-btn.active {
    background: rgba(136, 232, 253, 0.2);
    border-color: #88e8fd;
    color: #88e8fd;
}

.rep-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .post-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* Make forum categories clickable */
.forum-category {
    cursor: pointer;
    user-select: none;
}

.forum-category * {
    pointer-events: none;
}

/* Make thread rows clickable */
.thread-row {
    cursor: pointer;
    user-select: none;
}

.thread-row * {
    pointer-events: none;
}

/* Enhance hover effects */
.forum-category:active {
    transform: translateX(3px);
}

.thread-row:active {
    background: rgba(255, 255, 255, 0.08);
}

/* Post Limits Styling */
.limit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 15px;
    border: 2px solid rgba(136, 232, 253, 0.2);
}

.limit-info {
    flex: 1;
}

.limit-rank {
    color: #88e8fd;
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.limit-desc {
    color: #ccc;
    font-size: 0.9em;
}

.limit-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.limit-input {
    width: 120px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(136, 232, 253, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 1em;
    text-align: center;
}

.limit-input:focus {
    outline: none;
    border-color: #88e8fd;
}

.limit-label {
    color: #88e8fd;
    font-size: 0.9em;
    min-width: 80px;
}

/* Character Counter */
.character-counter {
    text-align: right;
    color: #88e8fd;
    font-size: 0.85em;
    margin-top: 5px;
    font-weight: 600;
}

.character-counter span {
    font-family: monospace;
}

@media (max-width: 768px) {
    .limit-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .limit-input-group {
        width: 100%;
        justify-content: space-between;
    }
}

/* Category Management Styles */
.categories-manage-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.category-manage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 2px solid rgba(136, 232, 253, 0.2);
    transition: all 0.3s ease;
}

.category-manage-item:hover {
    border-color: rgba(136, 232, 253, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.category-manage-info {
    flex: 1;
}

.category-manage-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.category-manage-header h4 {
    margin: 0;
    color: #88e8fd;
    font-size: 1.1em;
}

.category-order-badge {
    background: rgba(136, 232, 253, 0.2);
    color: #88e8fd;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
}

.category-manage-desc {
    margin: 0;
    color: #ccc;
    font-size: 0.9em;
}

.category-manage-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-icon {
    padding: 8px 12px;
    background: rgba(136, 232, 253, 0.1);
    border: 2px solid rgba(136, 232, 253, 0.3);
    border-radius: 8px;
    color: #88e8fd;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: rgba(136, 232, 253, 0.2);
    border-color: #88e8fd;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .category-manage-item {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .category-manage-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Navbar Dropdown Styles */
.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 18px; /* Match other nav-link padding */
}

.nav-chevron {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: -2px; /* Tighten spacing */
}

.nav-dropdown:hover .nav-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: rgba(16, 36, 68, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 15px;
    border: 2px solid rgba(136, 232, 253, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-dropdown-item:hover {
    background: rgba(136, 232, 253, 0.1);
    border-left-color: #88e8fd;
    color: #88e8fd;
}

@media (max-width: 768px) {
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 10px;
        width: 100%;
    }
    
    .nav-dropdown:hover .nav-chevron {
        transform: none;
    }
}

/* Permission Tooltip Styles */
.perm-type-container {
    position: relative;
    display: inline-block;
}

.perm-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(16, 36, 68, 0.98);
    color: #fff;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.85em;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    border: 2px solid rgba(136, 232, 253, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.perm-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(136, 232, 253, 0.3);
}

.perm-type-container:hover .perm-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 15px);
}

.perm-type {
    cursor: help;
    border-bottom: 1px dotted rgba(136, 232, 253, 0.5);
}

@media (max-width: 768px) {
    .perm-tooltip {
        white-space: normal;
        max-width: 200px;
        left: 0;
        transform: none;
    }
    
    .perm-tooltip::after {
        left: 20px;
        transform: none;
    }
}

/* Fix for admin modal buttons */
.modal * {
    pointer-events: auto !important;
}

.modal .btn-primary,
.modal .btn-secondary,
.modal .modal-close,
.modal button {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Thread List Styles */
.threads-grouped-list {
    margin-top: 20px;
}

.thread-category-group {
    margin-bottom: 30px;
}

.thread-category-header {
    color: #88e8fd;
    font-size: 1.2em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(136, 232, 253, 0.3);
}

.thread-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thread-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 2px solid rgba(136, 232, 253, 0.2);
    transition: all 0.3s ease;
}

.thread-list-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #88e8fd;
    transform: translateX(5px);
}

.thread-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.thread-item-title {
    color: #fff;
    font-weight: 600;
    font-size: 1em;
}

.thread-item-meta {
    color: #88e8fd;
    font-size: 0.85em;
}

@media (max-width: 768px) {
    .thread-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .thread-list-item button {
        width: 100%;
    }
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(136, 232, 253, 0.3);
}

/* Markdown Toolbar */
.markdown-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(136, 232, 253, 0.2);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
}

.toolbar-btn {
    padding: 8px 12px;
    background: rgba(136, 232, 253, 0.1);
    border: 1px solid rgba(136, 232, 253, 0.3);
    border-radius: 5px;
    color: #88e8fd;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s ease;
    min-width: 36px;
    max-width: 44px; /* ADD THIS LINE */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.toolbar-btn:hover {
    background: rgba(136, 232, 253, 0.2);
    border-color: #88e8fd;
    transform: translateY(-2px);
}

.toolbar-btn:active {
    transform: translateY(0);
}

.toolbar-divider {
    width: 1px;
    height: 30px;
    background: rgba(136, 232, 253, 0.3);
    margin: 0 5px;
}

.markdown-preview {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(136, 232, 253, 0.2);
    border-radius: 10px;
    min-height: 150px;
    color: #fff;
    line-height: 1.6;
}

.markdown-preview h1 {
    font-size: 2em;
    margin: 0.5em 0;
    color: #88e8fd;
}

.markdown-preview h2 {
    font-size: 1.5em;
    margin: 0.5em 0;
    color: #88e8fd;
}

.markdown-preview code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.markdown-preview pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.markdown-preview blockquote {
    border-left: 4px solid #88e8fd;
    padding-left: 15px;
    margin: 15px 0;
    color: #ccc;
}

.markdown-preview a {
    color: #88e8fd;
    text-decoration: underline;
}

.markdown-preview ul, .markdown-preview ol {
    padding-left: 30px;
}

#replyContent, #editPostContent {
    border-radius: 0 0 10px 10px;
    border-top: none;
}

.post-text {
    text-align: left;
}

.markdown-preview {
    text-align: left;
}

.markdown-preview p {
    text-align: left;
}

/* Blockquote styling for posts */
.post-text blockquote {
    border-left: 4px solid #88e8fd;
    padding-left: 15px;
    margin: 15px 0;
    color: #ccc;
    font-style: italic;
    background: rgba(136, 232, 253, 0.05);
    border-radius: 0 5px 5px 0;
}

.post-text blockquote p {
    margin: 10px 0;
}

.toolbar-dropdown {
    position: relative;
    display: inline-block;
}

.toolbar-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(20, 30, 48, 0.98);
    border: 2px solid rgba(136, 232, 253, 0.3);
    border-radius: 8px;
    min-width: 160px;
    z-index: 1000;
    margin-top: 2px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.toolbar-dropdown-menu.show {
    display: block;
}

.toolbar-dropdown:hover .toolbar-dropdown-menu {
    display: block;
}

.toolbar-dropdown-menu .dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background: transparent;
    border: none;
    color: #88e8fd;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.toolbar-dropdown-menu .dropdown-item:hover {
    background: rgba(136, 232, 253, 0.2);
}

.toolbar-dropdown-menu .dropdown-item:first-child {
    border-radius: 6px 6px 0 0;
}

.toolbar-dropdown-menu .dropdown-item:last-child {
    border-radius: 0 0 6px 6px;
}

/* Toolbar dropdown styling */
.toolbar-dropdown {
    position: relative;
    display: inline-block;
}

.toolbar-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(20, 30, 48, 0.98);
    border: 2px solid rgba(136, 232, 253, 0.3);
    border-radius: 8px;
    min-width: 160px;
    z-index: 1000;
    margin-top: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.toolbar-dropdown:hover .toolbar-dropdown-menu {
    display: block;
}

.toolbar-dropdown-menu .dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background: transparent;
    border: none;
    color: #88e8fd;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.toolbar-dropdown-menu .dropdown-item:hover {
    background: rgba(136, 232, 253, 0.2);
}

.toolbar-dropdown-menu .dropdown-item:first-child {
    border-radius: 6px 6px 0 0;
}

.toolbar-dropdown-menu .dropdown-item:last-child {
    border-radius: 0 0 6px 6px;
}

/* Blockquote styling for rendered posts */
.post-text blockquote {
    border-left: 4px solid #88e8fd;
    padding-left: 15px;
    margin: 15px 0;
    color: #ccc;
    font-style: italic;
    background: rgba(136, 232, 253, 0.05);
    border-radius: 0 5px 5px 0;
    padding: 10px 15px;
}

.post-text blockquote p {
    margin: 5px 0;
}

/* List styling in posts */
.post-text ul,
.post-text ol {
    margin: 10px 0;
    padding-left: 30px;
}

.post-text li {
    margin: 5px 0;
    line-height: 1.6;
}
