/* ============================================================
   Gateway-specific styles
   ============================================================ */

/* Status indicator (dot + label inline) */
.gw-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.gw-status-indicator .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.status-green   { background: var(--status-green);   box-shadow: 0 0 6px var(--status-green); }
.status-dot.status-amber   { background: var(--status-amber);   box-shadow: 0 0 6px var(--status-amber); }
.status-dot.status-red     { background: var(--status-red);     box-shadow: 0 0 6px var(--status-red); }
.status-dot.status-pending { background: var(--status-pending); box-shadow: 0 0 6px var(--status-pending); }

/* Clickable gateway rows */
.gw-row-clickable {
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out);
}
.gw-row-clickable:hover {
    background: var(--bg-subtle);
}

/* Gateway detail panel */
.gw-detail-header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.gw-detail-title-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.gw-detail-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

/* Install command input (wider) */
#gw-install-cmd {
    font-size: 11px;
    letter-spacing: -0.02em;
}

/* --- Responsive gateway styles --- */
@media (max-width: 768px) {
    .gw-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .gw-detail-name {
        font-size: 16px;
    }

    .gw-detail-title-row {
        flex-wrap: wrap;
        gap: var(--space-xs);
    }

    /* Make the gateway table scrollable */
    #view-gateways .table-wrapper table {
        min-width: 700px;
    }
}

@media (max-width: 480px) {
    .gw-detail-name {
        font-size: 14px;
    }
}
