/* ============================================
   APPS LOADER STYLES
   Security Operations Hub - Standalone Tools Integration
   ============================================ */

/* Nav Section Label */
.nav-section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 16px 12px 8px 12px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}

/* Apps Nav Items - slightly different styling to differentiate */
.nav-item-app {
  position: relative;
}

.nav-item-app::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--accent-purple);
  border-radius: 0 2px 2px 0;
  transition: height 0.15s ease;
}

.nav-item-app:hover::before,
.nav-item-app.active::before {
  height: 20px;
}

.nav-item-app.active {
  background: var(--accent-purple-dim);
  color: var(--accent-purple);
}

/* Apps Nav Section Container */
#appsNavSection {
  padding-top: 0;
}

/* ============================================
   APP VIEWPORT
   ============================================ */

.app-viewport {
  display: none;
  flex-direction: column;
  height: calc(100vh - 56px);
  background: var(--bg-base);
}

.app-viewport.active {
  display: flex;
}

/* Viewport Header */
.app-viewport-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.app-viewport-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
}

.app-viewport-icon {
  font-size: 18px;
}

.app-viewport-actions {
  display: flex;
  gap: 8px;
}

.app-viewport-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 14px;
}

.app-viewport-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border);
}

.app-viewport-close:hover {
  background: var(--accent-red-dim);
  color: var(--accent-red);
  border-color: var(--accent-red);
}

/* App Iframe */
.app-iframe {
  flex: 1;
  width: 100%;
  border: none;
  background: #0a0e14; /* Match ExacqVision Auditor bg */
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .app-viewport-header {
    padding: 10px 12px;
  }
  
  .app-viewport-title span:not(.app-viewport-icon) {
    display: none;
  }
}
