* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    color: #333333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: #364565;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-social-circles {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.2s, opacity 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.social-circle:hover {
    transform: scale(1.15);
    opacity: 0.9;
}

.social-circle img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 0;
}

.header-logo img {
    max-height: 80px;
    width: auto;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #e0e0e0;
    font-size: 14px;
}

.btn-logout {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 13px;
    transition: background 0.2s;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Main layout */
.main-wrapper {
    display: flex;
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    gap: 20px;
}

/* Sidebar left */
.sidebar-left {
    width: 220px;
    flex-shrink: 0;
    background: #F5F7FA;
    border-radius: 8px;
    padding: 10px;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav ul li {
    margin-bottom: 5px;
}

.sidebar-nav ul li a {
    display: block;
    padding: 12px 18px;
    color: #3B4A7F;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.sidebar-nav ul li a:hover {
    background: #e8ecf1;
    color: #3B4A7F;
}

.sidebar-nav ul li.active a {
    background: #364565;
    color: #fff;
    font-weight: 600;
}

/* Content */
.content {
    flex: 1;
    background: #F5F7FA;
    border-radius: 8px;
    padding: 30px 35px;
    min-height: 400px;
    overflow-x: auto;
}

/* Sidebar right */
.sidebar-right {
    width: 220px;
    flex-shrink: 0;
    background: #F5F7FA;
    border-radius: 8px;
    padding: 10px;
}

.widget {
    background: #F5F7FA;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 15px;
    text-align: center;
}

.widget h3 {
    color: #3B4A7F;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.widget p {
    font-size: 13px;
    margin-bottom: 5px;
    color: #3B4A7F;
    font-weight: 500;
}

.status-online {
    color: #4caf50;
    font-weight: 600;
}

/* Footer */
.footer {
    background: #364565;
    text-align: center;
    padding: 15px;
    color: #ccd6e0;
    font-size: 13px;
}


/* Profile table */
.profile-table {
    width: 100%;
    margin: 15px auto 0 auto;
    border-collapse: collapse;
}

.profile-table thead tr {
    background: #364565;
    color: #fff;
}

.profile-table thead th {
    padding: 10px 15px;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
}

.profile-table tr {
    border-bottom: 1px solid #e0e4e8;
}

.profile-table tbody tr {
    background: #fff;
}

.profile-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.profile-table td {
    padding: 12px 15px;
    font-size: 14px;
    text-align: center;
}

.profile-label {
    font-weight: 700;
    color: #3B4A7F;
    text-align: center;
    width: 50%;
}

.profile-value {
    color: #3B4A7F;
    font-weight: 500;
    text-align: center;
}

.profile-value input[type="text"],
.profile-value input[type="number"],
.profile-value input[type="password"],
.profile-value select,
.profile-value textarea {
    text-align: center;
}

.content h1 {
    color: #3B4A7F;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}


.status-offline {
    color: #dc3545;
    font-weight: 600;
}

.server-hostname {
    font-size: 12px;
    color: #3B4A7F;
    font-weight: 700;
    margin-bottom: 8px;
}


.online-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.online-list li {
    padding: 5px 0;
    font-size: 13px;
    color: #3B4A7F;
    font-weight: 500;
    border-bottom: 1px solid #e8ecf1;
}

.online-list li:last-child {
    border-bottom: none;
}


.profile-skin-circle {
    text-align: center;
    margin: 15px 0;
    cursor: pointer;
}

.profile-skin-circle img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #364565;
    object-fit: cover;
    object-position: top;
    transition: transform 0.2s;
}

.profile-skin-circle img:hover {
    transform: scale(1.05);
}

/* Skin popup */
.skin-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.skin-popup {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    position: relative;
    max-width: 300px;
}

.skin-popup img {
    max-height: 350px;
    width: auto;
}

.skin-popup p {
    margin-top: 15px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.skin-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    line-height: 1;
}

.skin-popup-close:hover {
    color: #333;
}


.chart-container {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    max-width: 100%;
    position: relative;
    height: 300px;
}


.chart-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}

.chart-btn {
    padding: 8px 16px;
    background: #e8ecf1;
    color: #555;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    transition: background 0.2s, color 0.2s;
}

.chart-btn:hover {
    background: #d0d8e2;
    color: #333;
}

.chart-btn.active {
    background: #364565;
    color: #fff;
}


/* Achievements */
.achievements-title {
    color: #3B4A7F;
    font-size: 20px;
    margin: 30px 0 15px 0;
    padding-top: 20px;
    border-top: 1px solid #e0e4e8;
    text-align: center;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    justify-items: center;
}

.achievement-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px 10px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s;
}

