/* ==========================================================================
   UNIVERSAL CLOUD FILE & PROJECT MANAGER — DESKTOP STYLESHEET
   Aesthetic Obsidian & Burnished Rajputana Gold luxury tech design system
   ========================================================================== */

:root {
  --ucm-bg: #0B0F17;
  --ucm-bg-alt: #101622;
  --ucm-panel: #151D2C;
  --ucm-panel-hover: #1C273A;
  --ucm-border: #222D42;
  --ucm-border-subtle: #192233;
  --ucm-text: #F4EFE6;
  --ucm-text-muted: #8E9DB8;
  --ucm-text-dim: #606F8A;
  --ucm-gold: #E6B847;
  --ucm-gold-glow: rgba(230, 184, 71, 0.22);
  --ucm-gold-soft: rgba(230, 184, 71, 0.12);
  --ucm-red: #E25545;
  --ucm-green: #2ECC71;
  --ucm-blue: #4E8FE8;
  --ucm-amber: #F39C12;
  --ucm-purple: #9B59B6;
  --ucm-radius-sm: 4px;
  --ucm-radius-md: 8px;
  --ucm-radius-lg: 12px;
  --ucm-font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ucm-font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --ucm-shadow: 0 12px 36px -4px rgba(0,0,0,0.65), 0 4px 14px -2px rgba(0,0,0,0.4);
}

[data-theme="light"] {
  --ucm-bg: #FAF5EB;
  --ucm-bg-alt: #F3EADC;
  --ucm-panel: #FFFFFF;
  --ucm-panel-hover: #ECE0CE;
  --ucm-border: #E0D2BA;
  --ucm-border-subtle: #EBE0CE;
  --ucm-text: #162238;
  --ucm-text-muted: #5A6982;
  --ucm-text-dim: #8491A5;
  --ucm-gold: #C1932E;
  --ucm-gold-glow: rgba(193, 147, 46, 0.2);
  --ucm-gold-soft: rgba(193, 147, 46, 0.12);
  --ucm-red: #B23B2A;
  --ucm-green: #1B7A49;
  --ucm-blue: #1A3A68;
  --ucm-shadow: 0 10px 25px -4px rgba(22, 34, 56, 0.08);
}

/* Master Container */
.ucm-container {
  display: flex;
  flex-direction: column;
  background: var(--ucm-bg);
  color: var(--ucm-text);
  font-family: var(--ucm-font-sans);
  border: 1px solid var(--ucm-border);
  border-radius: var(--ucm-radius-lg);
  overflow: hidden;
  box-shadow: var(--ucm-shadow);
  margin: 32px 0 60px;
  min-height: 860px;
  position: relative;
}

/* Top App Header / System Bar */
.ucm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--ucm-bg-alt);
  border-bottom: 1px solid var(--ucm-border);
  gap: 16px;
  flex-wrap: wrap;
}

.ucm-brand-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ucm-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1C273A 0%, #0F1624 100%);
  border: 1px solid var(--ucm-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ucm-gold);
  box-shadow: 0 0 12px var(--ucm-gold-glow);
}

.ucm-brand-title {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ucm-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ucm-badge-version {
  font-family: var(--ucm-font-mono);
  font-size: 0.68rem;
  padding: 2px 7px;
  background: var(--ucm-gold-soft);
  color: var(--ucm-gold);
  border: 1px solid rgba(230, 184, 71, 0.3);
  border-radius: 4px;
}

.ucm-badge-env {
  font-family: var(--ucm-font-mono);
  font-size: 0.66rem;
  padding: 2px 6px;
  background: rgba(46, 204, 113, 0.12);
  color: var(--ucm-green);
  border: 1px solid rgba(46, 204, 113, 0.25);
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ucm-badge-env .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ucm-green);
  box-shadow: 0 0 6px var(--ucm-green);
}

