/* app.css — shared styles for all pages */

/* Base */
:root {
  --app-bg: #0b1220;
  --app-surface: #ffffff;
  --app-muted: #f6f7fb;
  --app-border: rgba(15, 23, 42, 0.08);
  --app-shadow: 0 10px 30px rgba(2, 8, 23, 0.12);
}

.app-bg {
  background: #ffffff;
}

/* Navbar */
.app-navbar {
  background: linear-gradient(135deg, #0b1220 0%, #121a2d 45%, #0b1220 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Hero */
.app-hero {
  background: radial-gradient(900px 380px at 20% 15%, rgba(59,130,246,0.35), transparent 60%),
  radial-gradient(900px 380px at 85% 35%, rgba(16,185,129,0.25), transparent 60%),
  linear-gradient(135deg, #0b1220 0%, #101a2f 55%, #0b1220 100%);
}

.app-badge {
  border: 1px solid rgba(255,255,255,0.25);
}

.app-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  display: inline-block;
}

.app-hero-image {
  max-height: 420px;
  object-fit: contain;
}

/* Sections */
.app-section-muted {
  background: var(--app-muted);
}

.app-section-title p {
  max-width: 680px;
  margin: 0 auto;
}

/* Cards */
.app-card {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 18px;
  box-shadow: var(--app-shadow);
}

.app-card-glass {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: none;
}

/* Icons */
.app-icon {
  width: 86px;
  height: 86px;
  object-fit: contain;
}

.app-icon-placeholder {
  width: 86px;
  height: 86px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 28px;
  background: rgba(59,130,246,0.12);
  border: 1px dashed rgba(59,130,246,0.35);
  color: rgba(59,130,246,0.9);
}

.app-mini-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

/* Lists */
.app-list {
  display: grid;
  gap: 12px;
}

.app-list-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.app-check {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.25);
}

.app-check i {
  color: #059669; /* readable accent */
}

/* Pricing */
.app-pricing {
  position: relative;
}

.app-pricing-featured {
  border: 2px solid rgba(59,130,246,0.35);
  transform: translateY(-4px);
}

.app-ul {
  padding-left: 18px;
  margin-bottom: 0;
}

.app-ul li {
  margin-bottom: 8px;
}

/* Footer */
.app-footer {
  border-top: 1px solid var(--app-border);
  background: #ffffff;
}

/* Go to top */
.app-gotop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  border-radius: 999px;
  box-shadow: var(--app-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.app-gotop.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
/* Page header (works for About, Services, Contact headers, etc.) */
.app-page-header {
  background: radial-gradient(900px 380px at 20% 15%, rgba(59,130,246,0.35), transparent 60%),
  radial-gradient(900px 380px at 85% 35%, rgba(16,185,129,0.25), transparent 60%),
  linear-gradient(135deg, #0b1220 0%, #101a2f 55%, #0b1220 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Values block */
.app-value {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--app-border);
  background: rgba(15, 23, 42, 0.02);
}

/* Make the footer go-top button behave like the fixed one */
.app-footer .app-gotop {
  position: static;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition: none;
}

/* Optional: nicer article typography for reading */
article p {
  line-height: 1.7;
}
/* Shop/product cards (general reusable patterns) */
.app-product-card img {
  max-height: 180px;
  width: 100%;
  object-fit: contain;
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid var(--app-border);
  padding: 10px;
}

.app-product-media {
  border-radius: 16px;
}

.min-w-0 { min-width: 0; }

/* Modal content should match app cards */
.modal-content.app-card {
  border-radius: 18px;
  border: 1px solid var(--app-border);
}
/* ===== Admin layout (sidebar + main) ===== */
.app-admin {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  width: 260px;
  background: #0b1220;
  color: rgba(255,255,255,0.85);
  padding: 18px 14px;
  border-right: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  height: 100vh;
}

.app-sidebar-brand {
  display: flex;
  justify-content: center;
  padding: 10px 0 18px;
}

.app-sidebar-nav {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.app-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}

.app-sidebar-nav a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* Main area */
.app-admin-main {
  flex: 1;
  min-width: 0;
}

/* Topbar */
.app-admin-topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--app-border);
  padding: 12px 0;
}

/* Responsive: sidebar collapses */
@media (max-width: 992px) {
  .app-sidebar {
    display: none;
  }
}

/* ===== Services rows (reusable) ===== */
.app-service-row {
  display: flex;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
  border: 1px solid var(--app-border);
  border-radius: 18px;
  overflow: hidden;
}

.app-service-row:nth-child(even) {
  flex-direction: row-reverse;
}

.app-service-image {
  flex: 1;
  min-height: 240px;
  background-size: cover;
  background-position: center;
}

.app-service-content {
  flex: 1;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}

@media (max-width: 768px) {
  .app-service-row,
  .app-service-row:nth-child(even) {
    flex-direction: column;
  }
  .app-service-image {
    min-height: 200px;
  }
  .app-service-content {
    text-align: center;
  }
}
/* Simple services thumbnail for cards */
.app-service-thumb {
  width: 100%;
  height: 160px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--app-border);
  background-color: rgba(15, 23, 42, 0.02);
}
/* Highlight active sidebar link */
.app-sidebar-nav a.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
/* Offcanvas styling to match your sidebar */
.app-offcanvas .offcanvas-header {
  border-bottom: 1px solid var(--app-border);
}

.app-offcanvas .offcanvas-body {
  padding: 12px;
}

/* Make the offcanvas background similar to sidebar */
.app-offcanvas.offcanvas {
  background: #0b1220;
  color: rgba(255,255,255,0.9);
}

.app-offcanvas .app-sidebar-nav a {
  color: rgba(255,255,255,0.85);
}

.app-offcanvas .app-sidebar-nav a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.app-offcanvas hr {
  border-color: rgba(255,255,255,0.12);
}
/* ---  ACCORDION HEADER MOBILE OVERFLOW --- */
.acc-head{min-width:0;}                /* allow shrink inside flex */
.acc-left{min-width:0;}
.acc-right{flex:0 0 auto;}

.receipt-id{
  display:block;
  min-width:0;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;                 /* mobile: keep one line + ellipsis */
}

@media (max-width: 576px){
  .acc-head{flex-direction:column; align-items:flex-start !important; font-size:0.9rem;}
  .acc-right{text-align:left !important; width:100%;}
}
/* --- Fix: modal too tall on mobile (scroll inside modal) --- */
@media (max-width: 576px){
  .modal .modal-dialog{
    margin: .5rem;                 /* smaller margins on phones */
  }

  .modal .modal-content{
    max-height: calc(100dvh - 1rem); /* dynamic viewport height (mobile safe) */
  }

  .modal .modal-body{
    overflow-y: auto;               /* allow scrolling */
    -webkit-overflow-scrolling: touch;
  }
}

/* Fallback for browsers without dvh support */
@supports not (height: 100dvh){
  @media (max-width: 576px){
    .modal .modal-content{
      max-height: calc(100vh - 1rem);
    }
  }
}

/* Optional: keep header/footer visible while scrolling body */
.modal .modal-header,
.modal .modal-footer{
  flex: 0 0 auto;
}
.modal .modal-body{
  flex: 1 1 auto;
}