.achievement-card:hover {
    transform: translateY(-3px);
}

.achievement-card.locked {
    opacity: 0.5;
}

.achievement-card.locked .achievement-icon i {
    color: #999;
}

.achievement-card.unlocked .achievement-icon i {
    color: #28a745;
}

.achievement-icon {
    margin-bottom: 10px;
}

.achievement-icon i {
    font-size: 36px;
}

.achievement-name {
    font-size: 12px;
    color: #3B4A7F;
    font-weight: 500;
    line-height: 1.3;
}


/* Section title */
.section-title {
    color: #3B4A7F;
    font-size: 20px;
    font-weight: 700;
    margin: 30px 0 15px 0;
    padding-top: 20px;
    border-top: 1px solid #e0e4e8;
    text-align: center;
}

/* Inventory */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 10px;
    justify-items: center;
}

.inventory-slot {
    background: #fff;
    border: 2px solid #364565;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    position: relative;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.inventory-slot.empty {
    border-color: #ddd;
    background: #fafafa;
}

.slot-number {
    position: absolute;
    top: 5px;
    left: 8px;
    font-size: 11px;
    color: #999;
    font-weight: 600;
}

.slot-name {
    font-size: 12px;
    color: #3B4A7F;
    font-weight: 700;
    line-height: 1.3;
}

.slot-name.empty-text {
    color: #ccc;
    font-weight: 400;
}

.slot-ammo {
    font-size: 11px;
    color: #364565;
    margin-top: 4px;
    font-weight: 700;
}


/* Ban table */
.ban-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ban-table thead tr {
    background: #364565;
    color: #fff;
}

.ban-table th {
    padding: 10px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
}

.ban-table tbody tr {
    border-bottom: 1px solid #e0e4e8;
    background: #fff;
}

.ban-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.ban-table tbody tr.ban-active {
    background: #fff5f5;
}

.ban-table td {
    padding: 10px 12px;
    color: #3B4A7F;
    font-weight: 500;
    text-align: center;
}

.ban-table .status-active {
    color: #dc3545;
    font-weight: 700;
}

.ban-table .status-inactive {
    color: #28a745;
    font-weight: 700;
}


/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #e8ecf1;
    color: #364565;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    transition: background 0.2s;
}

.page-btn:hover {
    background: #364565;
    color: #fff;
}

.page-current {
    font-size: 14px;
    font-weight: 700;
    color: #3B4A7F;
    padding: 0 10px;
}


/* Search form */
.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
    justify-content: center;
}

.search-form input[type="text"] {
    flex: 1;
    max-width: 350px;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.search-form input[type="text"]:focus {
    outline: none;
    border-color: #364565;
}

.search-form button {
    padding: 10px 20px;
    background: #364565;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-form button:hover {
    background: #2a3650;
}

.search-clear {
    padding: 10px 14px;
    color: #dc3545;
    text-decoration: none;
    font-size: 13px;
}

.search-clear:hover {
    text-decoration: underline;
}


/* Unban button */
.btn-unban {
    padding: 5px 12px;
    background: #28a745;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-unban:hover {
    background: #1e7e34;
}


/* Ranking tabs */
.rank-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}

.rank-tab {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ddd;
    color: #3B4A7F;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s;
}

.rank-tab:hover {
    background: #e8ecf1;
    color: #3B4A7F;
}

.rank-tab.active {
    background: #364565;
    color: #fff;
    border-color: #364565;
}

/* Ranking my position */
.rank-mypos {
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border: 2px solid #3B4A7F;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #3B4A7F;
}

.rank-me {
    background: #e8f4fd !important;
}


/* Sidebar categories */
.sidebar-category {
    background: #364565;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 18px;
    margin-top: 10px;
    text-align: center;
    border-radius: 6px;
}

.sidebar-category:first-child {
    margin-top: 0;
}


/* Faction cards */
.faction-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    justify-items: center;
}

.faction-card {
    background: #364565;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: #fff;
}

.faction-card-label {
    display: block;
    font-size: 12px;
    color: #a0b8d0;
    margin-bottom: 8px;
}

.faction-card-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
}


.btn-widget-edit {
    display: block;
    margin-top: 10px;
    padding: 6px 12px;
    background: #364565;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 11px;
    text-align: center;
    transition: background 0.2s;
}

.btn-widget-edit:hover {
    background: #2a3650;
}


