@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

body, html {
    height: 100%;
}
body {
    user-select: none;
    font-family: "Inter", sans-serif;
    margin: 0;
    box-sizing: border-box;
    background-color: #1c1c1c;
    overflow-y: hidden;
}
p {
    margin: 0;
}
.main-container {
    height: 100%;
    display: flex;
}
.sidebar {
    width: 440px;
    height: 100%;
    float: left;
    transition: 0.2s;
    background: #1c1c1c;
    border-right: 1px solid #2b2b2b;
}
.page-content {
    width: calc(100% - 441px);
    float: right;
    height: 100%;
    transition: 0.2s;
    background: #1c1c1c;
}
.fulled {
    width: 100%;
    height: 100%;
    border: none;
}
.sidebar-content {
    padding: 20px;
}

.top-badge {
    padding: 20px;
    padding-top: 12px;
    padding-bottom: 12px;
    background: #5d26a1;
    color: #ffffff;
    font-weight: 700;
    text-align: end;
    transition: 0.2s;
    cursor: pointer;
}
.top-badge:hover {
    background: #4c1f83;
}

.server-info {
    border-bottom: 1px solid #2b2b2b;
    padding: 20px;
    padding-top: 24px;
}
.server-info img {
    float: right;
    width: 46px;
}
.server-info p.title {
    font-size: 20px;
    font-weight: 700;
    color: white;
}
.server-info p.desc {
    color: #6d6d6d;
    font-weight: 600;
    margin-top: 0px;
}
.server-info button {
    margin-top: 15px;
    width: 100%;
    border: none;
    padding: 9px;
    border-radius: 4px;
    font-family: 'Inter';
    font-weight: 600;
    color: white;
    background: #2d2c2c;
    border: 2px solid #373737;
    transition: 0.2s;
}
.server-info button:hover {
    border: 2px solid #3f3e3e;
    cursor: pointer;
}

.lists {
    height: calc(100% - 134px);
    overflow-y: auto;
}
.list {
    border-bottom: 1px solid #2b2b2b;
    background: #1c1c1c;
    transition: 0.2s;
}
.list:hover {
    background: #212121;
}
/*.list:nth-child(odd) {
    background: #212121;
}*/
.list:nth-child(odd):hover {
    background: #272626;
}
.list .title {
    padding: 12px 9px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.list .title svg {
    margin-right: 8px;
    transition: 0.2s;
    rotate: -90deg;
}
.list .title svg path {
    fill: #5f5f5f;
}
.list desc {
    margin-left: 6px;
    color: #746f7b;
}
.list .contents {
    padding-bottom: 10px;
    display: none;
}
.list .contents[show] {
    display: block;
}
.list .contents div {
    padding: 5px 12px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    padding-left: 32px;
}
.list .contents div desc {
    margin-left: 8px;
    margin-right: 8px;
    color: #575757;
}
.list .contents div img {
    width: 21px;
}
.list .contents div uname {
    margin-left: 10px;
}
.list .contents div gpname, .list .contents div wstat {
    margin-left: auto;
}
.list .contents div wstate {
    margin-left: 7px;
}
.list .contents div wstate[type="minecraft_overworld"] {
    display: none;
}
.list .contents div wstate[type="minecraft_the_nether"] {
    color: #d95959;
}
.list .contents div wstate[type="minecraft_the_end"] {
    color: #a563d3;
}

::-webkit-scrollbar {
    width: 15px;
}
::-webkit-scrollbar-corner {
    background-color: #2d2c2c;
}
::-webkit-scrollbar-thumb {
    background-color: #676767;
    border-radius: 20px;
    border: 4px solid #2d2c2c;
}
::-webkit-scrollbar-track {
    background-color: #2d2c2c;
}

#telegramChat, #map {
    padding-bottom: 0px;
}
#map {
    height: 300px;
}

#govList gpname {
    font-weight: 500;
    color: #08d508;
}
#govList gpname[count="0"] {
    color: #6d6d6d;
}

.unavaiable {
    padding: 20px;
    display: block;
}
.unavaiable p {
    font-size: 20px;
    color: white;
    font-weight: 700;
    margin-bottom: 10px;
}
.unavaiable img {
    border-radius: 20px;
    width: 500px;
}

.page-content[hiddenmap] iframe {
    display: none;
}
.page-content[hiddenmap] .unavaiable {
    display: block;
}

wstat {
    font-weight: 500;
    color: white;
}
wstat.green {
    color: #82c79b;
}
.stats-row {
    color: #736b6b !important;
    padding: 3px 12px !important;
    padding-left: 32px !important;
}

