/* Premium Developer Portal Styles */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0176D3, #1B96FF);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #014486, #0176D3);
}

/* Enhanced focus states */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(1, 118, 211, 0.3);
}

/* Smooth page transitions */
.page-transition {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Advanced card hover effects */
.card-float {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-float:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(1, 118, 211, 0.1);
}

/* Pulsing animation for CTAs */
@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(1, 118, 211, 0.4);
    }
    50% { 
        box-shadow: 0 0 30px rgba(1, 118, 211, 0.6);
    }
}

.pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* Gradient text animations */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-animate {
    background: linear-gradient(-45deg, #0176D3, #1B96FF, #00D4AA, #16325C);
    background-size: 400% 400%;
    animation: gradient-shift 6s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading states */
@keyframes skeleton-loading {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s infinite;
}

/* Enhanced button styles */
.btn-premium {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0176D3, #1B96FF);
    transition: all 0.3s ease;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-premium:hover::before {
    left: 100%;
}

/* Advanced form field styles */
.form-field-premium {
    position: relative;
}

.form-field-premium input:focus + .field-label,
.form-field-premium input:not(:placeholder-shown) + .field-label {
    transform: translateY(-1.5rem) scale(0.875);
    color: #0176D3;
}

.field-label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 0 0.5rem;
    color: #6B7280;
    transition: all 0.2s ease;
    pointer-events: none;
}

/* Status indicators */
.status-indicator {
    position: relative;
}

.status-indicator::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-active::before { background: #10B981; }
.status-pending::before { background: #F59E0B; }
.status-blocked::before { background: #EF4444; }
.status-completed::before { background: #3B82F6; }

/* Glass morphism effects */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Advanced table styles */
.table-premium tbody tr {
    transition: all 0.2s ease;
}

.table-premium tbody tr:hover {
    background: linear-gradient(90deg, rgba(1, 118, 211, 0.05), rgba(27, 150, 255, 0.05));
    transform: scale(1.005);
}

/* Floating action button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0176D3, #1B96FF);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(1, 118, 211, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(1, 118, 211, 0.6);
}

/* Enhanced tooltip */
.tooltip-premium {
    position: relative;
}

.tooltip-premium::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.tooltip-premium:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Page loading animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0176D3, #1B96FF, #00D4AA);
    background-size: 200% 100%;
    animation: loading-bar 2s infinite;
    z-index: 9999;
}

@keyframes loading-bar {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Responsive design enhancements */
@media (max-width: 768px) {
    .card-float:hover {
        transform: none;
    }
    
    .fab {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .glass-card {
        background: rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .field-label {
        background: #1F2937;
    }
    
    ::-webkit-scrollbar-track {
        background: #374151;
    }
}

/* Print styles */
@media print {
    .fab,
    .tooltip-premium::after,
    .page-loader {
        display: none !important;
    }
    
    .card-float,
    .glass-card {
        box-shadow: none !important;
        border: 1px solid #e5e7eb !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for better keyboard navigation */
.focus-visible:focus-visible {
    outline: 2px solid #0176D3;
    outline-offset: 2px;
}

/* ============================================================
   NetMap App Styles
   Scoped under .netmap-app to isolate from Tailwind/global CSS
   ============================================================ */

.netmap-app { background: #0f1117; color: #e0e0e0; min-height: 100%; }

/* ── Shared subnav ── */
.netmap-subnav {
  background: #161822;
  border-bottom: 1px solid #2a2d3a;
  padding: 0.6rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.netmap-subnav .brand { font-size: 1rem; font-weight: 700; color: #7c8aff; text-decoration: none; }
.netmap-subnav a { color: #9ca3af; text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.netmap-subnav a:hover, .netmap-subnav a.active { color: #e0e0e0; }

/* ── Landing ── */
.netmap-app .hero { text-align: center; padding: 6rem 2rem 3rem; }
.netmap-app .hero h1 { font-size: 2.75rem; font-weight: 800; background: linear-gradient(135deg, #7c8aff, #4ff8d2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 1rem; }
.netmap-app .hero p { color: #9ca3af; font-size: 1.1rem; max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.6; }
.netmap-app .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.netmap-app .card { background: #161822; border: 1px solid #2a2d3a; border-radius: 12px; padding: 2rem; transition: border-color 0.2s; }
.netmap-app .card:hover { border-color: #7c8aff; }
.netmap-app .card h3 { color: #7c8aff; margin-bottom: 0.5rem; font-size: 1.1rem; }
.netmap-app .card p { color: #9ca3af; font-size: 0.9rem; line-height: 1.5; }
.netmap-app .cta { display: inline-block; margin-top: 2rem; padding: 0.75rem 2rem; background: #7c8aff; color: #0f1117; border-radius: 8px; text-decoration: none; font-weight: 600; transition: background 0.2s; }
.netmap-app .cta:hover { background: #6b79ee; }

/* ── Network Map ── */
.netmap-app .map-page { display: flex; height: calc(100vh - 96px); position: relative; }
.netmap-app .sidebar { width: 260px; background: #161822; border-right: 1px solid #2a2d3a; padding: 1.5rem 1rem; overflow-y: auto; flex-shrink: 0; transition: width 0.25s ease, padding 0.25s ease; }
.netmap-app .sidebar.collapsed { width: 0; padding: 1.5rem 0; overflow: hidden; border-right: none; }
.netmap-app .sidebar h2 { font-size: 0.85rem; text-transform: uppercase; color: #7c8aff; letter-spacing: 0.05em; margin-bottom: 1rem; white-space: nowrap; }
.netmap-app .sidebar-toggle { position: absolute; top: 0.6rem; left: 260px; z-index: 20; background: #161822; border: 1px solid #2a2d3a; border-left: none; color: #9ca3af; padding: 0.4rem 0.3rem; border-radius: 0 6px 6px 0; cursor: pointer; font-size: 0.85rem; line-height: 1; transition: left 0.25s ease, color 0.15s; }
.netmap-app .sidebar-toggle:hover { color: #7c8aff; }
.netmap-app .sidebar-toggle.collapsed { left: 0; }
.netmap-app .node-list { list-style: none; }
.netmap-app .node-list li { padding: 0.4rem 0.6rem; border-radius: 6px; font-size: 0.85rem; color: #9ca3af; cursor: pointer; transition: background 0.15s; display: flex; align-items: center; gap: 0.5rem; }
.netmap-app .node-list li:hover { background: #1e2030; color: #e0e0e0; }
.netmap-app .node-list li.selected { background: #7c8aff1a; color: #e0e0e0; border-left: 2px solid #7c8aff; padding-left: calc(0.6rem - 2px); }
.netmap-app .cat-section { margin-bottom: 0.75rem; }
.netmap-app .cat-header { display: flex; align-items: center; justify-content: space-between; padding: 0.3rem 0.4rem; margin-bottom: 0.25rem; }
.netmap-app .cat-title { font-size: 0.8rem; text-transform: uppercase; color: #6b7280; letter-spacing: 0.04em; display: flex; align-items: center; gap: 0.35rem; }
.netmap-app .cat-count { background: #1e2030; color: #6b7280; font-size: 0.7rem; padding: 0.05rem 0.4rem; border-radius: 8px; }
.netmap-app .cat-toggle { background: none; border: 1px solid #2a2d3a; color: #4b5563; border-radius: 4px; font-size: 0.75rem; padding: 0.1rem 0.35rem; cursor: pointer; transition: all 0.15s; line-height: 1; }
.netmap-app .cat-toggle:hover { color: #7c8aff; border-color: #7c8aff; }
.netmap-app .cat-toggle.active { color: #7c8aff; border-color: #7c8aff; background: #7c8aff1a; }
.netmap-app .node-list .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.netmap-app .dot.office { background: #4ff8d2; }
.netmap-app .dot.aws { background: #ff9f43; }
.netmap-app .dot.lightsail { background: #b47cff; }
.netmap-app .group-item { padding: 0.45rem 0.6rem; border-radius: 8px; margin-bottom: 0.3rem; cursor: pointer; transition: background 0.15s, border-color 0.15s; border: 1px solid transparent; }
.netmap-app .group-item:hover { background: #1e2030; }
.netmap-app .group-item.active { border-color: var(--gc); background: #1e2030; }
.netmap-app .group-item .gi-head { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.15rem; }
.netmap-app .group-item .gi-icon { font-size: 0.9rem; }
.netmap-app .group-item .gi-name { font-size: 0.8rem; font-weight: 600; }
.netmap-app .group-item .gi-count { margin-left: auto; font-size: 0.7rem; padding: 0.05rem 0.35rem; border-radius: 8px; background: #ffffff0a; }
.netmap-app .group-item .gi-desc { font-size: 0.7rem; color: #6b7280; padding-left: 1.3rem; }
.netmap-app .canvas-wrap { flex: 1; position: relative; overflow: hidden; }
.netmap-app #networkCanvas { width: 100%; height: 100%; display: block; cursor: grab; }
.netmap-app #networkCanvas:active { cursor: grabbing; }
.netmap-app .detail-panel { display: none; position: absolute; top: 1rem; right: 1rem; width: 300px; background: #1a1c2b; border: 1px solid #2a2d3a; border-radius: 10px; padding: 1.25rem; z-index: 10; }
.netmap-app .detail-panel.visible { display: block; }
.netmap-app .detail-name-wrap { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.netmap-app .detail-name-wrap h3 { color: #7c8aff; margin: 0; }
.netmap-app .edit-name-btn { background: none; border: 1px solid #2a2d3a; color: #9ca3af; cursor: pointer; border-radius: 4px; font-size: 0.85rem; padding: 0.15rem 0.4rem; transition: color 0.15s, border-color 0.15s; }
.netmap-app .edit-name-btn:hover { color: #7c8aff; border-color: #7c8aff; }
.netmap-app .detail-name-edit { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.75rem; }
.netmap-app .detail-name-edit input { flex: 1; background: #0f1117; border: 1px solid #2a2d3a; color: #e0e0e0; border-radius: 6px; padding: 0.35rem 0.5rem; font-size: 0.9rem; outline: none; }
.netmap-app .detail-name-edit input:focus { border-color: #7c8aff; }
.netmap-app .save-name-btn { background: #7c8aff; color: #0f1117; border: none; border-radius: 6px; padding: 0.35rem 0.75rem; font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.netmap-app .save-name-btn:hover { background: #6b79ee; }
.netmap-app .cancel-name-btn { background: none; border: none; color: #6b7280; cursor: pointer; font-size: 1rem; }
.netmap-app .detail-panel dl { font-size: 0.85rem; }
.netmap-app .detail-panel dt { color: #6b7280; margin-top: 0.5rem; }
.netmap-app .detail-panel dd { color: #e0e0e0; }
.netmap-app .detail-panel .close-btn { position: absolute; top: 0.75rem; right: 0.75rem; background: none; border: none; color: #6b7280; cursor: pointer; font-size: 1.1rem; }
.netmap-app .detail-link-btn { display: block; margin-top: 1rem; padding: 0.5rem 1rem; background: #7c8aff; color: #0f1117; border-radius: 6px; text-decoration: none; text-align: center; font-weight: 600; font-size: 0.85rem; transition: background 0.2s; }
.netmap-app .detail-link-btn:hover { background: #6b79ee; }
.netmap-app .legend { position: absolute; bottom: 1rem; left: 1rem; background: #161822ee; border: 1px solid #2a2d3a; border-radius: 8px; padding: 0.75rem 1rem; font-size: 0.8rem; display: flex; gap: 1.25rem; }
.netmap-app .legend span { display: flex; align-items: center; gap: 0.4rem; color: #9ca3af; }
.netmap-app .map-controls { position: absolute; top: 1rem; left: 1rem; display: flex; gap: 0.5rem; z-index: 10; }
.netmap-app .ctrl-btn { background: #161822ee; border: 1px solid #2a2d3a; color: #9ca3af; border-radius: 6px; padding: 0.35rem 0.7rem; font-size: 0.8rem; cursor: pointer; transition: color 0.15s, border-color 0.15s; }
.netmap-app .ctrl-btn:hover { color: #7c8aff; border-color: #7c8aff; }
.netmap-app .create-group-btn { color: #4ff8d2 !important; border-color: #4ff8d2 !important; }
.netmap-app .create-group-btn:hover { background: #4ff8d21a !important; }
.netmap-app .modal-overlay { position: fixed; inset: 0; z-index: 100; background: #0008; display: flex; align-items: center; justify-content: center; }
.netmap-app .modal-box { background: #161822; border: 1px solid #2a2d3a; border-radius: 12px; padding: 2rem; width: 420px; max-width: 90vw; }
.netmap-app .modal-box h2 { color: #e0e0e0; margin-bottom: 0.25rem; font-size: 1.2rem; }
.netmap-app .modal-sub { color: #6b7280; font-size: 0.85rem; margin-bottom: 1.25rem; }
.netmap-app .modal-box label { display: block; color: #6b7280; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.3rem; margin-top: 0.75rem; }
.netmap-app .modal-box input, .netmap-app .modal-box textarea { width: 100%; background: #0f1117; border: 1px solid #2a2d3a; color: #e0e0e0; border-radius: 6px; padding: 0.5rem 0.65rem; font-size: 0.9rem; outline: none; font-family: inherit; resize: vertical; }
.netmap-app .modal-box input:focus, .netmap-app .modal-box textarea:focus { border-color: #7c8aff; }
.netmap-app .modal-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1.25rem; }
.netmap-app .modal-cancel { background: none; border: 1px solid #2a2d3a; color: #9ca3af; border-radius: 6px; padding: 0.45rem 1rem; cursor: pointer; font-size: 0.85rem; }
.netmap-app .modal-cancel:hover { color: #e0e0e0; border-color: #6b7280; }
.netmap-app .modal-confirm { background: #7c8aff; color: #0f1117; border: none; border-radius: 6px; padding: 0.45rem 1.25rem; font-weight: 600; cursor: pointer; font-size: 0.85rem; }
.netmap-app .modal-confirm:hover { background: #6b79ee; }

/* ── Groups ── */
.netmap-app .groups-page { display: flex; height: calc(100vh - 96px); }
.netmap-app .groups-sidebar { width: 260px; background: #161822; border-right: 1px solid #2a2d3a; padding: 1.25rem 1rem; overflow-y: auto; flex-shrink: 0; }
.netmap-app .groups-sidebar h2 { font-size: 0.85rem; text-transform: uppercase; color: #7c8aff; letter-spacing: 0.05em; margin-bottom: 1rem; }
.netmap-app .group-list { list-style: none; }
.netmap-app .group-item { padding: 0.65rem 0.75rem; border-radius: 8px; cursor: pointer; transition: background 0.15s; margin-bottom: 0.35rem; border: 1px solid transparent; }
.netmap-app .group-item:hover { background: #1e2030; }
.netmap-app .group-item.active { background: #7c8aff12; border-color: #7c8aff44; }
.netmap-app .group-item .group-name { font-size: 0.9rem; color: #e0e0e0; font-weight: 600; display: flex; align-items: center; justify-content: space-between; }
.netmap-app .group-item .group-name .node-count { font-size: 0.7rem; color: #6b7280; font-weight: 400; background: #1e2030; padding: 0.1rem 0.4rem; border-radius: 8px; }
.netmap-app .group-item .group-desc { font-size: 0.75rem; color: #6b7280; margin-top: 0.2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.netmap-app .group-actions { display: flex; gap: 0.4rem; margin-top: 0.4rem; }
.netmap-app .group-actions button { background: none; border: 1px solid #2a2d3a; color: #6b7280; border-radius: 4px; padding: 0.15rem 0.45rem; font-size: 0.7rem; cursor: pointer; transition: all 0.15s; }
.netmap-app .group-actions button:hover { color: #e0e0e0; border-color: #6b7280; }
.netmap-app .group-actions .delete-btn:hover { color: #ff6b6b; border-color: #ff6b6b; }
.netmap-app .empty-sidebar { text-align: center; padding: 2rem 0.5rem; color: #4b5563; font-size: 0.85rem; }
.netmap-app .empty-sidebar a { color: #7c8aff; }
.netmap-app .groups-content { flex: 1; display: flex; overflow: hidden; }
.netmap-app .no-group-selected { display: flex; align-items: center; justify-content: center; width: 100%; color: #4b5563; font-size: 1rem; }
.netmap-app .group-info-panel { flex: 1; overflow-y: auto; padding: 1.5rem 2rem; min-width: 0; }
.netmap-app .gi-header { margin-bottom: 1.5rem; }
.netmap-app .gi-header h1 { font-size: 1.5rem; color: #e0e0e0; font-weight: 700; margin-bottom: 0.3rem; }
.netmap-app .gi-header .gi-desc { color: #9ca3af; font-size: 0.9rem; margin-bottom: 0.75rem; }
.netmap-app .gi-meta-row { display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: 0.8rem; color: #6b7280; }
.netmap-app .gi-meta-row span { display: flex; align-items: center; gap: 0.35rem; }
.netmap-app .gi-meta-row i { color: #4b5563; }
.netmap-app .gi-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.netmap-app .gi-stat-card { background: #1a1c2e; border: 1px solid #2a2d3a; border-radius: 10px; padding: 0.85rem 1rem; }
.netmap-app .gi-stat-card .stat-val { font-size: 1.4rem; font-weight: 700; color: #e0e0e0; }
.netmap-app .gi-stat-card .stat-label { font-size: 0.75rem; color: #6b7280; margin-top: 0.15rem; }
.netmap-app .gi-section-title { font-size: 0.8rem; text-transform: uppercase; color: #7c8aff; letter-spacing: 0.04em; margin-bottom: 0.6rem; margin-top: 0.25rem; }
.netmap-app .env-breakdown { display: flex; gap: 0.6rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.netmap-app .env-chip { display: flex; align-items: center; gap: 0.4rem; background: #1a1c2e; border: 1px solid #2a2d3a; border-radius: 8px; padding: 0.4rem 0.75rem; font-size: 0.8rem; color: #9ca3af; }
.netmap-app .env-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.netmap-app .env-dot.office { background: #4ff8d2; }
.netmap-app .env-dot.aws { background: #ff9f43; }
.netmap-app .env-dot.lightsail { background: #b47cff; }
.netmap-app .gi-node-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.netmap-app .gi-node-table th { text-align: left; font-size: 0.7rem; text-transform: uppercase; color: #6b7280; letter-spacing: 0.04em; padding: 0.5rem 0.75rem; border-bottom: 1px solid #2a2d3a; }
.netmap-app .gi-node-table td { padding: 0.55rem 0.75rem; font-size: 0.8rem; color: #c9cdd5; border-bottom: 1px solid #1e2030; }
.netmap-app .gi-node-table tr:hover td { background: #1a1c2e; }
.netmap-app .gi-node-table .env-badge { display: inline-block; padding: 0.1rem 0.45rem; border-radius: 4px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; }
.netmap-app .env-badge.office { background: #4ff8d214; color: #4ff8d2; }
.netmap-app .env-badge.aws { background: #ff9f4314; color: #ff9f43; }
.netmap-app .env-badge.lightsail { background: #b47cff14; color: #b47cff; }
.netmap-app .node-link { color: #7c8aff; text-decoration: none; font-weight: 500; }
.netmap-app .node-link:hover { text-decoration: underline; }
.netmap-app .gi-conn-table { width: 100%; border-collapse: collapse; }
.netmap-app .gi-conn-table th { text-align: left; font-size: 0.7rem; text-transform: uppercase; color: #6b7280; letter-spacing: 0.04em; padding: 0.5rem 0.75rem; border-bottom: 1px solid #2a2d3a; }
.netmap-app .gi-conn-table td { padding: 0.45rem 0.75rem; font-size: 0.8rem; color: #c9cdd5; border-bottom: 1px solid #1e2030; }
.netmap-app .gi-conn-table tr:hover td { background: #1a1c2e; }
.netmap-app .conn-arrow { color: #4b5563; margin: 0 0.25rem; }
.netmap-app .group-map-panel { width: 420px; flex-shrink: 0; border-left: 1px solid #2a2d3a; background: #12141f; display: flex; flex-direction: column; }
.netmap-app .map-panel-header { padding: 0.75rem 1rem; border-bottom: 1px solid #2a2d3a; display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; color: #6b7280; }
.netmap-app .map-panel-header .legend { display: flex; gap: 0.75rem; }
.netmap-app .map-panel-header .legend span { display: flex; align-items: center; gap: 0.3rem; }
.netmap-app #groupCanvas { flex: 1; display: block; }

/* ── Device Detail ── */
.netmap-app .detail-page { max-width: 900px; margin: 2rem auto; padding: 0 2rem; }
.netmap-app .back-link { display: inline-flex; align-items: center; gap: 0.4rem; color: #7c8aff; text-decoration: none; font-size: 0.9rem; margin-bottom: 1.5rem; transition: color 0.15s; }
.netmap-app .back-link:hover { color: #9ba6ff; }
.netmap-app .device-header { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 2rem; }
.netmap-app .device-icon { width: 64px; height: 64px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; flex-shrink: 0; }
.netmap-app .device-icon.office    { background: #0d2e2a; border: 2px solid #4ff8d2; }
.netmap-app .device-icon.aws       { background: #2e1f0d; border: 2px solid #ff9f43; }
.netmap-app .device-icon.lightsail { background: #1f0d2e; border: 2px solid #b47cff; }
.netmap-app .device-header h1 { font-size: 1.75rem; font-weight: 700; color: #e0e0e0; margin: 0; }
.netmap-app .device-header .device-sub { font-size: 0.9rem; color: #6b7280; margin-top: 0.2rem; }
.netmap-app .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 2rem; }
@media (max-width: 600px) { .netmap-app .info-grid { grid-template-columns: 1fr; } }
.netmap-app .info-card { background: #161822; border: 1px solid #2a2d3a; border-radius: 10px; padding: 1.25rem; }
.netmap-app .info-card h3 { font-size: 0.75rem; text-transform: uppercase; color: #6b7280; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.netmap-app .info-card .value { font-size: 1.1rem; color: #e0e0e0; word-break: break-all; }
.netmap-app .info-card .value.env-office    { color: #4ff8d2; }
.netmap-app .info-card .value.env-aws       { color: #ff9f43; }
.netmap-app .info-card .value.env-lightsail { color: #b47cff; }
.netmap-app .details-table { width: 100%; background: #161822; border: 1px solid #2a2d3a; border-radius: 10px; overflow: hidden; margin-bottom: 2rem; }
.netmap-app .details-table h3 { font-size: 0.75rem; text-transform: uppercase; color: #6b7280; letter-spacing: 0.05em; padding: 1rem 1.25rem 0.5rem; }
.netmap-app .details-table table { width: 100%; border-collapse: collapse; }
.netmap-app .details-table td { padding: 0.6rem 1.25rem; font-size: 0.9rem; border-top: 1px solid #1e2030; }
.netmap-app .details-table td:first-child { color: #6b7280; width: 160px; white-space: nowrap; }
.netmap-app .details-table td:last-child { color: #e0e0e0; }
.netmap-app .connections-section { background: #161822; border: 1px solid #2a2d3a; border-radius: 10px; padding: 1.25rem; margin-bottom: 2rem; }
.netmap-app .connections-section h3 { font-size: 0.75rem; text-transform: uppercase; color: #6b7280; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.netmap-app .conn-list { list-style: none; }
.netmap-app .conn-list li { padding: 0.4rem 0; display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.netmap-app .conn-list li a { color: #7c8aff; text-decoration: none; }
.netmap-app .conn-list li a:hover { text-decoration: underline; }
.netmap-app .conn-list .conn-label { color: #6b7280; font-size: 0.8rem; }
.netmap-app .conn-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.netmap-app .conn-dot.office    { background: #4ff8d2; }
.netmap-app .conn-dot.aws       { background: #ff9f43; }
.netmap-app .conn-dot.lightsail { background: #b47cff; }
.netmap-app .not-found { text-align: center; padding: 4rem 2rem; color: #6b7280; }
.netmap-app .not-found h2 { color: #e0e0e0; margin-bottom: 0.5rem; }

/* SkipFlo red gradient utilities */
.from-sf-red { --tw-gradient-from: #e02020 var(--tw-gradient-from-position); --tw-gradient-to: rgba(224,32,32,0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-sf-red { --tw-gradient-to: #e02020 var(--tw-gradient-to-position); }
.to-sf-red-dark { --tw-gradient-to: #b91c1c var(--tw-gradient-to-position); }
.hover\:from-sf-red-dark:hover { --tw-gradient-from: #b91c1c var(--tw-gradient-from-position); --tw-gradient-to: rgba(185,28,28,0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.hover\:to-sf-red:hover { --tw-gradient-to: #e02020 var(--tw-gradient-to-position); }

/* Standard red gradient shades missing from purged Tailwind build */
.from-red-600 { --tw-gradient-from: #dc2626 var(--tw-gradient-from-position); --tw-gradient-to: rgba(220,38,38,0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-red-700 { --tw-gradient-from: #b91c1c var(--tw-gradient-from-position); --tw-gradient-to: rgba(185,28,28,0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-red-800 { --tw-gradient-from: #991b1b var(--tw-gradient-from-position); --tw-gradient-to: rgba(153,27,27,0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-red-600 { --tw-gradient-to: #dc2626 var(--tw-gradient-to-position); }
.to-red-700 { --tw-gradient-to: #b91c1c var(--tw-gradient-to-position); }
.to-red-800 { --tw-gradient-to: #991b1b var(--tw-gradient-to-position); }
.hover\:from-red-700:hover { --tw-gradient-from: #b91c1c var(--tw-gradient-from-position); --tw-gradient-to: rgba(185,28,28,0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.hover\:from-red-800:hover { --tw-gradient-from: #991b1b var(--tw-gradient-from-position); --tw-gradient-to: rgba(153,27,27,0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.hover\:to-red-700:hover { --tw-gradient-to: #b91c1c var(--tw-gradient-to-position); }
.hover\:to-red-800:hover { --tw-gradient-to: #991b1b var(--tw-gradient-to-position); }