.sidebar-divider {
    border: none;
    height: 2px;
    background: #364565;
    margin: 20px 10px;
    border-radius: 1px;
}


/* Mobile responsive */
@media (max-width: 992px) {
    .main-wrapper {
        flex-direction: column;
        padding: 10px;
    }

    .sidebar-left,
    .sidebar-right {
        width: 100%;
        order: 0;
    }

    .sidebar-left {
        order: 1;
    }

    .content {
        order: 2;
    }

    .sidebar-right {
        order: 3;
    }

    .faction-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .achievements-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ban-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .header-left {
        flex-direction: column;
        gap: 10px;
    }

    .header-social-circles {
        flex-direction: row;
    }

    .social-circle {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .header-logo img {
        max-height: 50px;
    }

    .header-user {
        font-size: 12px;
    }

    .main-wrapper {
        padding: 8px;
        gap: 10px;
    }

    .sidebar-left,
    .sidebar-right {
        padding: 8px;
    }

    .sidebar-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }

    .sidebar-nav ul li {
        margin-bottom: 0;
    }

    .sidebar-nav ul li a {
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap;
    }

    .sidebar-category {
        padding: 5px 10px;
        margin-top: 5px;
    }

    .sidebar-divider {
        margin: 8px 5px;
    }

    .content {
        padding: 15px;
        overflow-x: auto;
    }

    .content h1 {
        font-size: 18px;
    }

    .profile-table td {
        padding: 8px 10px;
        font-size: 13px;
    }

    .profile-label {
        width: 40%;
    }

    .faction-cards {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .faction-card {
        padding: 15px 10px;
    }

    .faction-card-value {
        font-size: 18px;
    }

    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .rank-tabs {
        gap: 5px;
    }

    .rank-tab {
        padding: 6px 10px;
        font-size: 11px;
    }

    .chart-buttons {
        flex-wrap: wrap;
    }

    .chart-container {
        height: 200px;
    }

    .pagination {
        gap: 6px;
    }

    .page-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .search-form {
        flex-wrap: wrap;
    }

    .search-form input[type="text"] {
        width: 100%;
    }

    .profile-skin-circle img {
        width: 90px;
        height: 90px;
    }

    .widget p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .faction-cards {
        grid-template-columns: 1fr;
    }

    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-label {
        width: 45%;
        font-size: 12px;
    }

    .profile-value {
        font-size: 12px;
    }

    .sidebar-nav ul li a {
        padding: 6px 10px;
        font-size: 11px;
    }
}


/* Action buttons */
.btn-action {
    padding: 4px 10px;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    margin: 1px;
}

.btn-green { background: #28a745; }
.btn-green:hover { background: #1e7e34; }
.btn-red { background: #dc3545; }
.btn-red:hover { background: #b02a37; }
.btn-blue { background: #364565; }
.btn-blue:hover { background: #2a3650; }


/* Map */
.map-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.map-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #28a745;
    border: 2px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 0 4px rgba(0,0,0,0.4);
}

.map-marker:hover {
    background: #dc3545;
    transform: translate(-50%, -50%) scale(1.5);
}


.map-marker-label {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    cursor: pointer;
}

.map-marker-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin: 0 auto;
    box-shadow: 0 0 4px rgba(0,0,0,0.4);
}

.map-marker-name {
    display: none;
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    white-space: nowrap;
}

.map-marker-label:hover .map-marker-name {
    display: block;
}


.map-marker-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
}


/* Ban status labels */
.ban-status-finished {
    color: #1a8c1a;
    font-weight: 700;
    font-style: italic;
}

.ban-status-active {
    color: #922828;
    font-weight: 700;
}

.ban-status-permanent {
    color: #922828;
    font-weight: 700;
}

.ban-status-unbanned {
    color: #1a8c1a;
    font-weight: 700;
    font-style: italic;
}

.ban-nick {
    font-weight: 700;
}

.ban-operator {
    font-weight: 700;
    font-style: italic;
}

/* Ban details button */
.btn-details {
    display: inline-block;
    padding: 8px 20px;
    background: #364565;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    border: 2px solid #364565;
    transition: background 0.2s, color 0.2s;
}

.btn-details:hover {
    background: #fff;
    color: #364565;
}

/* Ban details page */
.btn-back {
    display: inline-block;
    margin-bottom: 15px;
    padding: 8px 16px;
    background: #e8ecf1;
    color: #364565;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-back:hover {
    background: #d0d8e2;
}

.ban-details-card {
    background: #fff;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.ban-details-header {
    background: #f0f0f0;
    border-bottom: 2px solid #364565;
    padding: 12px 20px;
    text-align: center;
    font-size: 15px;
    color: #3B4A7F;
    font-weight: 600;
}

.ban-details-table {
    width: 100%;
    border-collapse: collapse;
}

.ban-details-table tr {
    border-bottom: 1px solid #e8e8e8;
}

.ban-details-table tr:last-child {
    border-bottom: none;
}

.ban-detail-label {
    padding: 12px 20px;
    font-size: 13px;
    color: #3B4A7F;
    font-weight: 600;
    width: 200px;
    text-align: center;
}

.ban-detail-value {
    padding: 12px 20px;
    font-size: 13px;
    color: #3B4A7F;
    font-weight: 500;
    text-align: center;
}

.ban-detail-operator {
    font-weight: 700;
    font-style: italic;
}

.ban-detail-mono {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.ban-detail-row-highlight {
    background: #f9f9f9;
}

.icon-green {
    color: #1a8c1a;
}

.icon-red {
    color: #922828;
}

.ban-details-actions {
    padding: 15px 20px;
    border-top: 1px solid #e0e4e8;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn-ban-action {
    padding: 10px 22px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s, transform 0.1s;
}

.btn-ban-action:hover {
    transform: translateY(-1px);
}

.btn-ban-unban {
    background: #28a745;
}

.btn-ban-unban:hover {
    background: #1e7e34;
}

.btn-ban-change {
    background: #364565;
}

.btn-ban-change:hover {
    background: #2a3650;
}
/* Manage player table (centered columns) */
.manage-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 15px;
}

.manage-table thead tr {
    background: #364565;
    color: #fff;
}

.manage-table th {
    padding: 10px 15px;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
}

.manage-table tbody tr {
    border-bottom: 1px solid #e0e4e8;
    background: #fff;
}

.manage-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.manage-table td {
    padding: 8px 15px;
    color: #3B4A7F;
    font-weight: 500;
    text-align: center;
}

.manage-table td:first-child {
    text-align: center;
    font-weight: 600;
}

.manage-input-sm {
    width: 70px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
    margin: 0 auto;
}

.manage-input-sm:disabled {
    background: #e8e8e8;
    color: #999;
    cursor: not-allowed;
}

/* Document toggle switch */
.doc-toggle {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
    cursor: pointer;
}

.doc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.doc-toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #922828;
    border-radius: 22px;
    transition: background 0.3s;
}

.doc-toggle-slider:before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}

.doc-toggle input:checked + .doc-toggle-slider {
    background: #1a8c1a;
}

.doc-toggle input:checked + .doc-toggle-slider:before {
    transform: translateX(20px);
}

/* Rank badges */
.rank-badge-img {
    height: 32px;
    width: auto;
    vertical-align: middle;
    display: block;
    margin: 0 auto;
}

.rank-badge {
    display: inline-flex;
    align-items: stretch;
    border-radius: 5px;
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    vertical-align: middle;
    margin: 2px 4px 2px 0;
    width: 160px;
    height: 34px;
}

.rank-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    background: color-mix(in srgb, var(--badge-color) 100%, black 30%);
    color: #fff;
    font-size: 15px;
}

.rank-badge-name {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    background: var(--badge-color);
    color: #fff;
    white-space: nowrap;
    font-size: 12px;
}

.badge-slider {
    position: relative;
    display: inline-block;
    width: 160px;
    height: 34px;
}

.badge-slide {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.badge-slide-active {
    opacity: 1;
}

.rank-badge-slider {
    position: relative;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rank-badge-slider .rank-slide {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.rank-badge-slider .rank-slide-active {
    opacity: 1;
}

/* Chat online */
.chat-list {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    border: 1px solid #e0e4e8;
}

.chat-msg {
    padding: 8px 10px;
    border-bottom: 1px solid #e8ecf1;
    line-height: 1.6;
}

.chat-msg:nth-child(even) {
    background: #f9fafb;
}

.chat-msg:last-child {
    border-bottom: none;
}

.chat-time {
    color: #888;
    font-size: 11px;
}

.chat-id {
    color: #3B4A7F;
}

.chat-nick {
    color: #3B4A7F;
    font-weight: 700;
}

.chat-ranga {
    font-weight: 700;
    font-size: 12px;
}

.chat-frakcja {
    font-size: 12px;
}

.chat-separator {
    color: #364565;
    font-weight: 700;
    margin: 0 4px;
}

.chat-text {
    color: #333;
}