.ucm-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ucm-account-pill {
  font-size: 0.78rem;
  font-family: var(--ucm-font-mono);
  color: var(--ucm-text-muted);
  background: var(--ucm-panel);
  border: 1px solid var(--ucm-border);
  padding: 5px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.ucm-btn {
  background: var(--ucm-panel);
  color: var(--ucm-text);
  border: 1px solid var(--ucm-border);
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: var(--ucm-radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
  user-select: none;
}

.ucm-btn:hover {
  background: var(--ucm-panel-hover);
  border-color: var(--ucm-gold);
  color: var(--ucm-gold);
}

.ucm-btn.primary {
  background: var(--ucm-gold);
  color: #0B0F17;
  border-color: var(--ucm-gold);
  font-weight: 600;
}

.ucm-btn.primary:hover {
  background: #f1c75b;
  box-shadow: 0 0 14px var(--ucm-gold-glow);
  color: #0B0F17;
}

.ucm-btn.danger {
  background: rgba(226, 85, 69, 0.12);
  color: var(--ucm-red);
  border-color: rgba(226, 85, 69, 0.3);
}

.ucm-btn.danger:hover {
  background: var(--ucm-red);
  color: #fff;
}

.ucm-btn.sm {
  padding: 4px 9px;
  font-size: 0.75rem;
}

/* App Main Body Split */
.ucm-body {
  display: flex;
  flex: 1;
  min-height: 640px;
  position: relative;
  overflow: hidden;
}

/* Sidebar Navigation */
.ucm-sidebar {
  width: 250px;
  min-width: 250px;
  background: var(--ucm-bg-alt);
  border-right: 1px solid var(--ucm-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 10px;
}

.ucm-nav-group-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ucm-text-dim);
  padding: 10px 12px 4px;
}

.ucm-nav-list {
  list-style: none;
  margin-bottom: 14px;
}

.ucm-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--ucm-radius-sm);
  color: var(--ucm-text-muted);
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 3px;
  transition: all 0.15s ease;
  user-select: none;
}

.ucm-nav-item:hover {
  background: var(--ucm-panel);
  color: var(--ucm-text);
}

.ucm-nav-item.active {
  background: var(--ucm-gold-soft);
  color: var(--ucm-gold);
  border-left: 3px solid var(--ucm-gold);
  font-weight: 600;
}

.ucm-nav-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ucm-nav-left svg {
  width: 16px;
  height: 16px;
  opacity: 0.85;
}

.ucm-nav-badge {
  font-size: 0.68rem;
  font-family: var(--ucm-font-mono);
  background: var(--ucm-panel);
  color: var(--ucm-text-dim);
  padding: 1px 6px;
  border-radius: 10px;
  border: 1px solid var(--ucm-border);
}

/* Sidebar Storage Quota Indicator */
.ucm-storage-widget {
  background: var(--ucm-panel);
  border: 1px solid var(--ucm-border);
  border-radius: var(--ucm-radius-md);
  padding: 12px;
  margin-top: auto;
}

.ucm-storage-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--ucm-text-muted);
  margin-bottom: 6px;
}

.ucm-storage-bar-track {
  width: 100%;
  height: 6px;
  background: var(--ucm-border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.ucm-storage-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ucm-gold), #F39C12);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.ucm-storage-subtext {
  font-family: var(--ucm-font-mono);
  font-size: 0.68rem;
  color: var(--ucm-text-dim);
  display: flex;
  justify-content: space-between;
}

/* Main Workspace Area */
.ucm-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--ucm-bg);
  overflow: hidden;
  position: relative;
}

/* Toolbar & Breadcrumbs Bar */
.ucm-toolbar-card {
  background: var(--ucm-bg-alt);
  border-bottom: 1px solid var(--ucm-border);
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ucm-toolbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ucm-toolbar-btn-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Dropdown Menu */
.ucm-dropdown {
  position: relative;
  display: inline-block;
}

.ucm-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  background: var(--ucm-panel);
  border: 1px solid var(--ucm-border);
  border-radius: var(--ucm-radius-sm);
  box-shadow: var(--ucm-shadow);
  min-width: 200px;
  z-index: 100;
  overflow: hidden;
}

.ucm-dropdown-menu.show {
  display: block;
}

.ucm-dropdown-item {
  padding: 9px 14px;
  font-size: 0.8rem;
  color: var(--ucm-text);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ucm-dropdown-item:hover {
  background: var(--ucm-panel-hover);
  color: var(--ucm-gold);
}

.ucm-dropdown-item.danger:hover {
  background: rgba(226, 85, 69, 0.15);
  color: var(--ucm-red);
}

.ucm-dropdown-divider {
  height: 1px;
  background: var(--ucm-border);
  margin: 4px 0;
}

/* Search Box */
.ucm-search-wrap {
  position: relative;
  flex: 1;
  max-width: 320px;
  min-width: 200px;
}

.ucm-search-input {
  width: 100%;
  background: var(--ucm-panel);
  border: 1px solid var(--ucm-border);
  color: var(--ucm-text);
  font-size: 0.82rem;
  padding: 6px 12px 6px 32px;
  border-radius: var(--ucm-radius-sm);
  outline: none;
  transition: border-color 0.2s;
}

.ucm-search-input:focus {
  border-color: var(--ucm-gold);
  box-shadow: 0 0 8px var(--ucm-gold-glow);
}

.ucm-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--ucm-text-dim);
  pointer-events: none;
}

/* Secondary Toolbar: Breadcrumbs & Filters */
.ucm-toolbar-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.ucm-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--ucm-font-mono);
  font-size: 0.78rem;
  color: var(--ucm-text-muted);
  overflow-x: auto;
  white-space: nowrap;
}

