/* ========== BASE GENERAL ========== */
body {
  margin: 0;
  font-family: monospace;
}

.layout {
  display: flex;
  height: 100vh;
}

.sidebar {
  width: 280px;
  padding: 20px;
  border-right: 1px solid #111;
}

.sidebar input,
.sidebar select {
  width: 100%;
  margin-bottom: 10px;
  padding: 6px 8px;
  box-sizing: border-box;
}

#search {
  margin-top: 5px;
}

.commands {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

/* ========== ESTRUCTURA DE COMANDOS ========== */
.group-section {
  margin-bottom: 30px;
}
.group-section h3 {
  font-size: 20px;
  font-weight: 800;
  margin-top: 30px;
  margin-bottom: 14px;
  padding-bottom: 4px;
  border-bottom: 2px solid currentColor;
  text-transform: uppercase;
}

.command-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin-bottom: 8px;
  border: 1px solid #333;
}

.command-box:nth-child(even) {
  background: #2a2a2a;
}

.command-box span {
  font-size: 13px;
  font-weight: 600;
  min-width: 240px;
  flex-shrink: 0;
}

.command-box input {
  flex-grow: 1;
  padding: 6px 8px;
  font-family: monospace;
  font-size: 13px;
  border: 1px solid #444;
}

.command-box button {
  padding: 5px 10px;
  border: 1px solid #555;
  cursor: pointer;
}

/* ========== DARKPRO THEME ========== */
body.darkpro-theme {
  background: #1e1e1e;
  color: #d4d4d4;
}
.darkpro-theme .sidebar input,
.darkpro-theme .sidebar select {
  background: #2d2d2d;
  color: #d4d4d4;
  border-color: #444;
}
.darkpro-theme .group-section h3 {
  color: #00ff88;
  border-color: #00ff88;
}
.darkpro-theme .command-box {
  background: #252526;
  border-color: #444;
}
.darkpro-theme .command-box:nth-child(even) {
  background: #2c2c2c;
}
.darkpro-theme .command-box span {
  color: #6beaaa;
}
.darkpro-theme .command-box input {
  background: #000;
  color: #00ff88;
}
.darkpro-theme .command-box button {
  background: #333;
  color: #00ff88;
}

/* ========== CYBERPUNK THEME ========== */
body.cyberpunk-theme {
  background: #0a0014;
  color: #ff66ff;
}
.cyberpunk-theme .sidebar input,
.cyberpunk-theme .sidebar select {
  background: #1a002a;
  color: #ff66ff;
  border-color: #ff00cc;
}
.cyberpunk-theme .group-section h3 {
  color: #00ffff;
  border-color: #ff00cc;
}
.cyberpunk-theme .command-box {
  background: #1e002e;
  border-color: #ff00cc;
}
.cyberpunk-theme .command-box:nth-child(even) {
  background: #2a0044;
}
.cyberpunk-theme .command-box span,
.cyberpunk-theme .command-box input {
  color: #00ffff;
  background: #0a0014;
  border-color: #9900cc;
}
.cyberpunk-theme .command-box button {
  background: #33004d;
  color: #ff66ff;
  border-color: #9900cc;
}

/* ========== LIGHTPRO THEME ========== */
body.lightpro-theme {
  background: #f9f9f9;
  color: #222;
}
.lightpro-theme .sidebar input,
.lightpro-theme .sidebar select {
  background: #fff;
  color: #222;
  border-color: #ccc;
}
.lightpro-theme .group-section h3 {
  color: #007acc;
  border-color: #007acc;
}
.lightpro-theme .command-box {
  background: #fff;
  border-color: #ccc;
}
.lightpro-theme .command-box:nth-child(even) {
  background: #f0f0f0;
}
.lightpro-theme .command-box span {
  color: #007acc;
}
.lightpro-theme .command-box input {
  background: #f9f9f9;
  color: #222;
  border-color: #bbb;
}
.lightpro-theme .command-box button {
  background: #eee;
  color: #007acc;
  border-color: #bbb;
}

/* ========== PASTEL THEME ========== */
body.pastel-theme {
  background: #f5f7fa;
  color: #333;
}
.pastel-theme .sidebar input,
.pastel-theme .sidebar select {
  background: #fff;
  color: #333;
  border-color: #ccc;
}
.pastel-theme .group-section h3 {
  color: #5c6bc0;
  border-color: #5c6bc0;
}
.pastel-theme .command-box {
  background: #ffffff;
  border-color: #ddd;
}
.pastel-theme .command-box:nth-child(even) {
  background: #eef1f5;
}
.pastel-theme .command-box span {
  color: #5c6bc0;
}
.pastel-theme .command-box input {
  background: #f9fafc;
  color: #333;
  border-color: #ccc;
}
.pastel-theme .command-box button {
  background: #e0e7ff;
  color: #5c6bc0;
  border-color: #bbb;
}