wstat[tps="good"] { color: #16c60c; }
wstat[tps="normal"] { color: #ffc814; }
wstat[tps="bad"] { color: #fb5f2e; }

#messagesList {
    display: block;
    height: 200px;
    overflow-y: auto;
    padding-top: 0px;
}
message {
    width: 100%;
    display: inline-block;
    font-size: 14px;
}
message img {
    width: 16px !important;
    height: 16px;
    margin-right: 4px;
}
message playername {
    margin-right: 6px;
}
#messagesList::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}
#messagesList::-webkit-scrollbar-corner {
    background-color: #1c1c1c;
}
#messagesList::-webkit-scrollbar-thumb {
    background-color: #3d3b3b;
    border-radius: 20px;
    border: 4px solid #1c1c1c;
}
#messagesList::-webkit-scrollbar-track {
    background-color: #1c1c1c;
}


.page {
    width: 100%;
    height: 100%;
    display: none;
}
.page.fullscreen {
    position: absolute;
    width: calc(100% - 55px);
}
.pageView {
    width: 440px;
    height: 100%;
    flex-shrink: 0;
    border-right: 1px solid #2b2b2b;
}
.pageView[currentPage="map"] .page[name="map"],
.pageView[currentPage="info"] .page[name="info"],
.pageView[currentPage="panel:whitelist"] .page[name="panel:whitelist"],
.pageView[currentPage="panel:govs"] .page[name="panel:govs"],
.pageView[currentPage="panel:console"] .page[name="panel:console"] {
    display: block;
}

.pageSelector {
    border-right: 1px solid #232323;
    padding: 7px;
    width: 40px;
}
.pageSelector .button {
	width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: anchor-center;
    margin-bottom: 4px;
	transition: 0.2s;
	cursor: pointer;
}
.pageSelector .button:hover {
	background: #212121;
}
.pageSelector .button svg path {
	fill: #5f5f5f;
}
.pageSelector .button[active] {
	background: #2d2d2d;
}
.pageSelector .button[active] svg path {
	fill: #b29bcf;
}


p.bigshit {
    padding: 20px;
    font-size: 40px;
    color: white;
    font-weight: 600;
}


.panel-menu {
    margin-top: 15px;
    display: none;
}
.panel-menu[show] {
    display: block;
}
.pageView[currentPage="panel:console"] {
    border-right: none;
}
.page[name="panel:console"] {
    background-color: black;
}

.console-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: black;
    overflow: hidden;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.5;
}

.console-output {
    width: 100%;
    height: calc(100% - 48px);
    margin: 0;
    resize: none;
    outline: none;
    border: none;
    background: black;
    color: white;
    box-sizing: border-box;
    padding: 6px;
    font-family: monospace;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.log-line {
    padding: 1px 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: monospace;
}
.log-time {
    color: #8d8c8c;
    margin-right: 8px;
    user-select: none;
}
.log-info {
    color: #b2d7ea;
}
.log-warn {
    color: #ffeb7e;
}
.log-error {
    color: #f48771;
}
.log-error-stack {
    color: #f48771;
    opacity: 0.9;
    padding-left: 20px;
}
.log-player-join {
    color: #4ec9b0;
}
.log-player-leave {
    color: #ce9178;
}
.log-player-command {
    color: #c586c0;
}
.log-player-death {
    color: #d16d9a;
}
.log-system {
    color: #808080;
}
.log-plugin {
    color: #57a64a;
}
.log-server-start {
    color: #4ec9b0;
    font-weight: bold;
}
.log-server-stop {
    color: #f44747;
    font-weight: bold;
}
.log-link {
    text-decoration: underline;
    cursor: pointer;
    color: #f3f3f3;
}

.log-line-new {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.console-input {
    display: flex;
    align-items: center;
    padding: 0px 14px;
    gap: 6px;
    background: #1c1c1c;
    height: 48px;
}

.console-input svg path {
    fill: #6f6f6f;
    transition: fill 0.2s;
}

.console-input svg:hover path {
    fill: #7a7a7a;
}

input#serial-input {
    border: none;
    padding: 0px;
    outline: none;
    background: transparent;
    color: white;
    font-family: monospace;
    width: 100%;
    font-size: 15px;
}

input#serial-input::placeholder {
    color: #595959;
}




@media screen and (max-width: 700px) {
    .sidebar {
        width: 100%;
    }
    body {
        overflow-x: hidden;
    }
}