.ucm-crumb {
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.ucm-crumb:hover {
  background: var(--ucm-panel);
  color: var(--ucm-gold);
}

.ucm-crumb.active {
  color: var(--ucm-text);
  font-weight: 600;
  pointer-events: none;
}

.ucm-crumb-sep {
  color: var(--ucm-text-dim);
}

.ucm-filter-pills {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ucm-filter-pill {
  background: transparent;
  color: var(--ucm-text-dim);
  border: 1px solid transparent;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ucm-filter-pill:hover {
  color: var(--ucm-text);
  background: var(--ucm-panel);
}

.ucm-filter-pill.active {
  background: var(--ucm-gold-soft);
  color: var(--ucm-gold);
  border-color: rgba(230, 184, 71, 0.3);
  font-weight: 600;
}

/* Content Area Wrapper */
.ucm-content-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

.ucm-file-pane {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  position: relative;
}

/* Drag and Drop Overlay Indicator */
.ucm-drop-target-active {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 23, 0.88);
  border: 2px dashed var(--ucm-gold);
  border-radius: var(--ucm-radius-md);
  z-index: 50;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ucm-gold);
  pointer-events: none;
}

.ucm-file-pane.dragover .ucm-drop-target-active {
  display: flex;
}

/* Bulk Selection Action Bar */
.ucm-bulk-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: var(--ucm-panel);
  border: 1px solid var(--ucm-gold);
  padding: 8px 14px;
  border-radius: var(--ucm-radius-sm);
  margin-bottom: 12px;
  font-size: 0.8rem;
  box-shadow: 0 4px 14px var(--ucm-gold-glow);
}

.ucm-bulk-bar.active {
  display: flex;
}

/* LIST VIEW (FileZilla Style Table) */
.ucm-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.ucm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

.ucm-table th {
  background: var(--ucm-bg-alt);
  color: var(--ucm-text-dim);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 12px;
  border-bottom: 1px solid var(--ucm-border);
  user-select: none;
  cursor: pointer;
}

.ucm-table th:hover {
  color: var(--ucm-gold);
}

.ucm-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--ucm-border-subtle);
  color: var(--ucm-text);
  vertical-align: middle;
}

.ucm-table tr {
  cursor: pointer;
  transition: background 0.15s ease;
}

.ucm-table tr:hover {
  background: var(--ucm-panel-hover);
}

.ucm-table tr.selected {
  background: var(--ucm-gold-soft);
}

.ucm-file-name-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
}

.ucm-file-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.ucm-mono {
  font-family: var(--ucm-font-mono);
  font-size: 0.76rem;
  color: var(--ucm-text-muted);
}

/* GRID VIEW */
.ucm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.ucm-grid-item {
  background: var(--ucm-panel);
  border: 1px solid var(--ucm-border);
  border-radius: var(--ucm-radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  user-select: none;
}

.ucm-grid-item:hover {
  background: var(--ucm-panel-hover);
  border-color: var(--ucm-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.ucm-grid-item.selected {
  border-color: var(--ucm-gold);
  background: var(--ucm-gold-soft);
}

.ucm-grid-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  background: var(--ucm-bg-alt);
}

.ucm-grid-icon-wrap svg {
  width: 28px;
  height: 28px;
}

.ucm-grid-name {
  font-size: 0.78rem;
  font-weight: 500;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ucm-text);
  margin-bottom: 4px;
}

.ucm-grid-sub {
  font-family: var(--ucm-font-mono);
  font-size: 0.68rem;
  color: var(--ucm-text-dim);
}

/* Right Details Inspector Sidebar */
.ucm-details-sidebar {
  width: 280px;
  min-width: 280px;
  background: var(--ucm-bg-alt);
  border-left: 1px solid var(--ucm-border);
  display: flex;
  flex-direction: column;
  padding: 16px;
  overflow-y: auto;
}

.ucm-details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ucm-border);
  margin-bottom: 16px;
}

.ucm-details-preview-box {
  width: 100%;
  height: 140px;
  background: var(--ucm-panel);
  border: 1px solid var(--ucm-border);
  border-radius: var(--ucm-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
}

.ucm-details-preview-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ucm-prop-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--ucm-border-subtle);
  font-size: 0.75rem;
}

.ucm-prop-label {
  color: var(--ucm-text-dim);
}

.ucm-prop-val {
  font-family: var(--ucm-font-mono);
  color: var(--ucm-text);
  text-align: right;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Transfer Manager Dock (FileZilla Style) */
.ucm-transfer-dock {
  background: var(--ucm-bg-alt);
  border-top: 1px solid var(--ucm-border);
  display: flex;
  flex-direction: column;
  transition: height 0.25s ease;
  height: 200px;
}

.ucm-transfer-dock.minimized {
  height: 38px;
}

.ucm-transfer-dock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
  background: var(--ucm-panel);
  border-bottom: 1px solid var(--ucm-border);
  user-select: none;
}