/* ========== ABYSSRED THEME ========== */
body.abyssred-theme {
  background: #0a0000 !important;
  color: #ff4444;
}
.abyssred-theme .sidebar input,
.abyssred-theme .sidebar select {
  background: #1c0a0a !important;
  color: #ffcccc !important;
  border-color: #ff4d4d88 !important;
}
.abyssred-theme .group-section h3 {
  color: #ff4d4d !important;
  border-color: #ff4d4d !important;
}
.abyssred-theme .command-box {
  background: #130000 !important;
  border: 1px solid #ff4d4d44;
}
.abyssred-theme .command-box:nth-child(even) {
  background: #1a0000 !important;
}
.abyssred-theme .command-box span {
  color: #ffaaaa !important;
}
.abyssred-theme .command-box input {
  color: #ff4d4d !important;
  background: #0a0000 !important;
  border: 1px solid #ff4d4d66 !important;
}
.abyssred-theme .command-box button {
  background: #330000 !important;
  color: #ff8888 !important;
  border: 1px solid #ff4d4d88 !important;
}


/* ========== OBSIDIANPURPLE THEME ========== */
body.obsidianpurple-theme {
  background: #080512 !important;
  color: #d5b3ff;
}
.obsidianpurple-theme .sidebar input,
.obsidianpurple-theme .sidebar select {
  background: #190e2e !important;
  color: #e6ccff !important;
  border-color: #b279ff99 !important;
}
.obsidianpurple-theme .group-section h3 {
  color: #c68cff !important;
  border-color: #c68cff !important;
}
.obsidianpurple-theme .command-box {
  background: #13082b !important;
  border: 1px solid #b279ff44;
}
.obsidianpurple-theme .command-box:nth-child(even) {
  background: #1d0e3f !important;
}
.obsidianpurple-theme .command-box span {
  color: #e0cfff !important;
}
.obsidianpurple-theme .command-box input {
  color: #ffecff !important;
  background: #0c061a !important;
  border: 1px solid #ca9bff55 !important;
}
.obsidianpurple-theme .command-box button {
  background: #341457 !important;
  color: #e6ccff !important;
  border: 1px solid #b279ff77 !important;
}

/* ========== ESTÉTICA GLOBAL PARA TODOS LOS TEMAS ========== */

.command-box {
  border-radius: 4px;
  padding: 10px 14px;
  gap: 12px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}

.command-box span {
  font-weight: 700;
  font-size: 14px;
}

.command-box input {
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 3px;
}

.command-box button {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: bold;
  border-radius: 3px;
  transition: background 0.2s ease, color 0.2s ease;
}

.command-box button:hover {
  filter: brightness(1.2);
}

.sidebar h1 {
  margin-bottom: 25px;
  font-size: 22px;
  color: inherit;
  border-bottom: 2px solid currentColor;
  padding-bottom: 6px;
  text-align: center;
}

.sidebar input,
.sidebar select {
  border-radius: 3px;
  font-size: 13px;
  padding: 6px 9px;
}

.commands {
  padding-left: 40px;
  padding-right: 40px;
}

#mainSearchWrapper {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: inherit;
}

#mainSearch {
  padding: 14px 22px;
  font-size: 16px;
  width: 400px;
  border-radius: 6px;
  border: 2px solid #666;
}

.layout {
  flex-direction: column;
}

.top-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid #333;
}

.top-bar input, .top-bar select {
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 5px;
  border: 1px solid #555;
}

.main {
  display: flex;
  flex: 1;
  height: calc(100vh - 60px);
  overflow: hidden;
}

.sidebar {
  min-width: 250px;
  max-width: 280px;
  overflow-y: auto;
}

.commands {
  flex-grow: 1;
  overflow-y: auto;
}
.auth-checkboxes,
.auth-checkboxes-top {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
  justify-content: center;
  font-size: 13px;
}

.theme-wrapper {
  position: absolute;
  right: 20px;
  top: 12px;
}

.theme-icon {
  cursor: pointer;
  font-size: 18px;
  padding: 6px;
}

.hidden-theme {
  display: none;
}
#mainSearchWrapper {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: inherit;
  flex-direction: column;
  gap: 20px;
}

.main-search-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.auth-checkboxes-initial {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 14px;
}

#mainSearch {
  padding: 14px 22px;
  font-size: 16px;
  width: 400px;
  border-radius: 6px;
  border: 2px solid #666;
}
.auth-checkboxes-top {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 12px;
  margin-bottom: 18px;
  font-size: 14px;
}
.show-all-btn {
  margin-left: 15px;
  padding: 6px 12px;
  background-color: #5e2ca5;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.show-all-btn:hover {
  background-color: #783fcf;
}

.show-all-btn {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(145deg, #712aff, #b279ff);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 10px #b279ffaa, 0 0 20px #712aff55;
  transition: all 0.3s ease-in-out;
}

.show-all-btn:hover {
  background: linear-gradient(145deg, #b279ff, #c68cff);
  box-shadow: 0 0 20px #e6ccffaa, 0 0 35px #b279ffcc;
  transform: scale(1.05);
}

.intro-text {
  margin-top: 20px;
  color: #d8b4fe;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  font-family: monospace;
  opacity: 0.9;
}
