/* Audio Killers Distribution — sistema de diseño interno.
   Paleta y tipografía extraídas del sitio real (audiokillersdistribution.com.ar):
   negro #030303, azul de marca #0156CD, verde lima #C9F500 como segundo acento,
   DM Sans (texto) + Six Caps (titulares condensados). */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800&family=Six+Caps&display=swap');

:root {
  --bg: #030303;
  --bg-elev: #0f1012;
  --bg-card: #121315;
  --bg-input: #030303;
  --border: #232323;
  --border-soft: #1a1b1d;
  --text: #f1efeb;
  --text-muted: #9a9a97;
  --text-faint: #5c5e5c;

  --blue: #0156CD;
  --blue-hover: #1467e0;
  --blue-soft: rgba(1, 86, 205, .16);

  --lime: #c9f500;
  --lime-soft: rgba(201, 245, 0, .12);
  --lime-text: #1a1f00;

  --accent: var(--blue);
  --accent-hover: var(--blue-hover);
  --accent-soft: var(--blue-soft);

  --green: #2fb872;
  --green-bg: rgba(47, 184, 114, .12);
  --amber: #e0a039;
  --amber-bg: rgba(224, 160, 57, .12);
  --red: #ea5a5a;
  --red-bg: rgba(234, 90, 90, .12);

  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
}

/* Urban Club — misma paleta base, acento rojo en vez de azul para
   diferenciarlo de Audio Killers de un vistazo. */
.theme-urban {
  --blue: #e1332e;
  --blue-hover: #f5453d;
  --blue-soft: rgba(225, 51, 46, .16);
}

* { box-sizing: border-box; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(circle at 15% 0%, rgba(1,86,205,.10), transparent 40%),
                     radial-gradient(circle at 100% 0%, rgba(201,245,0,.05), transparent 35%);
  background-attachment: fixed;
}

a { color: inherit; }

.display {
  font-family: 'Six Caps', 'DM Sans', sans-serif;
  font-weight: 400;
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: 1;
}

.shell { max-width: 1180px; margin: 0 auto; padding: 1.75rem 2rem 4rem; }
.shell.narrow { max-width: 760px; }
.shell.wide { max-width: 1560px; }

/* ---- topbar ---- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap;
  padding-bottom: 1.4rem; border-bottom: 1px solid var(--border-soft);
}
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; }
.brand img { height: 48px; width: 48px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text .ak { font-family: 'Six Caps', sans-serif; font-size: 2.1rem; letter-spacing: .04em; }
.brand-text .sub { font-size: .75rem; color: var(--text-muted); letter-spacing: .1em; text-transform: uppercase; margin-top: .15rem; }

nav.tabs { display: flex; gap: .2rem; background: var(--blue); padding: .3rem; border-radius: var(--radius-pill); border: 1px solid var(--blue-hover); flex-wrap: wrap; }
nav.tabs a {
  text-decoration: none; color: rgba(255,255,255,.75); font-size: .8rem; font-weight: 700;
  padding: .55rem 1.1rem; border-radius: var(--radius-pill); transition: background .15s, color .15s;
  letter-spacing: .01em;
}
nav.tabs a:hover { color: #fff; }
nav.tabs a.active { background: #fff; color: var(--blue); box-shadow: 0 4px 16px rgba(0,0,0,.25); }
nav.tabs a.logout { color: rgba(255,255,255,.55); }
nav.tabs a.logout:hover { color: #fff; }

/* ---- cards ---- */
.card {
  background: var(--bg-card); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 1.7rem; margin-bottom: 1.25rem;
  overflow-x: auto; position: relative;
}
.card h2 { font-size: 1.05rem; margin: 0 0 .35rem; font-weight: 700; }
.card h3 { font-size: .78rem; color: var(--text-muted); margin: 1.3rem 0 .6rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.card > p.hint { color: var(--text-muted); font-size: .88rem; line-height: 1.55; margin: 0 0 1.2rem; }

h1.page-title { font-family: 'Six Caps', sans-serif; font-size: 2.4rem; margin: 0; letter-spacing: .03em; }

/* accent rule under card headings for a bit of "vida" */
.card h2::after {
  content: ''; display: block; width: 34px; height: 3px; margin-top: .55rem;
  background: linear-gradient(90deg, var(--lime), var(--blue));
  border-radius: 2px;
}

/* ---- forms ---- */
label { font-size: .76rem; color: var(--text-muted); display: block; margin-bottom: .35rem; font-weight: 600; }
input[type=text], input[type=number], input[type=password], input[type=file], select {
  width: 100%; padding: .6rem .75rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-input); color: var(--text);
  font-size: .88rem; font-family: inherit;
}
input:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
input[type=file] { padding: .4rem 0; border: none; background: none; }

