/* DeviceRun — custom styles */

/* Signal bars */
.signal-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 20px;
}
.signal-bar {
    width: 5px;
    border-radius: 2px;
    background: var(--bs-secondary);
    transition: background 0.3s;
}
.signal-bar.active {
    background: var(--bs-success);
}
.signal-bar.active.warning {
    background: var(--bs-warning);
}
.signal-bar.active.danger {
    background: var(--bs-danger);
}
.signal-bar:nth-child(1) { height: 4px; }
.signal-bar:nth-child(2) { height: 8px; }
.signal-bar:nth-child(3) { height: 12px; }
.signal-bar:nth-child(4) { height: 16px; }
.signal-bar:nth-child(5) { height: 20px; }

/* Status dot */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.status-dot.online { background: var(--bs-success); }
.status-dot.offline { background: var(--bs-danger); }
.status-dot.warning { background: var(--bs-warning); }

/* Copy icon in table */
.copy-btn {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    border: none;
    background: none;
    color: inherit;
    padding: 0 4px;
}
.copy-btn:hover { opacity: 1; }

/* Stat card */
.stat-card {
    transition: transform 0.15s;
}
.stat-card:hover {
    transform: translateY(-2px);
}
.stat-card .card-body {
    padding: 1.25rem;
}
.stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}
.stat-label {
    color: var(--bs-secondary-color);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Action button spacing */
.btn-action { margin-right: 4px; }

/* Page header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* Confirmation modal input */
.confirm-input {
    max-width: 300px;
}

/* Table improvements */
.table td {
    vertical-align: middle;
}
.table .text-monospace {
    font-family: var(--bs-font-monospace);
    font-size: 0.85em;
}

/* VPS key display */
.key-display {
    font-family: var(--bs-font-monospace);
    font-size: 0.8rem;
    word-break: break-all;
    background: var(--bs-dark);
    padding: 0.75rem;
    border-radius: 4px;
    max-height: 150px;
    overflow-y: auto;
}
