* {
    color: #888;
    font-family: monospace;
    font-size: 12px;
    margin: 0;
    padding: 0;
}

html {
    background: #262626;
}

.prio-2 {
    color: gray !important;
}

.prio-3 {
    color: #2a536d !important;
}

.prio-4 {
    color: #5f7c4f !important;
}

.prio-5 {
    color: #b3ac25 !important;
}

.prio-6 {
    color: #c8514c !important;
}

.prio-7 {
    color: #ae2a25 !important;
}

.prio-2 .p { /* verbose */
    background: #5394EC;
}

.prio-3 .p { /* debug */
    background: #326586;
}

.prio-4 .p { /* info */
    background: #5d9801;
    color: #111;
}

.prio-5 .p { /* warn */
    background: #ABC023;
    color: #111;
}

.prio-6 .p { /* err */
    background: #CC666E;
}

.prio-7 .p {  /* assert */
    background: #FF6B68;
}

/* msg */

.prio-2 .m { /* verbose */
    color: #5394EC;
}

.prio-3 .m { /* debug */
    color: #299999;
}

.prio-4 .m { /* info */
    color: #cccccc;
}

.prio-5 .m { /* warn */
    color: #ABC023;
}

.prio-6 .m { /* err */
    color: #CC666E;
}

.prio-7 .m {  /* assert */
    color: #FF6B68;
}

/* spans */

.c {
    display: inline-block;
    min-width: 126px;
    font-size: 0.9em;
    color: #666e77;
}

.p {
    display: inline-block;
    width: 30px;
    text-align: center;
    color: #aaa;
}

.t {
    display: inline-block;
    color:rgb(139, 112, 151);
}

.m {
    display: inline-block;
}

.mp {
    color: #666e77;
}

.sp {
    margin-right: 8px;
}

.ti {
    height: 14px;
    width: 14px;
}

.log-entry:hover {
    background:rgb(52, 53, 54);
    cursor: pointer;
}

.log-entry {
    border-bottom: solid 1px #343536;
    margin: 2px 0;
    display: flex;
    align-items: center;
}

.dot {
    height: .7rem;
    width: .7rem;
    border-radius: 0.35rem;
    display: inline-block;
    margin-right: 4px;
}

.stripe {
    width: 2px;
    height: 1rem;
}

#container {
    display: flex;
    flex-direction: row;
}

#logs, #contacts {
    padding: 8px;
}

#leftbar, #rightbar {
    background: #262626;
    height: 100vh;
    overflow-y: auto;
}

#midbar {
    display: flex;
    flex-direction: row;
    height: 100vh;
}

.resize-bar {
    background: #444857;
    height: 100vh;
    width: 8px;
    cursor: col-resize;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    user-select: none;
}

.resize-bar::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 15px;
    border-inline: 1px solid #fff;
}

.btn {
    border: solid 1px #2a536d;
    background: #262626;
    color: #fff;
    padding: 4px;
    border-radius: 4px;
    margin: 2px;
}

.btn:hover {
    cursor: pointer;
    border: solid 1px #2a536d;
    background: #2a536d;
    color: #fff;
}

.btn.active {
    background: #2a536d;
}

.pin {
    height: 1rem;
    width: 1rem;
}

.chighlight {
    background: rgb(216, 125, 255);
    color: #fff;
}

#map {
    height: 100%;
    flex: auto;
}

#warning {
    background: #262626;
    color: #ff0;
    position: absolute;
    bottom: 0;
    z-index: 999;
    margin: 12px;
    margin-left: 20px;
    padding: 12px;
    font-size: 1.2em;
}

.settings {
    padding: 8px;
    border-bottom: solid 1px #888;
}

.highlight {
    background: #ff0;
}

.settings-cb {
    display: inline-block;
    margin-right: 12px;
}

.settings-cb > label > input {
    margin-right: 6px;
}

.settings-cb > label > img {
    margin-right: 6px;
}

.icon-16 {
    height: 16px;
    vertical-align: middle;
}

@media only screen and (max-width: 900px) {
    #container {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    #leftbar {
        flex: auto;
        background: #262626;
        height: 50vh;
    }

    #midbar {
        flex: auto;
        height: 50vh;
    }
}


.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: #607e8c;
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
}

.marker-pin::after {
    content: '';
    width: 24px;
    height: 24px;
    margin: 3px 0 0 3px;
    background: #fff;
    position: absolute;
    border-radius: 50%;
}

.marker-pin.missing {
    background: #bb6363;
}

.marker-pin.ghosted {
    background: #dfae54;
}

