:root {
  /* Paleta "Soft Tech" - Índigo y Celeste Suave */
  --anchor-text-color: #38bdf8;
  --border-color: #27272a;
  --border-left: #27272a;
  --border-right: #27272a;
  --box-bg: #0f0f13; 
  --light-border: #1f1f22;
  --hover: #18181c;
  --main-background: #050505; 
  --main-color-dark: #6366f1; 
  --main-color-lighten: #818cf8; 
  --main-color: #000000; 
  --secondary-color-hover: #1a1a1f;
  --secondary-color: #0a0a0c; 
  --secondary-gradient: #050505;
  --supress-text-color: #737373; 
  --text-color: #d4d4d8; 
  --text-shadow: transparent;
  --white-color-hover: rgba(56, 189, 248, 0.1);
  --white-color: #0f0f13;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@import url("https://fonts.cdnfonts.com/css/roboto");

body {
  background: var(--main-background);
}

body,
a {
  font-family: "Roboto", sans-serif;
  color: var(--text-color);
}

img,
iframe {
  max-width: 100%;
}

a {
  text-decoration: none;
  color: var(--anchor-text-color);
  font-weight: 400;
  transition: all 0.2s ease;
}

a:hover {
  color: #7dd3fc; 
  text-decoration: underline; 
}

input:not([type="radio"]),
textarea,
select {
  outline: none;
  display: block;
  max-width: 100%;
  padding: 10px 12px;
  font-weight: 400;
  line-height: 1.5;
  color: #f4f4f5; 
  background-color: #050505; 
  background-clip: padding-box;
  border: 1px solid var(--border-color);
  appearance: none;
  border-radius: 6px; 
  transition: all 0.2s ease-in-out;
}

input:focus, textarea:focus {
    border-color: var(--anchor-text-color);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.3); 
}

button,
.btn {
  padding: 0px 15px;
  font-size: medium;
  cursor: pointer;
  display: grid;
  place-content: center;
}

label {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #71717a;
}

fieldset {
  padding: 10px 15px;
  border: 1px solid var(--border-color);
}

form,
.grey-box {
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: 8px; 
  background: var(--box-bg);
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

header {
  display: grid;
  grid-template-rows: 1fr 38px 15px; 
  grid-template-columns: 1fr;
}

footer {
  text-align: center;
  color: var(--supress-text-color);
  text-decoration: none;
  font-size: 11px;
  margin: 20px auto;
}

nav,
button,
.btn {
  background: linear-gradient(180deg, #18181b 0%, #09090b 100%);
  border-radius: 6px;
  color: #e4e4e7;
  border: 1px solid var(--border-color);
  height: 38px;
  line-height: 38px;
  font-weight: 500;
  transition: all 0.2s ease;
}

/* AQUÍ ESTÁ LA SOLUCIÓN: z-index y position para que el menú siempre esté visible */
nav {
  display: grid;
  align-content: center;
  grid-row: 2/3;
  grid-column: 1/2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  border: none;
  border-bottom: 1px solid var(--main-color-dark);
  position: relative;
  z-index: 10;
}

footer a {
  color: var(--supress-text-color);
}

nav ul {
  list-style-type: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0px, auto));
  justify-content: left;
  padding: 0px 15px;
}

nav li {
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  height: 38px;
  display: grid;
  align-content: center;
  padding: 0px 14px;
  overflow: hidden;
}

nav li:hover {
  background: var(--hover);
}

button:hover,
.btn:hover {
  background: var(--main-color-dark);
  color: #ffffff; 
  border-color: var(--main-color-dark);
}

nav li a {
  color: #e4e4e7;
  text-shadow: none;
}

.head-bg {
  background: #000 url("../img/header.jpg") center center no-repeat;
  background-size: cover;
  display: grid;
  min-height: 150px;
  justify-content: center;
  align-content: center;
  grid-row: 1/3;
  grid-column: 1/2;
}

.brand-container,
.content-wrapper,
nav {
  width: 95vw;
  max-width: 1200px;
  justify-self: center;
  margin: 0 auto;
}

.content-wrapper {
  padding: 30px 0;
}

