/* MYTVOnline7 Pro — brand adjustments on top of the untouched Adminator 4.4.0 template. */

.brand-logo { background: linear-gradient(135deg, var(--primary), var(--purple)); padding: 4px; }
.brand-logo img { filter: none; }

.d-topbar .icon-btn { text-decoration: none; }

/* Card titles with an inline icon */
.card-title svg { display: inline-block; margin-right: 6px; vertical-align: -2px; }

/* Tables inside legacy pages */
.table-responsive { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; }
.table thead th { color: var(--t-light); font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: .14em; padding: 10px 12px; text-transform: uppercase; }
.table tbody td { border-bottom: 1px solid var(--border-soft); font-size: 13px; padding: 11px 12px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--bg-hover); }
.table-striped tbody tr:nth-child(odd) td { background: color-mix(in oklab, var(--bg-muted) 55%, transparent); }
.table-striped tbody tr:hover td { background: var(--bg-hover); }
.form-group { margin-bottom: 14px; }

/* Legacy tables used a fixed white header text — force theme colors instead. */
.table thead th, table thead th { color: var(--t-light) !important; }

/* Form controls used by legacy pages map onto Adminator inputs */
.form-control, .ctinput .form-control {
  width: 100%;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--t-base);
  font-size: 13px;
  padding: 9px 12px;
  outline: none;
  transition: border-color .16s, box-shadow .16s;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
label.form-label, .form-label { display: block; color: var(--t-muted); font-size: 12px; font-weight: 600; margin-bottom: 6px; }

/* Buttons used by legacy pages */
.btn-info, .btn-primary {
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 8px;
  color: var(--t-inverse);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 14px;
  transition: all .18s ease;
}
.btn-info:hover, .btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--t-inverse); text-decoration: none; }
.btn-danger { background: var(--danger); border: 1px solid var(--danger); border-radius: 8px; color: #fff; font-size: 13px; font-weight: 600; padding: 9px 14px; }
.btn-danger:hover { filter: brightness(0.94); color: #fff; text-decoration: none; }
.btn-secondary { background: var(--bg-muted); border: 1px solid var(--border); border-radius: 8px; color: var(--t-base); font-size: 13px; font-weight: 600; padding: 9px 14px; }
.btn-warning { background: var(--warning); border: 1px solid var(--warning); border-radius: 8px; color: var(--t-inverse); font-size: 13px; font-weight: 600; padding: 9px 14px; }
.btn-ok { margin-right: 4px; }

/* Cards from legacy ovo_card_* helpers */
.ctcard, .card.ctcard { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-card); }
.card-header-warning, .ctcard .card-header { background: transparent; border-bottom: 1px solid var(--border-soft); color: var(--t-base); padding: 16px 20px 12px; }
.ctcard .card-header h2 { font-family: 'Inter Tight', sans-serif; font-size: 16px; font-weight: 700; margin: 0; }
.ctcard .card-body { padding: 20px; }

/* Stat tiles (legacy dashboard) */
.ctstats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 20px; }
.ctstat { align-items: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-card); display: flex; gap: 14px; padding: 18px 20px; }
.ctstat-ico { align-items: center; background: var(--primary-soft); border-radius: 10px; color: var(--primary); display: grid; height: 42px; place-items: center; width: 42px; }
.ctstat-ico-violet { background: var(--purple-soft); color: var(--purple); }
.ctstat-ico-green { background: var(--success-soft); color: var(--success); }
.ctstat-ico-amber { background: var(--warning-soft); color: var(--warning); }
.ctstat-ico-pink { background: var(--pink-soft); color: var(--pink); }
.ctstat-num { color: var(--t-base); font-family: 'Inter Tight', sans-serif; font-size: 22px; font-weight: 700; line-height: 1.1; }
.ctstat-lbl { color: var(--t-muted); font-size: 12px; }
.ctquick { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }

/* Content spacing inside .content */
.content > .ctmain-table { margin-bottom: 20px; }
.content .container-fluid { padding: 0; }

/* Auth (login) page: use Adminator tokens over the existing login style */
.login-wrap { align-items: center; background: var(--bg-body); display: flex; justify-content: center; min-height: 100vh; padding: 24px; }
.login-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); max-width: 420px; padding: 36px; width: 100%; }
.login-card h1 { color: var(--t-base); font-family: 'Inter Tight', sans-serif; font-size: 22px; margin: 0 0 4px; }
.login-card .sub { color: var(--t-muted); font-size: 13px; margin: 0 0 22px; }
.login-logo { display: block; margin: 0 auto 16px; max-height: 64px; }

/* Confirm dialog — hidden until panel.js adds .is-open (template ships the markup only). */
.adm-overlay {
  align-items: center;
  background: rgba(15, 23, 42, .55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 24px;
  position: fixed;
  transition: opacity .18s ease, visibility .18s ease;
  visibility: hidden;
  z-index: 1200;
}
.adm-overlay.is-open { opacity: 1; visibility: visible; }
.adm-overlay .modal-demo { max-height: calc(100vh - 48px); overflow-y: auto; transform: translateY(8px) scale(.98); transition: transform .18s ease; width: 100%; }
.adm-overlay.is-open .modal-demo { transform: none; }

/* Public site lives in css/site.css */
