:root {
  --bg: #f0f4f8;
  --text: #000;
  --title-bg: #4a90e2;
  --card-bg: #f7f9fb;
  --accent: #4a90e2;
  --section-bg: #f7f9fb;
  --border: #ccc;
  --footer-bg: #4a90e2;
  --footer-text: #0f0;
}

[data-theme="dark"] {
  --bg: #121212;
  --text: #eee;
  --title-bg: #bb86fc;
  --card-bg: #2c2c2c;
  --accent: #bb86fc;
  --section-bg: #2c2c2c;
  --border: #555;
  --footer-bg: #bb86fc;
  --footer-text: #0f0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0; padding: 0;
  margin-top: 5%;
  display: flex; flex-direction: column;
  align-items: center;
  padding-top: 100px; 
  padding-bottom: 50px; 
}

.title-box {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--title-bg);
  border-bottom: 2px solid var(--accent);
  padding: 20px;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Container principal */
.container {
  background: var(--card-bg);
  border-radius:12px;
  box-shadow:0 4px 20px rgba(0,0,0,.1);
  padding:20px;
  max-width:750px;
  width:100%;
  margin-top: 20px;
}

.main-status {
  padding:15px;
  border-radius:8px;
  background: var(--section-bg);
  margin-bottom:20px;
  display:flex; flex-direction:column; gap:6px;
  max-width:750px;
  width:100%;
}

.section { margin:8px 0; }

.section button {
  width:100%; text-align:left; padding:10px;
  background: var(--accent); color:#fff;
  border:none; border-radius:6px; cursor:pointer;
}

.section-content {
  display:none; padding:10px; border:1px solid var(--border);
  border-radius:6px; max-height:200px; overflow:auto;
  background: var(--section-bg);
}

.controls {
  display:flex; justify-content:space-between;
  gap:10px; margin-top:10px;
}

.controls button {
  flex:1; padding:10px; border:none;
  border-radius:6px; background: var(--accent);
  color:#fff; cursor:pointer;
}

.loading { animation:spin 1s linear infinite; display:inline-block; margin-left:10px; }
@keyframes spin { from {transform:rotate(0deg);} to {transform:rotate(360deg);} }

table { width:100%; border-collapse: collapse; }
th, td { padding:5px; border-bottom:1px solid var(--border); text-align:left; }

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--footer-bg);
  color: var(--footer-text);
  font-family: monospace;
  padding: 10px;
  text-align: center;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
  z-index: 1000;
}

#raw-json-container {
  background: black;
  color: var(--footer-text);
  font-family: monospace;
}