.brand-container {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  grid-row: 1/1;
  grid-column: 1/2;
  align-self: center;
  position: relative;
  z-index: 10;
}

.brand-container h1 {
    font-size: 35px;
    letter-spacing: 1px;
    font-weight: 700;
}
.brand-container p {
    color: var(--anchor-text-color);
    font-size: 14px;
}

.input-area {
  margin: 18px 10px 10px 10px;
  display: grid;
  grid-template-columns: 1fr;
}

.input-area input,
.input-area label {
  grid-column: 1/2;
  grid-row: 1/2;
}

.input-area input + label,
.input-area input:focus + label {
  transform: translateY(-25px);
  transition: all 0.3s ease-in;
  font-size: 11px;
  color: var(--anchor-text-color);
  padding: 10px 0px;
  opacity: 1;
  z-index: 1;
}

.input-area input:placeholder-shown + label {
  transform: none;
  padding: 10px;
  pointer-events: none;
  color: var(--supress-text-color);
}

.login-box {
  width: 320px;
  margin: 0 auto;
}

.center-box {
  display: grid;
  justify-items: center;
}

.center-box .input-area small {
  justify-self: end;
  margin-top: 5px;
}

.center {
  text-align: center;
}

.center > * {
  margin: 0 auto;
}

.danger {
  color: #ef4444;
}

form.new-form {
  margin: 10px;
  padding: 0px;
  background: none;
  border: none;
  box-shadow: none;
}

.input-title {
  font-size: 25px;
  width: calc(100% - 20px);
}

.tabs {
  list-style-type: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  grid-auto-flow: column;
  justify-content: left;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: -1px;
}

.tabs li {
  text-align: center;
  border: 1px solid var(--border-color);
  border-bottom: none;
  background: #18181b;
  cursor: pointer;
  color: #a1a1aa;
  height: 40px;
  line-height: 40px;
  font-weight: 600;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  transition: all 0.2s ease;
  margin-right: 2px;
}

.tabs li div {
  overflow: hidden;
  height: 40px;
}

.tabs li.active,
.tabs li.active > div {
  background: var(--box-bg);
  color: var(--anchor-text-color);
  border-top: 1px solid var(--anchor-text-color); 
}

.tab_container {
  display: grid;
  grid-gap: 15px;
  border: 1px solid var(--border-color);
  background: var(--box-bg);
  padding: 20px;
  border-radius: 0 6px 6px 6px; 
  word-wrap: break-word;
  word-break: break-all;
}

.tab_container pre, 
.tab_container code, 
.tab_content pre {
    white-space: pre-wrap !important;
    word-break: break-all !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
    font-family: inherit;
    background: #050505; 
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #1f1f22;
    border-left: 1px solid var(--main-color-dark); 
}

.show_container {
  border: 1px solid var(--border-color);
  padding: 15px;
  border-radius: 6px;
}

.tab_container button {
  justify-self: center;
}

.tab_content {
  display: none;
}

.tab_content.active {
  display: block;
  animation: fade-in 0.3s;
}

.tab_content input {
  justify-self: center;
}

.tab_content textarea {
  font-family: "Roboto", sans-serif;
  width: calc(100% - 30px);
  min-height: 50vh;
  padding: 15px;
}

.bbuttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bbuttons .btn {
  margin-bottom: 5px;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.bottom-badge {
  list-style-type: none;
  display: grid;
  grid-gap: 5px;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  justify-items: center;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
}

.content-home {
  display: grid;
  justify-items: center;
  grid-gap: 30px;
}

.paste-list {
  list-style-type: none;
  border: 1px solid var(--border-color);
  min-width: 300px;
  border-radius: 6px;
  overflow: hidden;
}

.paste-list li {
  border-top: 1px solid var(--border-color);
  font-size: 20px;
  padding: 15px 20px;
  font-weight: 500;
  background: var(--box-bg);
}

.paste-list li:nth-child(1) {
  border-top: none;
}

.pagination {
  list-style-type: none;
  display: grid;
  grid-auto-flow: column;
  grid-gap: 8px;
  text-align: center;
}

.pagination.right { justify-content: right; }
.pagination.left { justify-content: left; }

.pagination a {
  text-align: center;
  padding: 8px 14px;
  font-weight: 500;
  cursor: pointer;
  background: #050505;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}

.pagination a:hover {
  background: var(--main-color-dark);
  color: #fff;
  border-color: var(--main-color-dark);
}

.pagination .active a,
.pagination .current a,
.pagination .active,
.pagination .current {
  font-weight: bold;
  background: var(--main-color-dark);
  color: #fff;
  border-color: var(--main-color-dark);
}

.config-container {
  display: grid;
  grid-template-columns: 200px 1fr;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.config-container > form {
  background: var(--box-bg);
  border: none;
  border-radius: 0;
}

.config-container aside {
  border-right: 1px solid var(--border-color);
  background: #050505;
}

.config-container aside ul {
  list-style-type: none;
  display: grid;
}

.config-container aside ul li {
  display: grid;
  border-bottom: 1px solid var(--border-color);
}

.config-container aside ul li:hover {
  background: var(--hover);
  border-left: 1px solid var(--main-color-dark);
}

.config-container aside ul li a {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 12px 15px;
  color: var(--text-color);
}

.ad-container {
  margin: 20px 0px;
  display: grid;
  justify-items: center;
}

.jdbtn {
  height: 40px;
  width: 300px;
  border: 1px solid var(--main-color-dark) !important;
  color: #ffffff !important;
  background: var(--main-color-dark) !important;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s;
}

.jdbtn:hover {
  background: var(--main-color-lighten) !important;
  border-color: var(--main-color-lighten) !important;
}

.jd {
  width: 300px;
  background: none;
  margin-top: 15px;
}

.vip {
  border: 1px solid var(--main-color-dark);
  border-radius: 6px;
  padding: 10px;
  background: rgba(99, 102, 241, 0.05);
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  justify-items: center;
  align-items: center;
  color: var(--main-color-lighten);
  font-weight: bold;
}

table, th, td { border: none; }

table {
  width: 100%;
  display: table;
  border-collapse: collapse;
  border-spacing: 0;
}

table.striped tr { border-bottom: none; }

table.striped > tbody > tr:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.02); 
}

table.striped > tbody > tr > td { border-radius: 0; }

table.highlight > tbody > tr {
  transition: background-color 0.2s ease;
}

table.highlight > tbody > tr:hover {
  background-color: rgba(56, 189, 248, 0.05); 
}

table.centered thead tr th,
table.centered tbody tr td {
  text-align: center;
}

tr { border-bottom: 1px solid var(--border-color); }

td, th {
  padding: 15px 10px;
  display: table-cell;
  text-align: left;
  vertical-align: middle;
  border-radius: 2px;
}

.left {
  justify-self: start;
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 10px;
}

.right { justify-self: end; }

.native-table-head,
.native-table-footer {
  display: grid;
  grid-template-columns: auto auto;
}

.native-table-head {
  padding: 0px !important;
  align-items: center;
}

.native-table-head #search { width: 100%; }

.native-table-footer { align-items: baseline; }

#table {
  padding: 10px 20px;
  border-radius: 8px;
  overflow-x: scroll;
}

.list-container {
  display: grid;
  padding: 30px 10px;
}

.swal2-actions button { height: auto; }

@media (max-width: 768px) {
  .config-container { grid-template-columns: 1fr; }
  .config-container aside {
    border-right: none;
    transition: 0.3s;
    height: 32px;
    overflow: hidden;
  }
  .config-container aside.show { height: 100% !important; }
  .config-container aside.active { display: block; }
  .config-container aside ul { border-bottom: 1px solid var(--border-color); }
  .config-container aside ul li:last-child { border-bottom: none; }
  .hamburger-menu-button {
    display: block;
    font-size: 25px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
    padding: 0px 10px;
    cursor: pointer;
    background: var(--box-bg);
    border-radius: 6px 6px 0px 0px;
    height: 38px;
  }
}

@media (min-width: 769px) {
  .hamburger-menu-button { display: none; }
}