:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121e;
  --card-bg: rgba(22, 22, 37, 0.6);
  --card-border: rgba(255, 255, 255, 0.07);
  --accent-color: #7b2cbf;
  --accent-glow: rgba(123, 44, 191, 0.4);
  --blue-color: #00b4d8;
  --text-primary: #ffffff;
  --text-secondary: #9ea4c0;
  --text-muted: #62688f;
  --success-color: #2ec4b6;
  --error-color: #ff5400;
  
  --folder-color: #ffb703;
  --pdf-color: #ff4d6d;
  --excel-color: #38b000;
  --image-color: #00b4d8;
  --file-color: #e0e1dd;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background Glow Effects */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.8;
}

.bg-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(123, 44, 191, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
  top: -100px;
  right: -50px;
}

.bg-glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  bottom: -150px;
  left: -100px;
}

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

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color), #5a189a);
  color: var(--text-primary);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123, 44, 191, 0.6);
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
  background: rgba(255, 84, 0, 0.1);
  border: 1px solid rgba(255, 84, 0, 0.2);
  color: #ff6b35;
}

.btn-danger:hover {
  background: rgba(255, 84, 0, 0.25);
  border-color: #ff6b35;
  transform: scale(1.02);
}

.btn-danger-hover:hover {
  background: rgba(255, 84, 0, 0.15) !important;
  border-color: rgba(255, 84, 0, 0.3) !important;
  color: #ff6b35 !important;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 6px;
}

.btn-icon-only {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-icon-only:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 30px;
}

/* Layout views */
.view {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.view.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
}

/* VIEW 1: DASHBOARD VIEW */
#dashboard-view {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: 100vh;
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo .icon {
  font-size: 28px;
}

.logo h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo h1 span {
  color: var(--blue-color);
}

.server-status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.online {
  background-color: var(--success-color);
  box-shadow: 0 0 8px var(--success-color);
}

.status-dot.offline {
  background-color: var(--error-color);
  box-shadow: 0 0 8px var(--error-color);
}

.dashboard-grid {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: start;
}

.directory-panel {
  flex: 1.2;
  min-width: 0;
}

.admin-panel {
  flex: 1;
  min-width: 0;
}

@media (max-width: 900px) {
  .dashboard-grid {
    flex-direction: column;
  }
  .directory-panel, .admin-panel {
    width: 100%;
  }
}

.connect-panel h2, .directory-panel h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.input-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s;
}

.input-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.input-group input {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px;
  border-radius: 10px;
  font-family: inherit;
  color: var(--text-primary);
  font-size: 16px;
  outline: none;
  transition: all 0.2s;
}

.input-group input:focus {
  border-color: var(--blue-color);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
  background: rgba(0, 0, 0, 0.3);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-group input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent-color);
}

.connect-form button {
  width: 100%;
  margin-top: 10px;
}

.error-text {
  background: rgba(255, 84, 0, 0.1);
  border: 1px solid rgba(255, 84, 0, 0.2);
  color: #ff6b35;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 15px;
  text-align: center;
}

.hidden {
  display: none !important;
}

