/* theme-linux.css — Ubuntu 7.10 / GNOME panel theme */

/* ==========================================
   Ubuntu 7.10 / Human Theme Like
   ========================================== */

/* Hide GNOME panels by default on all themes */
.ubuntu-panel {
  display: none !important;
}

/* Enable GNOME panels strictly when theme-linux is active on body */
body.theme-linux .ubuntu-panel {
  display: flex !important;
}

body.theme-linux {
  --win-bg: #f8f6f2 !important;
  --win-text: #2c2c2c !important;
  font-family: 'Ubuntu', 'DejaVu Sans', 'Lucida Grande', Tahoma, sans-serif !important;
  padding-top: 26px !important;
  padding-bottom: 26px !important;
  box-sizing: border-box !important;
}

/* Clean up pseudo-elements */
body.theme-linux::before,
body.theme-linux::after {
  display: none !important;
}

/* Panels Base Styling */
body.theme-linux .ubuntu-panel {
  justify-content: space-between;
  align-items: center;
  position: fixed;
  left: 0;
  width: 100%;
  height: 24px;
  background: linear-gradient(180deg, #fbfbfa 0%, #e6ded6 50%, #d4c8be 100%);
  border-color: #b5a8b3;
  box-shadow: inset 0 1px 0 #ffffff;
  z-index: 99990;
  font-size: 11px;
  color: #2c2c2c;
  padding: 0 4px;
  box-sizing: border-box;
  user-select: none;
}

.ubuntu-panel-top {
  top: 0;
  border-bottom: 1px solid #b5a8b3;
}

.ubuntu-panel-bottom {
  bottom: 0;
  border-top: 1px solid #b5a8b3;
}

.ubuntu-panel .panel-left,
.ubuntu-panel .panel-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Ensure all window titlebar class variations use the Ubuntu orange gradient */
body.theme-linux .aero-titlebar,
body.theme-linux .title-bar,
body.theme-linux .window-header,
body.theme-linux .win-titlebar {
  background: linear-gradient(180deg, #f37329 0%, #c43c00 100%) !important;
  color: #ffffff !important;
  font-weight: bold !important;
  border-bottom: 1px solid #9e3000 !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5) !important;
}

/* Menu Dropdowns Container */
.gnome-menu-wrapper {
  position: relative;
}

body.theme-linux .panel-menu-btn {
  background: transparent !important;
  border: none !important;
  color: #2c2c2c !important;
  font-size: 11px !important;
  font-weight: bold !important;
  padding: 2px 6px !important;
  cursor: pointer;
  border-radius: 2px !important;
}

body.theme-linux .panel-menu-btn:hover {
  background: rgba(243, 115, 41, 0.2) !important;
  color: #c43c00 !important;
}

/* Dropdown Content */
.gnome-dropdown-menu {
  display: none;
  position: absolute;
  top: 22px;
  left: 0;
  background: #f8f6f2;
  border: 1px solid #75507b;
  box-shadow: 2px 4px 10px rgba(0,0,0,0.3);
  min-width: 160px;
  z-index: 100000;
  border-radius: 0 0 4px 4px;
  padding: 4px 0;
}

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

.gnome-menu-item {
  padding: 4px 12px;
  font-size: 11px;
  color: #2c2c2c;
  cursor: pointer;
}

.gnome-menu-item:hover {
  background: linear-gradient(180deg, #f37329 0%, #c43c00 100%);
  color: #ffffff;
}

/* Separators & Controls */
.panel-separator {
  width: 1px;
  height: 16px;
  background: #b5a8b3;
  margin: 0 2px;
}

.panel-icon, .panel-tray-item, .panel-trash {
  font-size: 12px;
  cursor: pointer;
  padding: 0 2px;
}

.panel-power-btn {
  color: #c43c00;
  font-weight: bold;
  cursor: pointer;
}

.panel-taskbar {
  display: flex;
  gap: 4px;
}

.panel-task-item {
  background: linear-gradient(180deg, #eae4dc 0%, #d0c5bb 100%);
  border: 1px solid #a89d93;
  padding: 1px 8px;
  border-radius: 2px;
  font-size: 11px;
  cursor: pointer;
}

.panel-task-item.active {
  background: linear-gradient(180deg, #c43c00 0%, #f37329 100%);
  color: #ffffff;
  border-color: #9e3000;
  font-weight: bold;
}

.workspace-switcher {
  display: flex;
  gap: 2px;
  background: #bcaba0;
  padding: 2px;
  border: 1px solid #9e8e83;
}

.ws-box {
  width: 12px;
  height: 10px;
  background: #7b4b2b;
}

.ws-box.active {
  background: #d8570c;
  border: 1px solid #ffffff;
}

.panel-show-desktop {
  background: transparent !important;
  border: 1px solid #b5a8b3 !important;
  padding: 0 4px !important;
  cursor: pointer;
}

