/* ==========================================================================
   DelightViewer - Workspace & Navigation
   Workspace shell, top header, sidebar navigation, and sidebar account controls.
   ========================================================================== */

/* Workspace shell */
.workspace-screen {
  display: none;
  height: 100vh;
  width: 100vw;
  flex-direction: column;
  overflow: hidden;
}

.app-workspace-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  width: 100vw;
}

/* Top application header */
.workspace-brand {
  user-select: none;
}

.workspace-brand-logo-wrap {
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
}

.workspace-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.75));
}

.workspace-brand-name {
  letter-spacing: 0.5px;
}

.header-job-selector {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.workspace-job-status {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #34d399;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}

.workspace-create-well-btn {
  display: none;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.fleet-header-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-header-controls {
  display: none;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  margin-left: 1.5rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Sidebar navigation */
#adminTabBtn {
  display: none;
}

.sidebar-footer {
  padding: 0.75rem 0.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-credit-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: #f1f5f9;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  box-sizing: border-box;
}

.sidebar-credit-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-credit-icon {
  font-size: 0.9rem;
}

.sidebar-credit-value {
  color: #00f2fe;
  font-weight: 800;
}

/* Sidebar user account */
.sidebar-user-panel {
  background: #090d16;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.sidebar-user-details {
  min-width: 0;
  flex: 1;
}

.sidebar-user-name,
.sidebar-user-role {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-name {
  font-weight: 700;
  font-size: 0.78rem;
  color: #ffffff;
}

.sidebar-user-role {
  font-size: 0.65rem;
  color: #00f2fe;
  font-weight: 600;
}

.sidebar-logout-btn {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.sidebar-logout-icon {
  flex-shrink: 0;
}
