/**
 * StarGrid Web - Cargo Hold Grid Styles
 */

.hold-workspace {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--bg-dark-void);
    padding: 16px;
    overflow: hidden;
}

.hold-container-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Directional Aft / Fore Indicators */
.direction-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 6px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.4);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1.4;
    user-select: none;
    z-index: 10;
}

.direction-marker.aft {
    border: 1px solid rgba(230, 57, 70, 0.4);
    color: #e63946;
    margin-right: 12px;
}

.direction-marker.fore {
    border: 1px solid rgba(42, 157, 143, 0.4);
    color: #2a9d8f;
    margin-left: 12px;
}

/* Grid Matrix Container */
.grid-container {
    position: relative;
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-dark-base);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
}

.cargo-grid-canvas {
    position: absolute;
    top: 0;
    left: 0;
    cursor: crosshair;
}

/* Labels Overlay */
.grid-labels-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.grid-zone-badge {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    cursor: pointer;
    padding: 2px 8px;
    background-color: rgba(9, 13, 19, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-sans);
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    transition: all 0.15s ease-in-out;
}

.grid-zone-badge:hover {
    transform: translate(-50%, -50%) scale(1.05);
    border-color: var(--star-cyan-primary);
    box-shadow: 0 0 10px var(--border-glow-cyan);
}

.grid-zone-badge.selected {
    background-color: #005f73;
    border: 2px solid #64d2ff;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(100, 210, 255, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
    z-index: 20;
}

/* Floating Action Bar */
.floating-action-bar {
    position: absolute;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background-color: var(--bg-dark-surface);
    border: 1px solid var(--star-cyan-primary);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 12px var(--border-glow-cyan);
    animation: fadeIn 0.15s ease-out;
}

.action-dest-title {
    font-size: 11px;
    font-weight: 800;
    color: #ffffff;
    margin-right: 4px;
}

.action-scu-tag {
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-mono);
    padding: 2px 6px;
    border-radius: 4px;
    background-color: rgba(0, 229, 255, 0.15);
    color: var(--star-cyan-primary);
    border: 1px solid rgba(0, 229, 255, 0.3);
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
}

.action-btn.delete-btn {
    color: #ff453a;
}

.action-btn.delete-btn:hover {
    background-color: rgba(255, 69, 58, 0.2);
    border-color: rgba(255, 69, 58, 0.4);
}

.action-btn.close-btn {
    color: var(--text-secondary);
}

.action-btn.close-btn:hover {
    background-color: var(--bg-dark-elevated);
    color: var(--text-primary);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