/* Directory stack (Saved & Live) */
.directory-stack {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.directory-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.badge {
  background: rgba(0, 180, 216, 0.12);
  border: 1px solid rgba(0, 180, 216, 0.2);
  color: var(--blue-color);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.agents-table-container {
  overflow-x: auto;
}

.agents-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.agents-table th {
  padding: 12px 10px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.agents-table td {
  padding: 12px 10px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.agents-table tbody tr {
  transition: background 0.2s;
}

.agents-table tbody tr.clickable {
  cursor: pointer;
}

.agents-table tbody tr.clickable:hover {
  background: rgba(255, 255, 255, 0.02);
}

.agents-table .empty-row td {
  text-align: center;
  color: var(--text-muted);
  padding: 30px;
  font-style: italic;
  cursor: default;
}

.agents-table .empty-row:hover {
  background: transparent;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 12px;
}

.status-pill.ready, .status-pill.online {
  background: rgba(46, 196, 182, 0.12);
  color: var(--success-color);
  border: 1px solid rgba(46, 196, 182, 0.2);
}

.status-pill.busy {
  background: rgba(0, 180, 216, 0.12);
  color: var(--blue-color);
  border: 1px solid rgba(0, 180, 216, 0.2);
}

.status-pill.offline {
  background: rgba(255, 84, 0, 0.1);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* VIEW 2: ACTIVE SESSION VIEW */
#session-view {
  height: 100vh;
  width: 100vw;
  background: #050508;
  display: none;
}

#session-view.active {
  display: flex;
}

.session-bar {
  height: 64px;
  background: #0d0d15;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10;
  flex-shrink: 0;
}

.session-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-back {
  border-radius: 50%;
  font-size: 16px;
}

.session-info h2 {
  font-size: 16px;
  font-weight: 600;
}

.session-info h2 span {
  color: var(--blue-color);
}

.session-specs {
  font-size: 12px;
  color: var(--text-secondary);
}

.session-stats {
  display: flex;
  gap: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-color);
  font-family: monospace;
}

.session-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quality-select {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.quality-select select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 6px;
  outline: none;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

/* SESSION LAYOUT GRID */
.session-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100vh - 64px);
}

/* Left side: Canvas viewport */
.viewport-container {
  flex: 1;
  background: #020204;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
  position: relative;
}

.canvas-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#remote-canvas {
  background: #000;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  display: block;
  cursor: none;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  border-radius: 4px;
}

.viewport-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 5;
  transition: opacity 0.3s;
}

.loader {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: var(--blue-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Right side: File Explorer */
.explorer-container {
  width: 700px;
  background: #0c0c14;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  transition: margin-right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), width 0.3s;
  overflow: hidden;
}

.explorer-container.collapsed {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  border-left: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.explorer-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 700px; /* Locks internal components size when sliding out */
}

.explorer-header {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.explorer-header h3 {
  font-size: 15px;
  font-weight: 600;
}

.explorer-path {
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 8px;
}

.path-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

#current-path-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 4px;
  outline: none;
  font-family: monospace;
}

#current-path-input:focus {
  border-color: var(--blue-color);
}

/* File explorer list */
.explorer-list-container {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

/* Premium slim scrollbar for file explorer */
.explorer-list-container::-webkit-scrollbar {
  width: 6px;
}
.explorer-list-container::-webkit-scrollbar-track {
  background: transparent;
}
.explorer-list-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
.explorer-list-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.explorer-list-header {
  display: grid;
  grid-template-columns: 1fr 110px 65px;
  padding: 8px 16px;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.explorer-list {
  list-style: none;
}

.file-row {
  display: grid;
  grid-template-columns: 1fr 110px 65px;
  align-items: center;
  padding: 10px 16px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: background 0.2s, padding-left 0.2s;
}

.file-row:hover {
  background: rgba(255, 255, 255, 0.04);
  padding-left: 20px; /* Modern dynamic micro-animation shifting list item right on hover */
}

.file-info {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.file-icon svg {
  display: block;
}

.file-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--file-color);
}

.file-row.is-dir .file-name {
  color: var(--text-primary);
  font-weight: 500;
}

.file-date {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: monospace;
}

.file-size {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: monospace;
  text-align: right;
}

.file-actions-hover {
  opacity: 0;
  display: flex;
  gap: 4px;
}

.file-row:hover .file-actions-hover {
  opacity: 1;
}

/* Upload panel */
.upload-zone {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.1);
}

.upload-prompt {
  border: 2px dashed rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.upload-prompt:hover, .upload-prompt.dragover {
  border-color: var(--blue-color);
  background: rgba(0, 180, 216, 0.04);
}

.upload-icon {
  font-size: 24px;
  display: block;
  margin-bottom: 6px;
}

.upload-prompt p {
  font-size: 13px;
  color: var(--text-secondary);
}

.upload-prompt p span {
  color: var(--blue-color);
  font-weight: 500;
}

.upload-subtext {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
  margin-top: 4px;
}

.upload-progress-container {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px;
}

.upload-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.upload-progress-fill {
  height: 100%;
  background: var(--blue-color);
  box-shadow: 0 0 8px var(--blue-color);
  width: 0%;
  transition: width 0.1s linear;
}

.upload-progress-details {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

#upload-filename {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
  color: var(--text-primary);
}

#upload-percent {
  color: var(--blue-color);
  font-weight: 600;
}

/* Modal styling */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 5, 8, 0.8);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal {
  width: 450px;
  padding: 24px;
}

