@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

body.blood-island-map {
    height: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    background: #0a0a0a;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    color: #ddd;
}

#ok-mapRow {
    display: flex;
    flex: 1;
    min-height: 0;
}

#ok-map-navbar {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: #141414;
}

#ok-map-navbar .nav-brand {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    margin-right: 16px;
}

#ok-map-navbar .nav-brand:hover {
    color: #ccc;
}

#ok-map-navbar .nav-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.ok-events-block {
    flex-shrink: 0;
    padding: 8px 16px;
    background: #141414;
    border-bottom: 1px solid #333;
    font-size: 12px;
    color: #ccc;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
}

.ok-events-block:empty {
    display: none;
}

.ok-events-calendar-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #333;
    border: 1px solid #555;
    color: #ddd;
    font-size: 12px;
    text-decoration: none;
    border-radius: 4px;
    flex-shrink: 0;
    margin-left: auto;
}

.ok-events-calendar-btn:hover {
    background: #444;
    color: #fff;
}

.ok-events-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ok-events-label {
    color: #888;
    flex-shrink: 0;
}

.ok-events-icon {
    width: 37px;
    height: 37px;
    vertical-align: middle;
}

.ok-events-name {
    margin-right: 12px;
}

.ok-events-empty {
    color: #666;
}

#ok-map-navbar label {
    color: #aaa;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

#ok-map-navbar input[type="checkbox"] {
    margin: 0;
}

#ok-mapHolder {
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

#ok-mapWrapper {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

#ok-mapRow {
    display: flex;
    gap: 0;
}

#ok-mapScroll {
    position: relative;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ok-align-info {
    flex-shrink: 0;
    width: 240px;
    min-height: 120px;
    padding: 16px;
    background: linear-gradient(180deg, #1a1a1a 0%, #141414 100%);
    border-left: 1px solid #333;
    font-size: 12px;
    color: #ddd;
    display: flex;
    flex-direction: column;
}

.ok-align-info-placeholder {
    color: #666;
    font-size: 13px;
    font-style: italic;
    padding: 24px 0;
    text-align: center;
    line-height: 1.5;
}

.ok-align-info-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ok-align-info-title {
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    color: #fff;
    border-bottom: 1px solid #333;
}

.ok-align-info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #222;
    line-height: 1.4;
}

.ok-align-info-row:last-child {
    border-bottom: none;
}

.ok-align-info-label {
    color: #888;
    flex-shrink: 0;
}

.ok-align-info-value {
    color: #fff;
    text-align: right;
    flex-shrink: 0;
}

.ok-align-info-deputy {
    padding-left: 12px;
    justify-content: flex-start;
}

.ok-align-info-deputy .ok-align-info-value {
    text-align: left;
    word-break: break-word;
    overflow-wrap: break-word;
}

.ok-align-info-link {
    color: #7eb8ff;
    text-decoration: none;
}

.ok-align-info-link:hover {
    color: #a8d4ff;
    text-decoration: underline;
}

#ok-mapContent {
    position: relative;
    flex-shrink: 0;
}

.ok-sector {
    cursor: default;
}

.ok-sector-tile {
    pointer-events: none;
}

.ok-sector-cell {
    background: transparent;
}

.ok-sector-grid .ok-sector-cell {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.ok-big-battle-swords {
    position: absolute;
    z-index: 6;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 26px;
    line-height: 1;
    color: #fff;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 6px;
    text-shadow: 0 0 2px #000, 0 1px 3px #000;
    pointer-events: none;
}

.ok-sector-num {
    position: absolute;
    z-index: 4;
    font-size: 10px;
    color: #fff;
    text-shadow: 0 1px 1px #000;
    pointer-events: none;
}



#ok-map-loading,
.ok-map-error {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #888;
    text-align: center;
    z-index: 10;
}

.ok-map-error {
    color: #c44;
    padding: 20px;
}

#ok-map-loading {
    padding: 40px;
}

.ok-sector-tooltip {
    display: none;
    position: fixed;
    z-index: 100;
    padding: 8px 12px;
    background: #1a1a1a;
    border: 1px solid #555;
    color: #ddd;
    font-size: 12px;
    line-height: 1.4;
    pointer-events: none;
    max-width: 220px;
}
