* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0d141b;
    color: #e8e8e8;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 230px;
    background: #101820;
    border-right: 1px solid #303942;
    padding: 25px 15px;
}

.logo {
    font-weight: bold;
    color: #e9912a;
    font-size: 20px;
    margin-bottom: 30px;
}

.sidebar a {
    display: block;
    color: #ddd;
    text-decoration: none;
    padding: 13px;
    border-radius: 6px;
    margin-bottom: 6px;
}

.sidebar a:hover {
    background: #202c35;
}

.separator {
    border-top: 1px solid #303942;
    margin: 25px 0;
}

.sidebar .reset-global {
    color: #ff6868;
}

.content {
    flex: 1;
    padding: 30px;
}

h1 {
    margin-top: 0;
}

.cards {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.card,
.biglink,
.panel {
    background: #151f27;
    border: 1px solid #303c46;
    border-radius: 8px;
    padding: 22px;
}

.card {
    min-width: 190px;
}

.biglink {
    flex: 1;
    color: #eee;
    text-decoration: none;
}

.biglink:hover {
    border-color: #e9912a;
}

.online {
    color: #63d168;
    font-size: 22px;
}

.offline {
    color: #e55b5b;
    font-size: 22px;
}

.big {
    font-size: 24px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #151f27;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #303c46;
    vertical-align: top;
    text-align: left;
}

th {
    background: #101820;
}

.attribute {
    font-family: monospace;
    width: 260px;
}

input {
    width: 180px;
    padding: 8px;
    background: #0d141b;
    border: 1px solid #46535f;
    border-radius: 5px;
    color: white;
}

.reset-one {
    width: 38px;
    height: 35px;
    background: #29343d;
    border: 1px solid #46535f;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.reset-one:hover {
    background: #e9912a;
    color: black;
}

.description {
    max-width: 600px;
}

.short {
    margin-bottom: 6px;
}

details {
    color: #aeb7bf;
    font-size: 14px;
}

summary {
    cursor: pointer;
    color: #e9912a;
}

.actions {
    text-align: right;
    margin-top: 25px;
}

.save {
    padding: 14px 24px;
    border: 0;
    border-radius: 6px;
    background: #347a35;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.save:hover {
    background: #409442;
}

.notice {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
}

.warning {
    background: #473315;
    border: 1px solid #e9912a;
}

.success {
    background: #193b22;
    border: 1px solid #54a866;
}

select {
    width: 180px;
    padding: 8px;
    background: #0d141b;
    border: 1px solid #46535f;
    border-radius: 5px;
    color: white;
}

.default-value {
    font-family: monospace;
    color: #9fc5e8;
}

.range {
    white-space: nowrap;
    font-family: monospace;
}

.range-note {
    font-family: Arial, sans-serif;
    font-size: 11px;
    color: #8f9ba5;
}

.unknown {
    color: #777;
    font-family: Arial, sans-serif;
}

.doc-ok {
    margin-top: 5px;
    color: #63d168;
    font-family: Arial, sans-serif;
    font-size: 11px;
}

.doc-warning {
    margin-top: 5px;
    color: #e9912a;
    font-family: Arial, sans-serif;
    font-size: 11px;
}

.restart-info {
    margin-top: 5px;
    font-size: 12px;
    color: #9ba6af;
}

.rcon-status {
    display: flex;
    align-items: center;
    gap: 45px;
    background: #151f27;
    border: 1px solid #303c46;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.refresh-button,
.edit-button,
.back-link {
    display: inline-block;
    text-decoration: none;
    color: white;
}

.refresh-button {
    background: #29343d;
    padding: 10px 16px;
    border-radius: 5px;
}

.refresh-button:hover {
    background: #e9912a;
    color: black;
}

.edit-button {
    background: #2e607d;
    padding: 8px 14px;
    border-radius: 5px;
}

.edit-button:hover {
    background: #3e7fa3;
}

.technical {
    font-family: monospace;
    font-size: 12px;
}

.empty-table {
    text-align: center;
    color: #8b959d;
    padding: 30px;
}

.broadcast-panel {
    margin-top: 35px;
    background: #151f27;
    border: 1px solid #303c46;
    border-radius: 8px;
    padding: 20px;
}

.broadcast-input {
    width: calc(100% - 180px);
}

.broadcast-button {
    margin-left: 10px;
    padding: 9px 15px;
    background: #2e607d;
    border: 0;
    border-radius: 5px;
    color: white;
    cursor: pointer;
}

.broadcast-button:hover {
    background: #3e7fa3;
}

.back-link {
    margin-bottom: 20px;
    color: #e9912a;
}

.player-subtitle {
    color: #aab4bd;
    font-size: 18px;
    margin-top: -12px;
}

.player-status {
    color: #63d168;
    margin: 10px 0 25px 0;
}

.player-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.player-card {
    background: #151f27;
    border: 1px solid #303c46;
    border-radius: 8px;
    padding: 20px;
}

.player-card h2 {
    margin-top: 0;
}

.player-field {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #29343d;
    padding: 10px 0;
}

.player-field span {
    color: #929ca5;
}

.player-field strong {
    text-align: right;
    word-break: break-all;
}

.future-action {
    display: flex;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid #29343d;
}

.future-action span {
    color: #7f8991;
    font-size: 12px;
}

.danger-zone {
    border-color: #663737;
}

.danger-zone h2 {
    color: #e66c6c;
}

.source-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 7px;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: bold;
}

.source-enhanced {
    background: #193b22;
    color: #63d168;
}

.source-documented {
    background: #18364a;
    color: #65b9e8;
}

.source-legacy {
    background: #3d351c;
    color: #d6bd61;
}

.source-warning {
    background: #493315;
    color: #e9912a;
}

.source-community {
    background: #28344b;
    color: #91aee8;
}

.source-danger {
    background: #4a2020;
    color: #ff7777;
}

.source-debug {
    background: #352b42;
    color: #c89cec;
}

.source-unknown {
    background: #30343a;
    color: #999;
}
