/* ========================================
   ARMOZE MAP OVERLAY ZONE EDITOR
   Main Stylesheet Overrides
   ======================================== */

@import url('css/base.css');
@import url('css/layout.css');
@import url('css/components.css');
@import url('css/canvas.css');
@import url('css/zones.css');
@import url('css/modal.css');
@import url('css/extractor.css');

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
}

/* The map view should fill the whole workspace behind the floating chrome. */
.main-view-column {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    z-index: 1;
}

.canvas-container {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
}

/* Tabs float above the map instead of reserving layout space. */
.tab-bar {
    display: none;
    position: absolute;
    top: 12px;
    left: 96px;
    right: 760px;
    min-height: 32px;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    z-index: 110;
}

.tab-bar:has(.tab) {
    display: flex;
}

.tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    height: 32px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(8, 10, 14, 0.64);
    backdrop-filter: blur(28px) saturate(175%);
    -webkit-backdrop-filter: blur(28px) saturate(175%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
    cursor: grab;
    user-select: none;
    max-width: 200px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab:active {
    cursor: grabbing;
}

.tab:hover {
    background: rgba(14, 18, 24, 0.76);
    color: white;
    border-color: rgba(255, 255, 255, 0.1);
}

.tab.active {
    background: rgba(10, 14, 18, 0.84);
    color: var(--color-accent);
    border-color: rgba(var(--color-accent-rgb), 0.35);
    box-shadow: 0 14px 32px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.03);
}

.tab-icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.tab-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.tab-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    opacity: 0.58;
    border: none;
    background: transparent;
    color: inherit;
    padding: 0;
    transition: all 0.2s;
    flex-shrink: 0;
    cursor: pointer;
}

.tab:hover .tab-close {
    opacity: 0.78;
}

.tab-close:hover {
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.1);
    color: #ff4757;
}

.tab-dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.tab-drag-over {
    border-color: var(--color-accent);
    background: rgba(var(--color-accent-rgb), 0.1);
}

.tab-new {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    color: var(--color-text-secondary);
    border: none;
    cursor: pointer;
    margin-left: 4px;
    margin-bottom: 2px;
    background: rgba(8, 10, 14, 0.64);
    backdrop-filter: blur(28px) saturate(175%);
    -webkit-backdrop-filter: blur(28px) saturate(175%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.tab-new:hover {
    background: rgba(14, 18, 24, 0.76);
    color: var(--color-text-primary);
    border-color: rgba(255, 255, 255, 0.1);
}
