:root {
    --bs-font-weight-bold: 600;
}

.fw-bold {
    font-weight: var(--bs-font-weight-bold) !important;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f0f0f0;
}

.content-wrap {
    flex: 1 0 auto;
    padding-bottom: 20px;
}

.footer {
    flex-shrink: 0;
    background-color: #343a40;
    color: rgba(255,255,255,0.75);
}

.table-container {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.table-header {
    background-color: #f8f9fa;
    padding: 20px 15px;
    border-bottom: 1px solid #dee2e6;
}

.table-footer {
    background-color: #f8f9fa;
    padding: 20px 15px;
    border-top: 1px solid #dee2e6;
}

.clickable-row {
    cursor: pointer;
}

    .clickable-row:hover {
        background-color: #f5f5f5;
    }

.section-title {
    border-left: 4px solid #0d6efd;
    padding-left: 12px;
}

.collapse.multi-collapse {
    transition: height 0.35s ease;
}

.position-relative {
    cursor: pointer;
}

.title-link {
    color: inherit;
    text-decoration: none !important;
    cursor: pointer;
    transition: none;
}

    .title-link:hover,
    .title-link:focus,
    .title-link:active {
        color: inherit !important;
        text-decoration: none !important;
        outline: none;
    }

    .title-link.active {
        font-weight: inherit;
        background-color: transparent;
    }

.server-table {
    font-size: 15px;
}

    .server-table .name {
        width: 28%;
    }

    .server-table .map {
        width: 17%;
    }

    .server-table .address {
        width: 13%;
    }

    .server-table .traffic {
        width: 10%;
    }

    .server-table .fps {
        width: 5%;
    }

    .server-table .uptime {
        width: 5%;
    }

    .server-table .players {
        width: 8%;
    }

    .server-table .status {
        width: 4%;
    }

.players-container {
    overflow-y: auto;
    max-height: 450px;
    padding-right: 10px;
}

    .players-container::-webkit-scrollbar {
        width: 8px;
    }

    .players-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .players-container::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }

        .players-container::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

.players-table {
    font-size: 14px;
    background-color: #fff;
}

    .players-table .name {
        width: 30%;
        cursor: pointer;
    }

    .players-table .time {
        width: 15%;
        cursor: pointer;
    }

    .players-table .steamId {
        width: 20%;
        cursor: pointer;
    }

    .players-table .ipAddress {
        width: 20%;
        cursor: pointer;
    }

    .players-table .id {
        width: 6%;
        cursor: pointer;
    }

    .players-table .status {
        width: 9%;
        cursor: pointer;
    }

    .players-table thead th {
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
        box-shadow: 0 1px 0 #dee2e6;
    }

.full-players-table {
    font-size: 14px;
    background-color: #fff;
}
    .full-players-table .name {
        width: 20%;
        cursor: pointer;
    }

    .full-players-table .steamId2 {
        width: 15%;
        cursor: pointer;
    }

    .full-players-table .steamId3 {
        width: 15%;
        cursor: pointer;
    }

    .full-players-table .steamId64 {
        width: 15%;
        cursor: pointer;
    }

    .full-players-table .date {
        width: 15%
    }

    .full-players-table .buttons {
        width: 30%
    }

.punishment-details-table {

}
    .punishment-details-table .left {
        width: 30%;
    }

    .punishment-details-table .center {
        width: 35%
    }

    .punishment-details-table .right {
        width: 35%;
    }

.player-actions {
    background-color: beige;
}

img.map-image {
    min-height: 300px;
    object-fit: cover;
}

.map-fallback {
    min-height: 300px;
}

.bans-container,
.comms-container {
    min-height: 330px;
}

.bans-table,
.comms-table {
    font-size: 14px;
}

    .bans-table .type,
    .comms-table .type {
        width: 15%;
    }

    .bans-table .name,
    .comms-table .name {
        width: 40%;
    }

    .bans-table .date,
    .comms-table .date {
        width: 25%;
    }

    .bans-table .length,
    .comms-table .length {
        width: 20%;
    }

.group-players {
    max-height: 244px;
}

.pagination-jump {
    width: 150px;
}

.error-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

    .error-card .card-header {
        border-bottom: none;
        font-weight: 500;
    }

.error-icon {
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-10px);
    }
}

@media (max-width: 576px) {
    .error-card {
        margin: 0 -15px;
        border-radius: 0;
    }
}

.profile-card, .permissions-card {
    height: 100%;
    overflow: hidden;
}

.avatar {
    border: 3px solid #e9ecef;
    transition: transform 0.3s;
}

    .avatar:hover {
        transform: scale(1.05);
    }

.permissions-list .list-group-item {
    transition: all 0.2s;
    border-left-width: 3px;
    border-left-color: transparent;
    font-size: 14px;
}

.active-permission {
    background-color: rgba(40, 167, 69, 0.08) !important;
    border-left-color: #28a745 !important;
}

.permission-badge {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.permissions-list .list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(10px);
}

.console {
    background-color: #282c34;
    color: #abb2bf;
    font-family: 'Courier New', Courier, monospace;
}

.console-container {
    background-color: #1a1e24;
    border: 1px solid #61afef;
    padding: 15px;
    border-radius: 5px;
    max-height: 400px;
    overflow-y: auto;
}

.console-line {
    margin-bottom: 5px;
}

.prompt {
    color: #98c379;
}

.output {
    color: #e06c75;
}

/* RCON консоль */
.rcon-console-container .rcon-console-body {
    background-color: #fff;
}

.rcon-console-container .rcon-output {
    min-height: 280px;
    max-height: 450px;
    white-space: pre-wrap;
    word-break: break-all;
    font-size: 13px;
    line-height: 1.4;
}

.rcon-console-container .input-group-text.prompt {
    background-color: #282c34;
    color: #98c379;
    font-family: 'Courier New', Courier, monospace;
}

.rcon-console-container .form-control.console {
    background-color: #282c34;
    color: #abb2bf;
    font-family: 'Courier New', Courier, monospace;
}

.rcon-console-container .form-control.console::placeholder {
    color: #5c6370;
}
