@font-face {
    font-family: 'Minecraft';
    src: url('./fonts/Minecraft.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Minecraft';
    src: url('./fonts/Minecraft-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

body, * {
    font-family: 'Minecraft', monospace !important;
}

html, body { margin:0; padding:0; height:100%; background:#1E1E1E; color:white; }

#loading-overlay {
    position: fixed; width:80%; height:100%;  left: 20.6%; bottom: 31px;
    background: transparent;          /* remove gray background */
    display: flex; justify-content: center; align-items: center;
    z-index: 9999; font-family: 'Minecraft', monospace !important;
    pointer-events: none;
}

#loading-text {
    color: white; 
    font-size: 32px; 
    font-weight: bold; 
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

#left-panel {
    position:absolute; z-index:10;
    background:#1E1E1E;
    width:20%; height:99%;
    border-right: 1px solid #555; 
    border-bottom: 1px solid #555;
}

#top-buttons {
    display: flex;
    justify-content: space-around;
    margin: 10px 0 20px 0;
    padding: 0 5px;
}

.top-btn {
    width: 45px;
    height: 45px;
    background-color: #333;
    color: #FFF;
    border: 1px solid #555;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.top-btn:hover {
    background-color: #555;
    transform: scale(1.05);
}

#search {
    width: 90%;
    height: 32px;
    background: #333333;
    color: #FFFFFF;
    font-size: 16px;
    margin-top: 1%;
    margin-left:4%;
    border: 1px solid #555;
    border-radius: 4px;
}
#search:focus {
    background: #333333;
    color: #FFFFFF;
    outline: none;
    border-color: #777;
    box-shadow: 0 0 5px #555 inset;
}

#connection-lists {
    margin-left: 0;
    margin-right: 0;
    margin-top: 16px;
    height: 100%;
    overflow-y: auto;
    font-size:14px;
    color: #FFFFFF;
    padding-right: 5px;
}

#connection-lists {
    height: 78%;
    overflow-y: auto;
    scrollbar-width: thin; 
    scrollbar-color: #555 #222; /* thumb / track */
}
#connection-lists::-webkit-scrollbar {
    width: 10px;
}

#connection-lists::-webkit-scrollbar-track {
    background: #222;
}

#connection-lists::-webkit-scrollbar-thumb {
    background: #555; border-radius: 5px;
}
#connection-lists::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.connection-item {
    margin-bottom:4px;
    padding: 2px 4px;
    color: #CCCCCC;
    border-radius: 3px;
    transition: background 0.2s;
    padding-left: 5%;
}
.connection-item:hover {
    background-color: #444;
    cursor: pointer;
}

#profile-viewer {
  margin-top: 16px;
  height: 78%;
  overflow-y: auto;
  font-size: 14px;
  color: white;
  padding-right: 5px;
}

#network {
    width:80%; height:100%;  margin-left: 20%;
}

#toggle-weight, #toggle-gray, #toggle-panel, #toggle-distance {
    font-size: 20px;
}

#status-bar {
    position: fixed; bottom: 0; left: 0; width: 100%; 
    background: #333333; color: #FFFFFF;
    font-family: monospace; font-size: 14px; 
    display: flex; justify-content: space-between;
    align-items: center; padding: 6px 12px; z-index: 20;
}

.headline{
    font-size:16px; 
    margin-bottom: 8px;
    color: #569CD6;
    padding-left: 5%;
}
#cooldown-container {
    width: 92%;
    height: 6px;
    margin: 6px auto 12px auto;
    background: #2a2a2a;
    border: 1px solid #555;
    border-radius: 3px;
    overflow: hidden;
}

#cooldown-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(
        90deg,
        rgb(102,178,255),
        rgb(0,255,0)
    );
    transition: width 0.1s linear;
}

.tooltip {
    position: fixed;
    background: rgba(20, 20, 20, 0.95);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.12s ease;
}

.hidden {
    display: none;
}