/* ── Datashor Brand Variables ──────────────────────────── */
:root {
  --ds-navy:      #0f2d5e;
  --ds-navy-mid:  #1a4480;
  --ds-navy-lt:   #e8eef7;
  --ds-surface:   #f4f7fb;
  --ds-border:    #dce4ee;
  --ds-muted:     #5a6a7e;
}

html {
  height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--ds-surface);
  color: #1f2937;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

header {
  flex-shrink: 0;
}

.container main,
main {
  flex: 1 0 auto;
}

.navbar {
  background: var(--ds-navy) !important;
}

footer,
.footer {
  position: static !important;
  bottom: auto !important;
  width: auto !important;
  line-height: normal !important;
  flex-shrink: 0;
  margin-top: auto;
  padding: 0.65rem 0;
  background: var(--ds-navy);
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #cdd8ea;
}

/* Main console page */

.console-shell {
  max-width: 1400px;
  margin: 0 auto;
}

.console-hero {
  border-radius: 18px;
  background: linear-gradient(135deg, var(--ds-navy-lt) 0%, #ffffff 50%, var(--ds-navy-lt) 100%);
  border: 1px solid var(--ds-border);
  box-shadow: 0 10px 24px rgba(15, 45, 94, 0.07);
  padding: 1rem 1.25rem 0.85rem 1.25rem;
}

.console-badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ds-navy-mid);
  background: var(--ds-navy-lt);
  border: 1px solid rgba(26, 68, 128, 0.2);
  border-radius: 999px;
}

.console-title {
  font-size: 2rem;
  font-weight: 750;
  color: #111827;
  letter-spacing: 0.01em;
}

.console-subtitle {
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--ds-navy-mid);
}

.console-tagline {
  font-size: 0.95rem;
  color: #6b7280;
}

/* Legacy home header */

.admin-home-header {
  padding: 0.5rem 0 0.25rem 0;
}

/* Shared section cards */

.admin-home-section {
  margin-bottom: 0.85rem !important;
}

.admin-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.admin-section-header {
  padding: 0.9rem 1.1rem;
  background: linear-gradient(to right, #f8f9fa, #ffffff);
  border-bottom: 1px solid #eef1f4;
}

.admin-section-header-product {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.admin-section-title {
  font-size: 1rem;
  font-weight: 650;
  color: #1f2937;
}

.admin-section-body {
  padding: 1rem;
}

.admin-subsection-title {
  font-weight: 650;
  color: #374151;
  letter-spacing: 0.01em;
}

.admin-subsection-title-lookup {
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.45rem !important;
}

/* Product-style home buttons */

.admin-home-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  text-align: left;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.admin-home-btn-compact {
  min-height: 42px;
  padding: 0.35rem 0.5rem;
  font-size: 0.9rem;
  line-height: 1.1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.admin-home-btn-product {
  min-height: 42px;
  padding: 0.4rem 0.55rem;
  font-size: 0.84rem;
  line-height: 1.1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.admin-home-btn-lookup {
  min-height: 34px;
  padding: 0.28rem 0.45rem;
  font-size: 0.74rem;
  line-height: 1.05;
  border-radius: 10px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
  gap: 0.35rem;
}

.admin-home-btn-lookup .admin-home-btn-icon {
  font-size: 0.62rem;
}

.admin-home-btn-lookup .admin-home-btn-text {
  font-size: 0.74rem;
  font-weight: 500;
}

.admin-home-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  opacity: 0.96;
}

.admin-home-btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.14);
}

.admin-home-btn-icon {
  font-size: 0.9rem;
  flex: 0 0 auto;
}

.admin-home-btn-text {
  display: block;
  text-align: left;
  white-space: normal;
}

/* Older hero classes kept for compatibility */

.admin-console-hero {
  padding-top: 10px;
  padding-bottom: 10px;
}

.admin-console-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #1b1f23;
  letter-spacing: 0.5px;
}

.admin-console-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ds-navy-mid);
  margin-bottom: 10px;
}

.admin-console-tagline {
  font-size: 0.95rem;
  color: #6c757d;
}

/* Admin detail pages */

.admin-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-page-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: #111827;
}

.admin-action-btn {
  min-width: 110px;
  border-radius: 12px;
  font-weight: 600;
}

.admin-table-wrap {
  border-radius: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  min-width: 980px;
}

