.nav-item {
    display: block;
    text-decoration: none;
    width: 100%;
}

.redm-content {
    width: calc(100% - 240px);
}

.redm-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 18px;
    margin-bottom: 20px;
}

.panel {
    background: #211b14;
    border: 1px solid #453723;
    border-radius: 6px;
    padding: 20px;
    min-width: 0;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.panel-header h2 {
    margin: 0;
}

.table-wrapper {
    overflow: auto;
    max-height: 500px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid #3b3022;
}

th {
    color: #bda97f;
    font-size: 12px;
    text-transform: uppercase;
}

td {
    color: #ddd1b8;
}

.search {
    margin-bottom: 12px;
}

.resource-stats {
    font-size: 12px;
    color: #9b907c;
    margin-bottom: 12px;
}

.resources-list {
    max-height: 480px;
    overflow-y: auto;
    padding-right: 5px;
}

.resource-row {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto;
    gap: 10px;

    align-items: center;

    padding: 10px;

    border-bottom:
        1px solid #382e21;
}

.resource-title {
    overflow: hidden;
}

.resource-title strong {
    display: block;

    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.resource-path {
    color: #7f7564;
    font-size: 11px;

    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.resource-flags {
    margin-top: 5px;
}

.badge {
    display: inline-block;

    padding: 3px 7px;

    margin-right: 4px;

    border-radius: 10px;

    font-size: 10px;

    border:
        1px solid #554832;
}

.badge.running {
    color: #9bd09d;
    border-color: #426d44;
}

.badge.stopped {
    color: #ce8c84;
    border-color: #75443e;
}

.badge.autostart {
    color: #d2b478;
}

.resource-actions {
    display: flex;
    gap: 5px;
}

.resource-actions button,
.small-button {
    border: 1px solid #5b4930;

    background: #302619;

    color: #d8c8a8;

    border-radius: 4px;

    padding: 7px 9px;

    cursor: pointer;

    font-size: 12px;
}

.resource-actions button:hover,
.small-button:hover {
    background: #45351f;
}

.resource-actions button.stop {
    color: #dd958b;
    border-color: #75443e;
}

.console-panel {
    margin-bottom: 30px;
}

.console-output {
    height: 430px;

    overflow: auto;

    padding: 15px;

    background: #0d0d0d;

    border:
        1px solid #38332b;

    font-family:
        Consolas,
        Monaco,
        monospace;

    font-size: 12px;

    line-height: 1.45;

    white-space: pre-wrap;

    color: #c9c9c9;
}

.console-line {
    margin: 0;
}

.console-form {
    margin-top: 10px;

    display: flex;

    align-items: center;

    gap: 8px;
}

.console-form span {
    color: #d3b77e;

    font-family:
        Consolas,
        monospace;
}

.console-form input {
    margin: 0;
    flex: 1;
}

.console-form button {
    height: 43px;

    border: 1px solid #6a5434;

    border-radius: 4px;

    background: #3a2d1c;

    color: #decaa0;

    padding: 0 18px;

    cursor: pointer;
}

#serverStatus.active {
    color: #92cd95;
}

#serverStatus.inactive,
#serverStatus.failed {
    color: #d5847a;
}

#playersBadge {
    padding: 4px 9px;

    border-radius: 20px;

    background: #33291d;

    color: #cdb37f;
}

@media (max-width: 1100px) {

    .redm-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 760px) {

    .redm-content {
        width: auto;
    }

    .resource-row {
        grid-template-columns: 1fr;
    }

}

.player-header-actions,
.player-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.player-actions button {
    padding: 6px 8px;

    border:
        1px solid #5b4930;

    border-radius: 4px;

    background: #302619;
    color: #d8c8a8;

    cursor: pointer;
    font-size: 11px;
}

.player-actions button.kick {
    color: #dd958b;
    border-color: #75443e;
}

.player-identifiers td {
    padding: 12px 16px;

    background: #15110d;

    font-family:
        Consolas,
        monospace;

    font-size: 11px;

    color: #a99c84;

    white-space: pre-wrap;
    word-break: break-all;
}
