:root {
  --widget-bg: #ffffff;
  --widget-fg: #000000;
}

body.dark-mode {
  --widget-bg: #1f1f1f;
  --widget-fg: #eaeaea;
}



#process-widget {
  margin: 10px auto;
  max-width: 600px;
  background-color: var(--widget-bg);
  color: var(--widget-fg);
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  padding: 20px;
  font-family: Heebo, sans-serif;
  transition: background 0.3s ease, color 0.3s ease;
  position: fixed;
  top: 100px;
  left: 20px;
  right: auto; /* importante para anular la propiedad anterior */

}

#process-widget.dark-mode {
  background: #222;
  color: #eee;
}

/* Dock Bar at the bottom */
.widget-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 10px;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

/* Style for minimized buttons */
.dock-btn {
  background: #333;
  color: #fff;
  border: 1px solid #555;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  display: none; /* Hidden by default */
  font-family: 'Heebo', sans-serif;
  transition: all 0.2s;
}

.dock-btn:hover {
  background: #00d2ff;
  color: #000;
  transform: translateY(-2px);
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget-header h2 {
  margin: 0;
}

.widget-body {
  margin-top: 15px;
}

.process-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #ccc;
}

.process-status.running {
  color: green;
}

.process-status.stopped {
  color: red;
}

#open-process-widget {
  margin: 10px auto;
  display: block;
  background: #555;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

body.dark-mode .widget {
  background-color: #1f1f1f;
  color: #eaeaea;
}


.proc-inline {
  font-weight: bold;
  margin: 0 6px;
}

body.dark-mode strong {
  color: #aaa;
}

body.dark-mode .proc-inline {
  color: #ccc;
}

#open-process-widget {
  position: relative;
  margin: 20px auto;
  display: none;
  background: #555;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}

body.dark-mode #open-process-widget {
  background: #888;
  color: #000;
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.2);
}

body.dark-mode #open-process-widget:hover {
  background: #aaa;
}

#open-process-widget:hover {
  background: #777;
}


/* Widget de Discos */

#disk-widget {
  margin: 10px auto;
  background: var(--widget-bg, #fff);
  color: var(--widget-fg, #000);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  transition: background 0.3s, color 0.3s;
  position: fixed;
  top: 300px;          /* ✅ reduce la separación entre widgets */
  left: 20px;
  right: auto;
  width: 620px;        /* ✅ aumenta el ancho */
}


body.dark-mode #disk-widget {
  background: #1e1e1e;
  color: #eee;
}

#open-disk-widget {
  margin: 10px auto;
  display: block;
  background: #444;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

body.dark-mode #open-disk-widget {
  background: #888;
  color: #000;
}

/* Widget Internet 

#speed-widget {
  margin: 40px auto;
  max-width: 600px;
  background: var(--widget-bg, #fff);
  color: var(--widget-fg, #000);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  transition: background 0.3s, color 0.3s;
} */

#speed-widget {
  position: fixed;
  top: 100px;        /* igual que #process-widget */
  left: 800px;       /* espacio justo al lado del widget de procesos */
  width: 240px;
  background: rgba(0, 0, 0, 0.05);
  color: inherit;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 200;
  font-size: 0.85rem;
  text-align: center;
}

#speed-widget .gauges-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}


body.dark-mode #speed-widget {
  background-color: #1f1f1f;
  color: #eee;
}

#speed-timestamp {
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 10px;
}