.ucm-transfer-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ucm-transfer-tab {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ucm-text-muted);
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.ucm-transfer-tab.active {
  background: var(--ucm-gold-soft);
  color: var(--ucm-gold);
  font-weight: 600;
}

.ucm-transfer-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
}

.ucm-transfer-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px;
}

.ucm-transfer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--ucm-border-subtle);
  font-size: 0.76rem;
  gap: 12px;
}

.ucm-transfer-item .file-col {
  width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.ucm-transfer-item .progress-col {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ucm-transfer-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--ucm-border);
  border-radius: 3px;
  overflow: hidden;
}

.ucm-transfer-progress-fill {
  height: 100%;
  background: var(--ucm-green);
  transition: width 0.15s ease;
}

.ucm-transfer-item .meta-col {
  font-family: var(--ucm-font-mono);
  font-size: 0.7rem;
  color: var(--ucm-text-dim);
  width: 140px;
  text-align: right;
}

/* Modals (Universal File Previewer & Code Editor) */
.ucm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ucm-modal-overlay.active {
  display: flex;
}

.ucm-modal-card {
  background: var(--ucm-bg-alt);
  border: 1px solid var(--ucm-border);
  border-radius: var(--ucm-radius-md);
  box-shadow: var(--ucm-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
}

.ucm-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--ucm-panel);
  border-bottom: 1px solid var(--ucm-border);
}

.ucm-modal-title {
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ucm-text);
}

.ucm-modal-close-btn {
  background: transparent;
  border: none;
  color: var(--ucm-text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.ucm-modal-close-btn:hover {
  color: var(--ucm-red);
}

.ucm-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.ucm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 20px;
  background: var(--ucm-panel);
  border-top: 1px solid var(--ucm-border);
}

/* Code Editor Specific Styles */
.ucm-editor-container {
  display: flex;
  flex-direction: column;
  height: 520px;
  background: #090C12;
  border: 1px solid var(--ucm-border);
  border-radius: var(--ucm-radius-sm);
  overflow: hidden;
}

.ucm-editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: #111722;
  border-bottom: 1px solid var(--ucm-border);
  font-size: 0.74rem;
}

.ucm-editor-stage {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

.ucm-editor-lines {
  width: 44px;
  background: #0C101A;
  border-right: 1px solid var(--ucm-border-subtle);
  padding: 12px 6px;
  color: #4A566E;
  font-family: var(--ucm-font-mono);
  font-size: 0.76rem;
  line-height: 1.6;
  text-align: right;
  user-select: none;
  overflow: hidden;
}

.ucm-editor-textarea {
  flex: 1;
  background: transparent;
  border: none;
  color: #E2E8F0;
  font-family: var(--ucm-font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  padding: 12px 14px;
  outline: none;
  resize: none;
  white-space: pre;
  overflow: auto;
  tab-size: 2;
}

/* Toast Notifications */
.ucm-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ucm-panel);
  border: 1px solid var(--ucm-gold);
  color: var(--ucm-text);
  padding: 10px 18px;
  border-radius: var(--ucm-radius-sm);
  box-shadow: var(--ucm-shadow);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ucm-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Custom Context Menu */
.ucm-context-menu {
  position: fixed;
  background: var(--ucm-panel);
  border: 1px solid var(--ucm-border);
  border-radius: var(--ucm-radius-sm);
  box-shadow: var(--ucm-shadow);
  min-width: 180px;
  z-index: 10000;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.ucm-context-menu.show {
  display: flex;
}

.ucm-context-item {
  padding: 8px 14px;
  font-size: 0.78rem;
  color: var(--ucm-text);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ucm-context-item:hover {
  background: var(--ucm-panel-hover);
  color: var(--ucm-gold);
}

.ucm-context-item.danger:hover {
  background: rgba(226, 85, 69, 0.15);
  color: var(--ucm-red);
}

/* Empty States */
.ucm-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--ucm-text-dim);
  text-align: center;
  gap: 12px;
}

.ucm-empty-state svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

/* Form Controls in Modals */
.ucm-form-group {
  margin-bottom: 16px;
}

.ucm-form-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ucm-text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ucm-form-input, .ucm-form-select {
  width: 100%;
  background: var(--ucm-panel);
  border: 1px solid var(--ucm-border);
  color: var(--ucm-text);
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: var(--ucm-radius-sm);
  outline: none;
}

.ucm-form-input:focus, .ucm-form-select:focus {
  border-color: var(--ucm-gold);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .ucm-sidebar {
    width: 60px;
    min-width: 60px;
    padding: 12px 6px;
  }
  .ucm-nav-group-title, .ucm-nav-left span, .ucm-nav-badge, .ucm-storage-widget {
    display: none;
  }
  .ucm-details-sidebar {
    display: none;
  }
}