.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .65rem 1.35rem; border-radius: var(--radius-pill); border: 1px solid var(--border);
  font-weight: 700; font-size: .84rem; cursor: pointer; font-family: inherit;
  background: var(--bg-elev); color: var(--text);
  transition: background .15s, transform .1s;
}
.btn:hover { background: var(--border-soft); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--blue); border-color: var(--blue-hover); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-lime { background: var(--lime); border-color: var(--lime); color: var(--lime-text); }
.btn-lime:hover { filter: brightness(1.08); }
.btn-sm { padding: .4rem .95rem; font-size: .78rem; }
.btn-danger-text { background: none; border: none; color: var(--red); cursor: pointer; font-size: .8rem; padding: 0; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .9rem; }

/* ---- tables ---- */
table { width: 100%; border-collapse: collapse; }
th, td { padding: .6rem .7rem; text-align: left; border-bottom: 1px solid var(--border-soft); font-size: .85rem; }
th { background: var(--blue); color: #fff; font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; border-bottom: none; }
th:first-child { border-top-left-radius: var(--radius-sm); border-bottom-left-radius: var(--radius-sm); }
th:last-child { border-top-right-radius: var(--radius-sm); border-bottom-right-radius: var(--radius-sm); }
tbody tr:hover { background: rgba(255,255,255,.025); }
tr.row-danger { background: rgba(234, 90, 90, .07); }

/* ---- badges ---- */
.badge { display: inline-block; font-size: .7rem; font-weight: 700; padding: .22rem .65rem; border-radius: var(--radius-pill); white-space: nowrap; text-transform: uppercase; letter-spacing: .02em; }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-neutral { background: var(--bg-elev); color: var(--text-muted); }
.badge-lime { background: var(--lime-soft); color: var(--lime); }

/* ---- misc ---- */
.empty { color: var(--text-muted); padding: 2.5rem; text-align: center; font-size: .9rem; }
.msg { font-size: .85rem; margin-top: .6rem; }
.msg.ok { color: var(--lime); }
.msg.error { color: var(--red); }
.progress-track { background: var(--bg-elev); border-radius: var(--radius-pill); height: 8px; overflow: hidden; margin: 1rem 0 .5rem; display: none; }
.progress-fill { background: linear-gradient(90deg, var(--blue), var(--lime)); height: 100%; width: 0%; transition: width .3s; }
.filters { display: flex; gap: .2rem; flex-wrap: wrap; background: var(--blue); padding: .3rem; border-radius: var(--radius-pill); }
.filters a { color: rgba(255,255,255,.75); text-decoration: none; font-size: .8rem; font-weight: 600; padding: .5rem 1rem; border-radius: var(--radius-pill); transition: background .15s, color .15s; }
.filters a:hover { color: #fff; }
.filters a.active { background: #fff; color: var(--blue); }
details > summary { cursor: pointer; color: var(--text-muted); font-size: .88rem; padding: .4rem 0; font-weight: 600; }
details[open] > summary { color: var(--text); }
.file-list { list-style: none; padding: 0; margin: .5rem 0 0; }
.file-list li { margin-bottom: .15rem; }
.file-list a { text-decoration: none; color: var(--text); font-size: .85rem; padding: .35rem .55rem; border-radius: var(--radius-sm); display: inline-block; }
.file-list a:hover { background: var(--bg-elev); color: var(--lime); }

/* login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-card { width: 340px; text-align: center; }
.login-card img { height: 56px; margin-bottom: 1rem; }
.login-card h1 { font-family: 'Six Caps', sans-serif; font-size: 1.8rem; margin: 0 0 1.5rem; letter-spacing: .03em; }
.login-card h1::after { margin: .6rem auto 0; }

/* mobile -- pantallas angostas de celular. Sin esto, filas de botones y
   montos en la misma linea que se quedan sin lugar terminan aplastados
   letra por letra en vez de pasar a su propia linea. */
@media (max-width: 640px) {
  .shell { padding: 1.1rem .9rem 3rem; }
  .login-card { width: 100%; max-width: 340px; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
  .topbar { gap: .8rem; }
  nav.tabs { width: 100%; justify-content: flex-start; overflow-x: auto; }
}
