
/* themes/filerun/theme.css */
:root {
  --theme-main: #1a73e8;
  --theme-lighter: #1e293b;
  --theme-bg: #0f172a;
  --theme-body-bg: #0f172a;
  --theme-filelist-bg: #1e293b;
  --theme-bg-transparent: rgba(15,23,42,0.9);
  --theme-text: #e2e8f0;
  --theme-textLight: #94a3b8;
  --theme-textLighter: #64748b;
  --theme-textHighContrast: #f8fafc;
  --theme-textOnLighter: #94a3b8;
  --theme-textOnMain: #ffffff;
  --theme-textDanger: #ef4444;
  --theme-menu-highlight: #1e293b;
  --theme-folder: #f59e0b;
  --hBCol: #334155;
  --sBCol: #1e293b;
  --sBr: 6px;
  --mBr: 12px;
  --marg: 16px;
  --pad: 12px;
  --panelPad: 16px;
  --labelColor: #94a3b8;
  --theme-textFieldsBr: 6px;
}

body, input, table, textarea {
  font-family: "Inter","Noto Sans Arabic",system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

::selection { background: #1a73e8; color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-track:hover { background: #1e293b; }

a, a[href] { color: #60a5fa; text-decoration: none; }
a:hover { color: #93c5fd; text-decoration: underline; }

/* Tooltip */
.x-tip {
  background: #1e293b !important;
  color: #e2e8f0 !important;
  border: 1px solid #334155 !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
  font-size: 13px !important;
  padding: 6px 10px !important;
}
.x-tip-body {
  color: #e2e8f0 !important;
  font-size: 13px !important;
}

/* Header / toolbar */
.headerTbar {
  background: #1e293b !important;
  border-bottom: 1px solid #334155 !important;
  min-height: 56px !important;
}
.headerTbar .frBtn {
  color: #94a3b8 !important;
  border-radius: 10px !important;
  width: 40px !important;
  height: 40px !important;
  margin: 0 2px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}
.headerTbar .frBtn:hover {
  background: #334155 !important;
  color: #f8fafc !important;
  transform: translateY(-1px) !important;
}
.headerTbar .frBtn:active {
  transform: translateY(0) !important;
}
.headerTbar .x-btn-icon {
  width: 40px !important;
  height: 40px !important;
  border-radius: 8px !important;
}

.frBtn.fr-btn-new {
  background: linear-gradient(135deg, #2563eb 0%, #1a73e8 100%) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  margin-left: 4px !important;
  margin-right: 8px !important;
  padding: 0 18px !important;
  height: 38px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  box-shadow: 0 2px 8px rgba(26,115,232,0.3) !important;
  transition: all 0.2s ease !important;
}
.frBtn.fr-btn-new:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  box-shadow: 0 4px 16px rgba(26,115,232,0.4) !important;
  transform: translateY(-1px) !important;
}
.frBtn.fr-btn-new:active {
  transform: translateY(0) !important;
  box-shadow: 0 1px 4px rgba(26,115,232,0.2) !important;
}
.frBtn.fr-btn-new i {
  color: #ffffff !important;
}

/* Sidebar / tree */
#FR-Tree-Region {
  background: #0f172a !important;
  border-right: 1px solid #1e293b !important;
}
.x-tree-node-el {
  border-radius: 0 6px 6px 0 !important;
  color: #94a3b8 !important;
}
.x-tree-node-el:hover {
  background: #1e293b !important;
  color: #e2e8f0 !important;
}
.x-tree-node-el.x-tree-selected {
  background: #1e293b !important;
  color: #60a5fa !important;
}

/* Grid */
#FR-Grid-Panel {
  background: #0f172a !important;
}
.gridItem {
  border-radius: 8px !important;
  border: 1px solid transparent !important;
  background: #1e293b !important;
}
.gridItem:hover {
  border-color: #334155 !important;
  background: #1e293b !important;
}
.gridItem.selected {
  border-color: #1a73e8 !important;
  background: #1e293b !important;
}
.x-grid3-row {
  border-bottom: 1px solid #1e293b !important;
  color: #e2e8f0 !important;
}
.x-grid3-row:hover {
  background: #1e293b !important;
}
.x-grid3-row.x-grid3-row-selected {
  background: #1e293b !important;
}
.x-grid3-hd-row {
  background: #0f172a !important;
  color: #94a3b8 !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

.fr-grid-tbar {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #334155 !important;
}
.fr-grid-tbar .frBtn {
  color: #94a3b8 !important;
}
.fr-grid-tbar .frBtn:hover {
  background: #1e293b !important;
  color: #e2e8f0 !important;
}

/* Windows / modals */
.x-window {
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
  border: 1px solid #334155 !important;
  background: #1e293b !important;
}
.x-window-header {
  background: #1e293b !important;
  border-bottom: 1px solid #334155 !important;
  color: #e2e8f0 !important;
}
.x-window-body {
  background: #1e293b !important;
}

/* Menus */
.x-menu {
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important;
  border: 1px solid #334155 !important;
  padding: 6px 0 !important;
  background: #1e293b !important;
  z-index: 20000 !important;
}
.x-menu-list-item {
  padding: 3px 24px !important;
  color: #e2e8f0 !important;
  font-size: 13px !important;
  line-height: 22px !important;
}
.x-menu-list-item:hover {
  background: #334155 !important;
}
.x-menu-item-icon {
  color: #94a3b8 !important;
}
.x-menu-sep {
  border-color: #334155 !important;
}
.cornerMenu {
  z-index: auto !important;
}
.cornerMenu .x-menu-list-item {
  padding: 3px 24px 3px 18px !important;
  border-radius: 6px !important;
  line-height: 22px !important;
}
.cornerMenu .x-menu-item-icon {
  width: 46px !important;
  flex: 0 0 46px !important;
}

/* Buttons */
.x-btn {
  border-radius: 6px !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  height: 36px !important;
  color: #e2e8f0 !important;
  background: #334155 !important;
  border: 1px solid #475569 !important;
}
.x-btn:hover {
  background: #475569 !important;
  color: #f8fafc !important;
}
.x-btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1a73e8 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  box-shadow: 0 2px 8px rgba(26,115,232,0.25) !important;
  transition: all 0.2s ease !important;
}
.x-btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  box-shadow: 0 4px 16px rgba(26,115,232,0.35) !important;
  transform: translateY(-1px) !important;
}
.x-btn-primary:active {
  transform: translateY(0) !important;
  box-shadow: 0 1px 4px rgba(26,115,232,0.15) !important;
}

/* Form fields */
.x-form-field {
  border-radius: 6px !important;
  border: 1px solid #475569 !important;
  background: #0f172a !important;
  color: #e2e8f0 !important;
  min-height: 36px !important;
}
.x-form-field:focus {
  border-color: #1a73e8 !important;
  box-shadow: 0 0 0 3px rgba(26,115,232,0.15) !important;
}

/* Progress */
.x-progress {
  border-radius: 6px !important;
  height: 6px !important;
  background: #334155 !important;
}
.x-progress-bar {
  background: #1a73e8 !important;
  border-radius: 6px !important;
}

/* Tabs */
.x-tab-strip .x-tab-strip-active {
  border-bottom: 2px solid #1a73e8 !important;
  color: #60a5fa !important;
}
.fr-info-panel .x-tab-strip .frBtn.x-tab-strip-active {
  border-bottom-color: #1a73e8 !important;
  color: #60a5fa !important;
}

/* Login page */
.login {
  background: transparent !important;
}
.login .x-window-body {
  background: transparent !important;
}
.loginFormField input {
  background: #0f172a !important;
  color: #e2e8f0 !important;
  border: 1px solid #334155 !important;
}


/* themes/filerun/dark.css */
.x-menu,.x-window{box-shadow:0 0 0 1px var(--hBCol)}.x-tip{box-shadow:none}

.cprt {
	position:fixed !important;
	bottom:0px !important;
	right:0px !important;
	z-index:99999 !important;
	display:flex !important;
	justify-content: center;
	width:100% !important;
	height:auto !important;
	visibility: visible !important;
	pointer-events: none;
}
.cprt a {
	pointer-events: all !important;
	position:relative !important;
	font-weight:bold;
	text-decoration: none;
	visibility: visible !important;
	font-size:14px !important;
	display:flex !important;
	align-items: center;
	border-top-left-radius:var(--mBr);
	border-top-right-radius:var(--mBr);
	padding: 6px 10px;
	box-shadow: 0 5px 5px -3px rgba(0,0,0,.2),
		0 8px 10px 1px rgba(0,0,0,.14),
		0 3px 14px 2px rgba(0,0,0,.12);
	user-select: none;-webkit-user-select: none;
	cursor: pointer;
	background-color: var(--theme-bg-transparent) !important;
	color: var(--theme-text) !important;
	backdrop-filter: blur(10px);
}
.cprt img {
	margin-left:8px;
}