.admin-table thead th {
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  font-weight: 700;
  white-space: nowrap;
}

.admin-table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.admin-input {
  border-radius: 12px;
  min-height: 44px;
}

.admin-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}

.admin-detail-label {
  font-weight: 700;
  color: #495057;
  margin-bottom: 0.75rem;
}

.admin-detail-value {
  color: #212529;
  margin-bottom: 0.75rem;
  word-break: break-word;
}

.admin-alert {
  border-radius: 14px;
}

/* Privacy page */

.privacy-card {
  max-width: 980px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}

.privacy-card h1 {
  font-size: 1.9rem;
  font-weight: 700;
}

.privacy-card h2 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
  font-weight: 650;
}

.privacy-card p {
  color: #4b5563;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

@media (max-width: 1199.98px) {
  .admin-home-btn-product {
    min-height: 40px;
    font-size: 0.8rem;
    padding: 0.35rem 0.5rem;
  }

  .admin-home-btn-lookup {
    min-height: 32px;
    font-size: 0.72rem;
    padding: 0.24rem 0.38rem;
  }

  .admin-home-btn-lookup .admin-home-btn-text {
    font-size: 0.72rem;
  }
}

@media (max-width: 991.98px) {
  .console-title {
    font-size: 1.7rem;
  }

  .console-subtitle {
    font-size: 1.05rem;
  }

  .admin-home-btn-compact {
    min-height: 40px;
    font-size: 0.85rem;
  }

  .admin-home-btn-product {
    min-height: 39px;
    font-size: 0.79rem;
  }

  .admin-home-btn-lookup {
    min-height: 31px;
    font-size: 0.7rem;
    padding: 0.22rem 0.34rem;
    gap: 0.28rem;
  }

  .admin-home-btn-lookup .admin-home-btn-icon {
    font-size: 0.56rem;
  }

  .admin-home-btn-lookup .admin-home-btn-text {
    font-size: 0.7rem;
  }

  .admin-subsection-title-lookup {
    font-size: 0.76rem;
  }
}

@media (max-width: 767.98px) {
  .admin-page-title {
    font-size: 1.5rem;
  }

  .admin-action-btn {
    width: 100%;
  }

  .admin-table {
    min-width: 840px;
  }

  .admin-home-btn-compact {
    min-height: 38px;
    font-size: 0.82rem;
    padding: 0.3rem 0.45rem;
  }

  .console-hero {
    padding: 0.9rem 0.8rem 0.8rem 0.8rem;
  }

  .admin-home-btn-lookup {
    min-height: 30px;
    font-size: 0.68rem;
    padding: 0.2rem 0.3rem;
  }

  .admin-home-btn-lookup .admin-home-btn-icon {
    font-size: 0.52rem;
  }

  .admin-home-btn-lookup .admin-home-btn-text {
    font-size: 0.68rem;
  }

  .admin-subsection-title-lookup {
    font-size: 0.74rem;
  }
}

/* Navbar polish */

.console-navbar
{
background: var(--ds-navy);
box-shadow:0 2px 8px rgba(0,0,0,.15);
}

.console-logo
{
height:40px;
width:auto;
filter: brightness(0) invert(1);
}

.console-brand-text
{
font-weight:600;
font-size:1.05rem;
color:#ffffff;
}

.console-nav-link
{
font-weight:500;
color:#cdd8ea !important;
}

.console-nav-link:hover
{
color:#ffffff !important;
}


/* Footer polish */

.console-footer
{
background: var(--ds-navy);
border-top:1px solid rgba(255,255,255,0.1);
padding:.65rem 0;
}

.console-footer-link
{
margin-left:10px;
color:#7a95b8 !important;
}

.console-footer-link:hover
{
color:#cdd8ea !important;
}

.console-version
{
font-size:.9rem;
color:#7a95b8;
}

.console-env-badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ds-navy-lt);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  line-height: 1.2;
}

/* Reduce vertical spacing so home fits one screen */

.console-hero {
    padding: .8rem 1rem .6rem 1rem;
    margin-bottom: .5rem !important;
}

.admin-home-section {
    margin-bottom: .6rem !important;
}

.admin-section-header {
    padding: .55rem .9rem;
}

.admin-section-body {
    padding: .7rem;
}

main.pb-3 {
    padding-bottom: .4rem !important;
}

.container {
    max-width: 1320px;
}