.reflector-container {
    max-width: 660px;
    margin: 0px auto;
}

.reflector-fieldset {
/*    border: 2px solid #ccc; */
    border: none;
    border-radius: 10px;
    padding: 0px;
    margin: 0px 0px 20px 0px;
    background-color: #3f4c84;
    box-shadow: 5px 15px 25px #111;
    width: 660px;
}

.ref-padding {
    padding: 0 0 5px 0;
}
.reflector-header {
    color: #f3ead3;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 14px;
    margin: 10px 0;
    text-align: center;
}

.active-qso-box {
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 10px;
    margin: 15px 10px;
    min-height: 80px;
    height: 80px;
    line-height: 19px;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.active-qso-box .callsign {
    font-size: 14.5px;
    color: yellow;
    font-weight: 500;
    white-space: nowrap;
}

.active-qso-box .arrow {
    color: red;
    white-space: nowrap;
}

.active-qso-box .tg {
    font-size: 14.5px;
    color: #08dc6e;
    font-weight: 500;
    white-space: nowrap;
    margin-right: 10px;
}

.active-qso-box .qso-item {
    white-space: nowrap;
    margin: 0 5px;
}

.active-tg-title {
    font-weight: 500;
    font-size: 16px;
    color: #f3ead3;
}

.active-tg-number {
    color: #08dc6e;
    font-weight: 500;
}

.nodes-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1px;
    margin:3px;
}

.node-badge {
    display: inline-block;
    width:86px;
    padding: 6px 2px;
    border-radius: 5px;
    margin: 3px;
    text-align: center;
    font-size: 9pt;
    /* font-family: Helvetica, Arial, sans-serif; */
    /* font-weight: 600; */
    font-weight: bold;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
    cursor: pointer;
    transition: transform 0.2s ease;
}

.node-badge:hover {
    transform: scale(1.05);
}

/* Typy nodów */
.node-tx {
    background-color: #ff4500;
    color: white;
}

.node-app {
    background-image: linear-gradient(to bottom, #AACF00 0%, #A6BF26 100%);
    color: black;
}

.node-repeater {
    background-image: linear-gradient(to bottom, #337ab7 0%, #265a88 100%);
    color: white;
}

.node-hotspot-public {
    background-image: linear-gradient(to bottom, #1ca9c9 40%, #0047ab 100%);
    color: white;
}

.node-hotspot {
    background-image: linear-gradient(to bottom, #20cf52 30%, #4aa02c 100%);
    color: black;
}

.node-gateway {
    background-image: linear-gradient(to bottom, #b37b4b 0%, #835c3b 100%);
    color: white;
}

.node-link {
    background-image: linear-gradient(to bottom, #b37b4b 0%, #835c3b 100%);
    color: white;
}

.node-echo {
    background-image: linear-gradient(to bottom, #656565 0%, #212121 100%);
    color: white;
}

.node-monitoring {
    width: 80px;
    background-image: linear-gradient(to bottom, LightGreen 30%, #4aa02c 100%);
    color: black;
}

/* Tooltip w stylu SVXReflectora */
#tooltip {
    display: none;
    position: fixed;
    min-width: 260px;
    max-width: 320px;
    background: rgba(50, 50, 50, 0.9);
    backdrop-filter: blur(6px);
    color: #fff;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
    z-index: 1000;
    padding: 12px;
    font-size: 14px;
    text-align: left;
    transition: opacity 0.3s ease-in-out;
    font-family: Roboto, Helvetica, Arial, sans-serif;
}

#tooltip h3 {
    margin: 0 0 10px 0;
    font-size: 15px;
    color: #f7d44c;
}

#tooltip p {
    margin: 8px 0px 0px 0px;
    line-height: 1.3em;
    text-wrap: wrap;
}

#tooltip button,
#tooltip .close {
    float: right;
    position: absolute;
    top: 15px;
    right: 10px;
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 22px;
    cursor: pointer;
}

#tooltip button:hover,
#tooltip .close:hover {
    color: #fff;
}

#tooltip a {
    color: #4fc3f7;
    text-decoration: none;
    font-weight: bold;
}

#tooltip a:hover {
    text-decoration: underline;
}

.reflector-stats {
    text-align: center;
    margin: 20px 0;
}

.reflector-stats .title {
    font-weight: 500;
    font-size: 18px;
    color: #f3ead3;
}

.reflector-stats .network {
    font-weight: 500;
    font-size: 18px;
    color: red;
}

.reflector-stats .count-label {
    line-height: 1.8;
    font-weight: 500;
    font-size: 18px;
    color: #f3ead3;
    font-family: 'Oswald', sans-serif;
}

.reflector-stats .count-value {
    line-height: 1.8;
    font-weight: 500;
    font-size: 16px;
    color: yellow;
    font-family: 'Oswald', sans-serif;
}

.reflector-error {
    text-align: center;
    padding: 50px 20px;
    color: yellow;
    font-family: 'Oswald', sans-serif;
    font-size: 13pt;
    font-weight: 500;
    /* Wymusza zawijanie tekstu i długich wyrazów (np. linków/logów) */
    overflow-wrap: break-word;
    word-wrap: break-word;
    /* Pozwala na łamanie wiersza zgodnie ze standardem HTML */
    white-space: normal; 
}

.reflector-error img {
    max-width: 400px;
    margin-top: 20px;
}