.marker-pin.custom {
    filter: invert(42%) sepia(93%) saturate(1352%) hue-rotate(87deg) brightness(119%) contrast(119%);
}

.custom-div-icon img {
   position: absolute;
   width: 20px;
   height: 20px;
   left: 0;
   right: 0;
   margin: 10px auto;
   text-align: center;
   z-index: 2;
   fill: #607e8c;
}

.custom-div-icon span {
    position: absolute;
    color: #607e8c;
    font-size: 16px;
    left: 0;
    right: 0;
    margin: 10px auto;
    text-align: center;
    z-index: 2;
}

.tooltip-title {
    color: #111;
    font-weight: bold;
}

.tooltip-detail {
    color: #444;
    font-size: 0.8em;
}

/* Translation controls */
.translation-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.translation-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.translation-row label {
    min-width: 40px;
    font-size: 11px;
    color: #888;
}

.translation-row select {
    background: #262626;
    color: #888;
    border: 1px solid #444;
    padding: 2px 4px;
    font-size: 11px;
    font-family: monospace;
    border-radius: 2px;
    flex: 1;
}

.translation-row select:focus {
    outline: none;
    border-color: #2a536d;
}

.translation-row input[type="checkbox"] {
    margin-right: 4px;
}

.translation-row input[type="checkbox"] + label {
    min-width: auto;
    cursor: pointer;
}

/* Reset button */
.reset-btn {
    background: #ff9800;
    color: #fff;
    border: none;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 3px;
    cursor: pointer;
    font-family: monospace;
    transition: background-color 0.2s ease;
    width: 100%;
}

.reset-btn:hover {
    background: #f57c00;
}

/* Translation button */
.translate-btn {
    background: #2a536d;
    color: #fff;
    border: none;
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 2px;
    cursor: pointer;
    margin-left: 4px;
    font-family: monospace;
    transition: background-color 0.2s ease;
}

.translate-btn:hover {
    background: #3949AB;
}

.translate-btn:disabled {
    background: #444;
    color: #666;
    cursor: not-allowed;
}

/* T button (translate) - light green */
.translate-btn[data-state="translate"] {
    background: #4CAF50;
}

.translate-btn[data-state="translate"]:hover {
    background: #45a049;
}

/* O button (original) - light red */
.translate-btn[data-state="original"] {
    background: #f44336;
}

.translate-btn[data-state="original"]:hover {
    background: #da190b;
}

/* Translation result */
.translation-result {
    margin-top: 4px;
    padding: 4px;
    background: #1a1a1a;
    border-left: 2px solid #2a536d;
    font-size: 11px;
    color: #ccc;
    font-style: italic;
}

.translation-loading {
    color: #888;
    font-style: italic;
}

/* Collision Helper Styles */
.collision-helper-btn {
    background: #3a4a5c !important;
    border: 1px solid #5a6a7c !important;
    color: #ddd !important;
}

.collision-helper-btn:hover {
    background: #4a5a6c !important;
    border-color: #6a7a8c !important;
}

/* Repeater Setup Button Styles */
.repeater-setup-btn {
    background: #2d5a3d !important;
    border: 1px solid #4a7c4a !important;
    color: #ddd !important;
}

.repeater-setup-btn:hover {
    background: #3d6a4d !important;
    border-color: #5a8c5a !important;
}

.collision-helper-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.collision-helper-content {
    background: #262626;
    border: 2px solid #444;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.collision-helper-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #444;
    background: #1a1a1a;
}

.collision-helper-header h3 {
    color: #ddd;
    font-size: 16px;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #ddd;
    background: #444;
    border-radius: 4px;
}

.collision-helper-table {
    padding: 20px;
}

.hex-grid {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    gap: 3px;
    max-width: 1000px;
    margin: 0 auto;
}

.hex-cell {
    padding: 12px 8px;
    text-align: center;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hex-cell:hover {
    transform: scale(1.1);
    z-index: 10;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Color coding for hex cells */
.hex-cell.unoccupied {
    background: #2d4a2d;
    color: #4a7c4a;
    border-color: #4a7c4a;
}

.hex-cell.unoccupied:hover {
    background: #3d5a3d;
    border-color: #5a8c5a;
}

.hex-cell.occupied {
    background: #4a2d2d;
    color: #d4a5a5;
    border-color: #8c5a5a;
}

.hex-cell.occupied:hover {
    background: #5a3d3d;
    border-color: #9c6a6a;
}

.hex-cell.colliding {
    background: #1a1a1a;
    color: #ffcc00;
    border-color: #666;
}

.hex-cell.colliding:hover {
    background: #2a2a2a;
    border-color: #777;
}