/* ===== QUANTUM DOCK INTERFACE ===== */

.station-modal {
    /* Positioning handled by canvas-scaling.css */
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.station-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(3px);
}

.quantum-dock-interface {
    position: relative;
    width: 1400px;
    height: 840px; /* Reduced from 900px to fit within canvas */
    background: radial-gradient(ellipse at center, #0d1421 0%, #050a12 70%, #000 100%);
    border: 2px solid #00ff88;
    border-radius: 15px;
    box-shadow:
        0 0 30px rgba(0, 255, 136, 0.3),
        inset 0 0 50px rgba(0, 212, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Courier New', 'Consolas', monospace;
    color: #e8f4ff;
}

/* Neural Header */
.dock-neural-header {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15) 0%, rgba(0, 212, 255, 0.1) 100%);
    border-bottom: 2px solid #00ff88;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.neural-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(0, 255, 136, 0.03) 21px,
            rgba(0, 255, 136, 0.03) 22px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 20px,
            rgba(0, 212, 255, 0.03) 21px,
            rgba(0, 212, 255, 0.03) 22px
        );
    animation: neural-pulse 4s infinite;
    pointer-events: none;
}

@keyframes neural-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.dock-status-array {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1;
    position: relative;
}

.connection-node {
    width: 12px;
    height: 12px;
    border: 2px solid #333;
    border-radius: 50%;
    background: #1a1a1a;
    transition: all 0.3s;
}

.connection-node.active {
    background: radial-gradient(circle, #00ff88 0%, #00cc66 100%);
    border-color: #00ff88;
    box-shadow: 
        0 0 8px rgba(0, 255, 136, 0.8),
        inset 0 0 4px rgba(255, 255, 255, 0.3);
    animation: connection-pulse 2s infinite;
}

@keyframes connection-pulse {
    0%, 70%, 100% { transform: scale(1); }
    35% { transform: scale(1.2); }
}

.dock-status-text {
    color: #00ff88;
    font-size: calc(11px * var(--global-font-scale));
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 15px;
}

.station-identity {
    text-align: center;
    z-index: 1;
    position: relative;
}

.station-designation {
    color: #ffaa00;
    font-size: calc(24px * var(--global-font-scale));
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(255, 170, 0, 0.6);
    margin-bottom: 5px;
}

.station-classification {
    color: #888;
    font-size: calc(12px * var(--global-font-scale));
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.station-coordinates {
    color: #666;
    font-size: calc(10px * var(--global-font-scale));
    letter-spacing: 2px;
}

.pilot-console {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1;
    position: relative;
}

.console-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.credit-matrix {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    position: relative;
    overflow: hidden;
}

.credit-flow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.2), transparent);
    animation: credit-flow 3s infinite;
    pointer-events: none;
}

@keyframes credit-flow {
    0% { left: -100%; }
    100% { left: 100%; }
}

.matrix-label {
    color: #00ff88;
    font-size: calc(9px * var(--global-font-scale));
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.credit-display {
    color: #e8f4ff;
    font-size: calc(16px * var(--global-font-scale));
    font-weight: bold;
    z-index: 1;
    position: relative;
}

.neural-disconnect-btn {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.8) 0%, rgba(204, 0, 0, 0.8) 100%);
    border: 2px solid #ff4444;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: calc(12px * var(--global-font-scale));
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.neural-disconnect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.5);
    border-color: #ff0000;
}

.disconnect-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.5s;
    pointer-events: none;
}

.neural-disconnect-btn:hover .disconnect-glow {
    left: 100%;
}

.neural-utility-btn {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.8) 0%, rgba(0, 136, 204, 0.8) 100%);
    border: 2px solid #00d4ff;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: calc(12px * var(--global-font-scale));
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.neural-utility-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
    border-color: #00aaff;
}

.utility-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.5s;
    pointer-events: none;
}

.neural-utility-btn:hover .utility-glow {
    left: 100%;
}

/* Dock Workspace */
.dock-workspace {
    flex: 1;
    display: flex;
    gap: 25px;
    padding: 25px;
    overflow: hidden;
}

/* Service Matrix */
.service-matrix {
    width: 350px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 136, 0.4);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.matrix-header {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    background: rgba(0, 255, 136, 0.1);
    border-bottom: 1px solid rgba(0, 255, 136, 0.3);
}

.header-scanline {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff88, transparent);
    position: relative;
}

.header-scanline::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 20px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    animation: scanline-sweep 3s infinite;
}