.modal h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.modal textarea {
  width: 100%;
  height: 120px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 12px;
  font-family: inherit;
  color: var(--text-primary);
  font-size: 14px;
  margin: 16px 0;
  outline: none;
  resize: none;
}

.modal textarea:focus {
  border-color: var(--blue-color);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Dashboard support footer */
.dashboard-footer {
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.dashboard-footer span {
  color: var(--blue-color);
  font-weight: 500;
}

/* ==========================================
   LOGIN CARD & CONTAINER STYLING
   ========================================== */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 440px;
  animation: floatIn 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes floatIn {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.login-header {
  text-align: center;
  margin-bottom: 24px;
}

.logo-icon {
  font-size: 40px;
  margin-bottom: 8px;
  display: inline-block;
}

.login-header h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
}

.login-header h2 span {
  color: var(--blue-color);
}

.login-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.login-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.login-tab:hover {
  color: var(--text-primary);
}

.login-tab.active {
  background: var(--accent-color);
  color: var(--text-primary);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.login-form {
  display: none;
  animation: fadeIn 0.4s ease;
}

.login-form.active {
  display: block;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.btn-block {
  width: 100%;
}

/* ==========================================
   STAFF PORTAL DASHBOARD STYLING
   ========================================== */
.user-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--blue-color);
  font-weight: 500;
}

.admin-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.admin-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-tab:hover {
  color: var(--text-primary);
}

.admin-tab.active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.admin-tab-content.active {
  display: block;
}

.admin-form {
  display: flex;
  flex-direction: column;
}

.select-field {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px;
  border-radius: 10px;
  font-family: inherit;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  cursor: pointer;
  transition: all 0.2s;
}

.select-field:focus {
  border-color: var(--blue-color);
}

.select-field option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Dual Pane Explorer Layout */
.explorer-dual-pane {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100% - 50px);
}

.explorer-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.local-pane {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.pane-title-bar {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pane-title-bar h4 {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.pane-action-bar {
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 8px;
  align-items: center;
}

.local-header {
  grid-template-columns: 1fr 75px;
}

#local-queue-list .file-row {
  grid-template-columns: 1fr 75px;
}

.local-dropzone {
  flex: 1;
  overflow-y: auto;
  border: 2px dashed transparent;
  transition: border-color 0.2s, background 0.2s;
  height: 100%;
}

.local-dropzone.dragover {
  border-color: var(--blue-color);
  background: rgba(0, 180, 216, 0.05);
}

.empty-queue-msg {
  padding: 30px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  font-style: italic;
  pointer-events: none;
}

/* Selected row in remote directory list */
.file-row.selected {
  background: rgba(0, 180, 216, 0.08);
  border-bottom-color: rgba(0, 180, 216, 0.2);
}

.file-row.selected:hover {
  background: rgba(0, 180, 216, 0.12);
}

/* Remove button inside local queue rows */
.btn-remove-queue {
  background: transparent;
  border: none;
  color: var(--error-color);
  cursor: pointer;
  padding: 2px 6px;
  font-size: 11px;
  border-radius: 4px;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
}

.btn-remove-queue:hover {
  opacity: 1;
  background: rgba(255, 84, 0, 0.15);
}

/* Red Disconnect Session button */
#btn-disconnect-session-action {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 84, 0, 0.2);
}
#btn-disconnect-session-action:hover {
  background: var(--error-color) !important;
  color: #fff !important;
  border-color: var(--error-color);
}
