/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
}

/* Layout general */
body {
  background: #0f172a;
  color: #e5e7eb;
  padding: 20px;
  margin: 0;
}
.app {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
/* Tabs container */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid #334155;
  overflow-x: auto;
}

/* Botones tab */
.tab {
  padding: 8px 14px;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab:hover {
  color: #e2e8f0;
}

.tab.active {
  color: #38bdf8;
  border-bottom: 2px solid #38bdf8;
}

/* Contenido */
.tab-content > div {
  display: none;
}
.tab-content > div.active {
  display: flex;
    flex-direction: column;

}
.tab-content {
  width: 100%;
}

/* Opcional: centrar contenido */
.tab-content {
  max-width: 900px;
  margin: 0 auto;
}
/* Cajas principales */
#registerBox,
#loginBox,
#refreshBox,
#createNoteBox,
#getNotesBox,
#jwtPlaygroundBox {
  background: #1e293b;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  gap: 12px;
}

/* Títulos */
h1, h2 {
  font-weight: 600;
  color: #f1f5f9;
}

/* Inputs agrupados */
.inputPack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Inputs y selects */
input,
select {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #e5e7eb;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56,189,248,0.25);
}

/* Botones */
button {
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  background: #334155;
  color: #e5e7eb;
  cursor: pointer;
  transition: background 0.2s, transform 0.05s;
  white-space: nowrap;
}

button:hover {
  background: #475569;
}

button:active {
  transform: scale(0.97);
}

/* Botones principales (acciones importantes) */
button[id$="Submit"],
button[id$="Generate"] {
  background: #2563eb;
}

button[id$="Submit"]:hover,
button[id$="Generate"]:hover {
  background: #1d4ed8;
}

/* Botones secundarios tipo expand/collapse */
button[id$="FullSize"] {
  background: #0ea5e9;
}

button[id$="FullSize"]:hover {
  background: #0284c7;
}
.inputPack {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap; /* antes wrap */
}

.inputPack input,
.inputPack select {
  flex: 1;
}
/* RESULTADOS (solo contenedor externo, sin tocar contenido interno) */
.response-card {
  margin-top: 8px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #020617;
  overflow: hidden;
}

/* Estados visuales del contenedor */
.response-card.error {
  border:2px solid  #ef4444;
}

.response-card.success{
	border: 2px solid #4ec9b0;
}
 #registerResponse,
 #createNoteResponse,
 #loginResponse,
 #refreshResponse,
 #decodedHeader,#decodedBody {
   margin-top: 15px;
   background: #3b3b3b;
   border-radius: 6px;
   padding: 10px;
   overflow-y: auto;
   font-size: 12px;
 }

 .response-card.expanded {
   max-height: none;
 }

 .item {
   display: grid;
   grid-template-columns: 180px 1fr auto auto;
   gap: 8px;
   padding: 4px 6px;
   border-radius: 6px;
 }

 .item:hover {
   background: #2a2a2a;
 }

 .key {
   color: #9cdcfe;
   word-break: break-all;
 }

 .value {
   font-family: monospace;
   word-break: break-word;
   overflow-wrap: break-word;
 }

 .value.string {
   color: #ce9178;
 }

 .value.number {
   color: #b5cea8;
 }

 .value.boolean.true {
   color: #4ec9b0;
 }

 .value.boolean.false {
   color: #f44747;
 }

 .value.null {
   color: #888;
   font-style: italic;
 }

 .value.object,
 .value.array {
   color: #dcdcaa;
 }


 button.copy,
 button.expand {
   background: none;
   border: none;
   cursor: pointer;
   color: #888;
 }

 button:hover {
   color: #fff;
 }

 .nested {
   margin-left: 16px;
   border-left: 1px solid #333;
   padding-left: 8px;
 }

 .hidden {
   display: none;
 }
 
