/* ═══════════════════════════════════════════════
   MIÁLBUM — style.css
   Estilos compartidos para todas las páginas
═══════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --bg:      #0a0a0f;
  --bg2:     #111118;
  --bg3:     #1a1a26;
  --card:    #16161f;
  --border:  #2a2a3a;
  --accent:  #00e5a0;
  --red:     #ff4060;
  --yellow:  #ffd600;
  --purple:  #a78bfa;
  --text:    #f0f0f8;
  --text2:   #8888aa;
  --text3:   #555570;
  --have:    #00e5a0;
  --miss:    #ff4060;
  --dup:     #ffd600;
  --radius:  12px;
  --shadow:  0 8px 32px rgba(0,0,0,.5);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border: none;
  transition: all .18s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary  { background: var(--accent); color: #000; }
.btn-primary:hover { background: #00ffb3; transform: translateY(-1px); }
.btn-ghost    { background: transparent; color: var(--text2); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg3); color: var(--text); border-color: var(--accent); }
.btn-danger   { background: transparent; color: var(--red); border: 1px solid var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-yellow   { background: transparent; color: var(--yellow); border: 1px solid var(--yellow); }
.btn-yellow:hover { background: var(--yellow); color: #000; }
.btn-purple   { background: transparent; color: var(--purple); border: 1px solid var(--purple); }
.btn-purple:hover { background: var(--purple); color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-full { width: 100%; justify-content: center; }
.btn-icon { padding: 7px; width: 32px; height: 32px; }

/* ── FORMS ── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text2);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error {
  color: var(--red);
  font-size: 12px;
  margin-top: 6px;
  display: none;
}
.form-error.show { display: block; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn .28s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.92) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 26px;
  letter-spacing: 1px;
  margin-bottom: 6px;
  color: var(--accent);
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--border);
  border: none;
  border-radius: 6px;
  width: 30px; height: 30px;
  color: var(--text2);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.modal-close:hover { background: var(--red); color: #fff; }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 20px; right: 20px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  z-index: 999;
  transform: translateY(80px);
  opacity: 0;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  max-width: 300px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.ok  { border-color: var(--have); color: var(--have); }
.toast.err { border-color: var(--miss); color: var(--miss); }
.toast.warn { border-color: var(--yellow); color: var(--yellow); }

/* ── LOADING ── */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 500;
  transition: opacity .3s;
}
.loading-screen.hidden { opacity: 0; pointer-events: none; }
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-msg { color: var(--text2); font-size: 13px; }

/* ── HEADER ── */
.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,15,.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  font-family: 'Bebas Neue', cursive;
  font-size: 26px;
  letter-spacing: 2px;
  cursor: pointer;
  text-decoration: none;
}
.logo .mi    { color: var(--accent); }
.logo .album { color: var(--text2); }
.header-right { display: flex; align-items: center; gap: 10px; }
.user-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--text2);
  cursor: pointer;
  transition: border-color .2s;
}
.user-badge:hover { border-color: var(--accent); }
.user-id-chip {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
  background: rgba(0,229,160,.1);
  border: 1px solid rgba(0,229,160,.2);
  border-radius: 4px;
  padding: 1px 6px;
  cursor: pointer;
  transition: background .15s;
}
.user-id-chip:hover { background: rgba(0,229,160,.2); }

/* ── PAGES ── */
.page { display: none; }
.page.active { display: block; }

/* ── BADGES ── */
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.badge-yellow { background: rgba(255,214,0,.1); color: var(--yellow); border: 1px solid rgba(255,214,0,.2); }
.badge-green  { background: rgba(0,229,160,.1); color: var(--have); border: 1px solid rgba(0,229,160,.2); }
.badge-red    { background: rgba(255,64,96,.1);  color: var(--miss);  border: 1px solid rgba(255,64,96,.2); }
.badge-purple { background: rgba(167,139,250,.1); color: var(--purple); border: 1px solid rgba(167,139,250,.2); }

/* ── NOTIFICATION DOT ── */
.notif-dot {
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(1.3); }
}

/* ── SECTION HEADERS ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--text2);
}

/* ── CARDS ── */
.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.info-card-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text3);
  margin-bottom: 6px;
}
.info-card-value {
  font-family: 'Bebas Neue', cursive;
  font-size: 36px;
  letter-spacing: 1px;
  line-height: 1;
}

/* ── EMPTY STATE ── */
.empty-state {
  padding: 60px 28px;
  text-align: center;
  color: var(--text3);
}
.empty-state h3 { font-size: 18px; color: var(--text2); margin-bottom: 6px; }
.empty-state p  { font-size: 13px; margin-bottom: 20px; }

/* ── TABLE ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text3);
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(42,42,58,.5);
  color: var(--text2);
}
.data-table tr:hover td { background: var(--bg3); }
.data-table .td-primary { color: var(--text); font-weight: 500; }

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

/* ── NOTIFICATION ITEM ── */
.notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(42,42,58,.5);
  align-items: flex-start;
}
.notif-item:last-child { border-bottom: none; }
.notif-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.notif-icon.green { background: rgba(0,229,160,.12); }
.notif-icon.yellow { background: rgba(255,214,0,.12); }
.notif-icon.red   { background: rgba(255,64,96,.12); }
.notif-body { flex: 1; }
.notif-text { font-size: 13px; color: var(--text); line-height: 1.4; }
.notif-time { font-size: 11px; color: var(--text3); margin-top: 3px; }
.notif-unread .notif-text { font-weight: 600; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .top-header { padding: 0 14px; }
  .form-row   { grid-template-columns: 1fr; }
  .user-email { display: none; }
}
