table {
    border-collapse: collapse;
}

td, th {
    border: 1px solid #999;
    padding: 0.5rem;
    text-align: left;
}

.btn {
    padding: 0.5em;
    color: white;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    border: none;
}

.navigation {
    width: 100%;
    color: black;
    background-color: #1a1919;
    border-bottom: 5px aqua;
    display: flex;
    border-bottom: solid 2px aqua;
    box-shadow: 0 9px 12px 0 #000;
}

body {
    font-family: Arial, helvetica neue, Helvetica, sans-serif;
    background-color: #0e0e10;
    color: white;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

.navigation-links {
    text-align: left;
    font-size: large;
    width: 100%;
    display: flex;
}

.navigation-actions {
    margin-left: auto;
    padding-right: 10px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

div {
    display: block;
}

.map {
    width: 100%;
    height: 100%;
    position: relative;
    margin: 0 auto;
}

.map-container {
    width: 100%;
    height: calc(100vh - 80px);
    overflow: hidden;
    position: relative;
    background-color: #0a0a0c;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.map-stage {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
    will-change: transform;
}

.map-image {
    display: block;
    image-rendering: pixelated;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    image-rendering: pixelated;
}

.zoom-controls {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 10;
    pointer-events: auto;
}

.zoom-btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(26, 25, 25, 0.85);
    color: #00ffff;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background 0.15s, border-color 0.15s;
    line-height: 1;
    padding: 0;
}

.zoom-btn:hover {
    background: rgba(0, 255, 255, 0.12);
    border-color: rgba(0, 255, 255, 0.6);
}

.zoom-btn:active {
    background: rgba(0, 255, 255, 0.2);
}

.zoom-btn-reset {
    font-size: 20px;
    margin-top: 4px;
}

.zoom-level {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: bold;
    padding: 2px 0;
    pointer-events: none;
}

.show {
    display: block;
    transition: 800ms;
    opacity: 1;
}

.show.active {
    transform: translateY(100px) scale(0) rotateY(180deg);
    opacity: 0;
}

.hidden {
    display: none;
}

.alert {
    text-align: center;
    display: inherit;
}

.alert-warning {
    color: red;
}

.alert-success {
    color: green;
}

.popup-content {
    margin: auto;
    background: rgb(34 34 34);
    width: 50%;
    border: 1px solid #000000;
    border-bottom: 3px solid #00ffff;
    border-radius: 5px;
    padding: .5rem;
    max-width: 300px;
}

.modal {
    font-size: 12px;
}

.modal > .header {
    width: 100%;
    border-bottom: 1px solid #000000;
    font-size: 18px;
    text-align: center;
    padding: 5px;
}

.modal > .content {
    width: 100%;
    padding: 10px 5px;
}

.modal > .actions {
    width: 100%;
    padding: 10px 5px;
    margin: auto;
    text-align: center;
    border: none;
}

.modal > .close {
    cursor: pointer;
    position: absolute;
    display: block;
    padding: 2px 5px;
    line-height: 20px;
    right: -2px;
    top: -1px;
    font-size: 24px;
    background: none;
    border-radius: 18px;
    border: none;
    outline: none !important;
}

.close:focus {
    outline: none !important;
}

.login-form {

}

.login-box {
    width: 100%;
    margin-bottom: 5px;
}

.login-btn {
    color: #ffffff;
    border: 3px #005ab4 solid;
    border-radius: 10px 10px 10px 10px;
    font-weight: bold;
    width: 100%;
    padding: 4px 5px;
    text-align: center;
    margin: 10px auto auto;
    background-color: rgba(0, 255, 255, 0);
}

.login-popup-btn {
    color: cyan;
    background-color: rgba(0, 255, 255, 0);
    height: 45%;
    margin-top: auto;
    border-radius: 10px 10px 0px 0px;
    border: 2px cyan solid;
    border-bottom: 0;
}

.btn:hover {
    color: white !important;
    box-shadow: inset 0 0 100px 100px rgba(255, 255, 255, 0.05);
}

.display-title {
    font-size: 2em;
    color: white;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 10px;
}

.plot-view {
    color: white;
    position: absolute;
    font-size: 16px;
    padding: 2px 2px 1px;
    background: rgb(34 34 34);
    border-bottom: 1px solid #00ffff;
    border-radius: 10px 10px 10px 0px;
    pointer-events: none;
    opacity: 0.8;
    z-index: 20;
}

@media (max-width: 690px) {

    .display-title {
        font-size: 1.5em;
    }

    .zoom-controls {
        bottom: 12px;
        right: 12px;
    }

    .zoom-btn {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }

}

@media (max-width: 570px) {

    .display-title {
        font-size: 0;
        color: transparent;
    }

}

@keyframes anvil {
    0% {
        transform: scale(1) translateY(0px);
        opacity: 0;
        box-shadow: 0 0 0 rgba(241, 241, 241, 0);
    }
    1% {
        transform: scale(0.96) translateY(10px);
        opacity: 0;
        box-shadow: 0 0 0 rgba(241, 241, 241, 0);
    }
    100% {
        transform: scale(1) translateY(0px);
        opacity: 1;
        box-shadow: 0 0 500px rgba(241, 241, 241, 0);
    }
}

.popup-content {
    -webkit-animation: anvil 0.3s cubic-bezier(0.38, 0.1, 0.36, 0.9) forwards;
}

.delete-btn {
    float: right;
}

.admin-page {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px;
}

.admin-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-page h1 {
    font-size: 32px;
    margin-bottom: 6px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.admin-panel {
    background: rgb(26 25 25);
    border: 1px solid #2b2b2f;
    border-bottom: 3px solid #00ffff;
    border-radius: 5px;
    padding: 18px;
}

.admin-panel h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.admin-meta {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 14px;
    word-break: break-word;
}

.admin-label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 6px;
}

.admin-input,
.admin-file {
    width: 100%;
    min-height: 38px;
    margin-bottom: 12px;
    padding: 8px;
    color: white;
    background: #0e0e10;
    border: 1px solid #44444a;
    border-radius: 5px;
}

.admin-primary-btn,
.admin-secondary-btn,
.admin-danger-btn {
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
}

.admin-primary-btn {
    background: #006d75;
}

.admin-secondary-btn {
    width: auto;
    min-width: 96px;
    color: cyan;
    background: transparent;
    border: 2px solid cyan;
}

.admin-danger-panel {
    border-bottom-color: #ff4d4d;
}

.admin-danger-btn {
    background: #a31919;
}

.admin-message {
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 5px;
    background: #1a1919;
    border-left: 4px solid #00ffff;
}

.admin-message-warning {
    border-left-color: #ff4d4d;
}

.admin-message-success {
    border-left-color: #2fcf6b;
}

.admin-primary-btn:disabled,
.admin-secondary-btn:disabled,
.admin-danger-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}
