/* Device Panel - Slide-in sidebar */
#device-panel { display: none; }
#device-panel.open { display: block; }

.dp-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 9998;
    backdrop-filter: blur(4px);
    animation: dpFadeIn 0.2s ease;
}

.dp-sidebar {
    position: fixed; top: 0; right: 0; width: 380px; max-width: 90vw;
    height: 100vh; background: #0f172a; border-left: 1px solid #1e293b;
    z-index: 9999; display: flex; flex-direction: column;
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
    animation: dpSlideIn 0.25s ease;
}

@keyframes dpFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes dpSlideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

.dp-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 1.5rem; border-bottom: 1px solid #1e293b;
}

.dp-title { display: flex; align-items: center; gap: 0.75rem; }

.dp-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(14,165,233,0.15); display: flex; align-items: center;
    justify-content: center; font-size: 1.3rem;
}

.dp-title h3 { font-size: 1rem; font-weight: 700; margin: 0; color: #f8fafc; }
.dp-type { font-size: 0.75rem; color: #94a3b8; }

.dp-close {
    width: 32px; height: 32px; border-radius: 8px; border: none;
    background: rgba(255,255,255,0.05); color: #94a3b8;
    font-size: 1.2rem; cursor: pointer; transition: all 0.15s;
}
.dp-close:hover { background: rgba(239,68,68,0.2); color: #ef4444; }

.dp-body { flex: 1; overflow-y: auto; padding: 1.5rem; }

.dp-status-bar {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.dp-status-badge {
    padding: 0.3rem 0.75rem; border-radius: 20px;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px;
}
.dp-status-badge.online { background: rgba(16,185,129,0.2); color: #10b981; }
.dp-status-badge.offline { background: rgba(239,68,68,0.2); color: #ef4444; }

.dp-zone {
    font-size: 0.8rem; color: #94a3b8; background: rgba(255,255,255,0.05);
    padding: 0.3rem 0.75rem; border-radius: 8px;
}

.dp-section { margin-bottom: 1.5rem; }

.dp-section-title {
    font-size: 0.7rem; font-weight: 600; color: #64748b;
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 0.75rem; padding-bottom: 0.5rem;
    border-bottom: 1px solid #1e293b;
}

.dp-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.03);
    font-size: 0.85rem;
}

.dp-label { color: #94a3b8; font-size: 0.8rem; }

.dp-conn {
    display: grid; grid-template-columns: 1fr auto auto;
    gap: 0.5rem; padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    font-size: 0.8rem; align-items: center;
}

.dp-conn-to { font-weight: 600; color: #f8fafc; }

.dp-conn-type {
    background: rgba(14,165,233,0.15); color: #0ea5e9;
    padding: 0.15rem 0.5rem; border-radius: 6px; font-size: 0.7rem;
    font-weight: 600; white-space: nowrap;
}

.dp-conn-port {
    color: #64748b; font-size: 0.75rem; font-family: monospace;
}

@media (max-width: 640px) {
    .dp-sidebar { width: 100vw; }
}