@keyframes scanline-sweep {
    0% { left: 0%; opacity: 0; }
    50% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.matrix-title {
    color: #00ff88;
    font-size: calc(12px * var(--global-font-scale));
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 20px;
}

.service-grid {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-node {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-node:hover {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.05);
    transform: translateX(5px);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.service-node.active {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.node-interface {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.node-icon {
    font-size: calc(20px * var(--global-font-scale));
    z-index: 1;
    position: relative;
}

.node-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    animation: node-pulse 2s infinite;
    pointer-events: none;
}

@keyframes node-pulse {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.service-node.active .node-pulse {
    border-color: rgba(0, 255, 136, 0.6);
}

.node-data {
    flex: 1;
}

.node-label {
    color: #e8f4ff;
    font-size: calc(14px * var(--global-font-scale));
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.node-desc {
    color: #888;
    font-size: calc(13px * var(--global-font-scale)); /* Increased from 10px for better readability */
    line-height: 1.3;
}

.node-connector {
    width: 4px;
    height: 20px;
    background: linear-gradient(to bottom, transparent, #00d4ff, transparent);
    border-radius: 2px;
    opacity: 0;
    transition: all 0.3s;
}

.service-node:hover .node-connector,
.service-node.active .node-connector {
    opacity: 1;
}

/* Neural Viewport */
.neural-viewport {
    flex: 1;
    position: relative;
}

.viewport-frame {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 10px;
    pointer-events: none;
}

.frame-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #00d4ff;
    pointer-events: none;
}

.frame-corner.tl {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
    border-radius: 10px 0 0 0;
}

.frame-corner.tr {
    top: -2px;
    right: -2px;
    border-left: none;
    border-bottom: none;
    border-radius: 0 10px 0 0;
}

.frame-corner.bl {
    bottom: -2px;
    left: -2px;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 10px;
}

.frame-corner.br {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 10px 0;
}

.viewport-content {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    height: 100%;
    overflow: auto;
    position: relative;
}

/* Neural Standby */
.neural-standby {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px;
}

.standby-hologram {
    position: relative;
    margin-bottom: 30px;
}

.hologram-station {
    font-size: calc(64px * var(--global-font-scale));
    color: #00d4ff;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8));
    animation: hologram-bob 3s ease-in-out infinite;
}

@keyframes hologram-bob {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

.hologram-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.ring {
    position: absolute;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.ring-1 {
    width: 80px;
    height: 80px;
    animation: ring-rotate 4s linear infinite;
}

.ring-2 {
    width: 100px;
    height: 100px;
    animation: ring-rotate 6s linear infinite reverse;
}

.ring-3 {
    width: 120px;
    height: 120px;
    animation: ring-rotate 8s linear infinite;
}

@keyframes ring-rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.standby-text {
    margin-bottom: 30px;
}

.system-greeting {
    color: #00d4ff;
    font-size: calc(18px * var(--global-font-scale));
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.system-instruction {
    color: #888;
    font-size: calc(12px * var(--global-font-scale));
    text-transform: uppercase;
    letter-spacing: 1px;
}

.station-diagnostics {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.diagnostic-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 6px;
    padding: 12px 15px;
}

.diag-label {
    color: #aaa;
    font-size: calc(10px * var(--global-font-scale));
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.diag-value {
    color: #00ff88;
    font-size: calc(11px * var(--global-font-scale));
    font-weight: bold;
}

.diag-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
}

.diag-status.active {
    background: #00ff88;
    box-shadow: 0 0 6px rgba(0, 255, 136, 0.8);
    animation: status-blink 2s infinite;
}

@keyframes status-blink {
    0%, 80%, 100% { opacity: 1; }
    90% { opacity: 0.3; }
}
/* Storage/Hangar Interface */
.storage-interface {
    padding: 20px;
    color: #e8f4ff;
}

.storage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 255, 136, 0.3);
}

.storage-header h3 {
    color: #00ff88;
    font-size: calc(18px * var(--global-font-scale));
    margin: 0;
}

.hangar-info {
    font-size: calc(12px * var(--global-font-scale));
    color: #aaa;
}

.item-count {
    color: #00d4ff;
    font-weight: bold;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.inventory-item {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 4px;
    padding: 12px;
    transition: all 0.3s;
}

.inventory-item:hover {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.05);
    transform: translateY(-2px);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.item-name {
    font-size: calc(14px * var(--global-font-scale));
    font-weight: bold;
    color: #e8f4ff;
}

.item-quantity {
    font-size: calc(16px * var(--global-font-scale));
    font-weight: bold;
    color: #00ff88;
}

.item-category {
    font-size: calc(11px * var(--global-font-scale));
    color: #00d4ff;
    text-transform: uppercase;
}

.empty-inventory {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-style: italic;
    font-size: calc(14px * var(--global-font-scale));
}
