/* Dina Restaurante & Pizzaria — UI (Bootstrap-friendly) */

:root{
  --dina-orange:#f57c00;
  --dina-red:#d32f2f;
  --dina-green:#2e7d32;
  --dina-white:#ffffff;
  --dina-dark:#111827;
}

body{
  background:#f6f7fb;
}

/* ------------------- Auth ------------------- */
.auth-page{
  background: radial-gradient(1200px 800px at 10% 10%, rgba(245,124,0,.22), transparent 60%),
              radial-gradient(900px 700px at 90% 10%, rgba(46,125,50,.18), transparent 60%),
              linear-gradient(135deg, #ffffff, #f6f7fb);
}

.auth-left{
  width: 42%;
  max-width: 560px;
  /* imagem de fundo (lado esquerdo do login) */
  background: url("../img/login-bg.png") center/cover no-repeat;
  border-right: 1px solid rgba(17,24,39,.08);
  position: relative;
}

/* véu para melhorar contraste da logo */
.auth-left::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2,6,23,.55), rgba(2,6,23,.18));
}

.auth-left-logo-box{
  position: relative;
  z-index: 1; /* acima do overlay */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 260px;
  height: 180px;
}

.auth-left-logo-backdrop{
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
}

.auth-left-logo-img{
  position: relative;
  width: 210px;
  height: auto;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.28));
}

.auth-card{
  width: 100%;
  max-width: 440px;
  border-radius: 18px;
}

.auth-logo{
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
}

.auth-logo-sm{
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
}

/* ------------------- POS ------------------- */
.pos-topbar{
  background: linear-gradient(135deg, var(--dina-orange), var(--dina-red));
}

.brand-logo{
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,.35);
  box-shadow: 0 10px 18px rgba(0,0,0,.18);
}

.pos-filters{
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 30;
}

.pos-search{
  min-width: 280px;
  max-width: 520px;
  width: 42%;
}

.pos-products{
  background: #f6f7fb;
}

.pos-cart{
  width: 380px;
  min-width: 340px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.pos-cart-items{
  flex-grow: 1;
}

.pos-total{
  font-size: 1.6rem;
  font-weight: 800;
}

.product-card{
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(16,24,40,.08);
  transition: transform .08s ease, box-shadow .08s ease;
  cursor: pointer;
}

.product-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(16,24,40,.12);
}

.product-img{
  height: 120px;
  background: linear-gradient(135deg, rgba(245,124,0,.25), rgba(46,125,50,.12));
  display:flex;
  align-items:center;
  justify-content:center;
  color:#6b7280;
  font-weight:700;
}

.product-img img{
  width:100%;
  height:120px;
  object-fit:cover;
}

.product-price{
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dina-red);
}

.cart-item{
  border-bottom: 1px dashed rgba(0,0,0,.12);
  padding: 10px 0;
}

.cart-qty{
  width: 96px;
}

.btn-pay{
  border-radius: 14px;
  border: 0;
  font-weight: 800;
  color: #111;
}

.btn-pay i{ line-height: 1; }

.btn-pay-pix{
  background: #22c55e; /* verde */
  color: #062b13;
}

.btn-pay-card{
  background: #3b82f6; /* azul */
  color: #061b3b;
}

.btn-pay-cash{
  background: #fbbf24; /* amarelo */
  color: #3b2a06;
}

@media (max-width: 991px){
  .pos-cart{
    width: 340px;
    min-width: 320px;
  }
  .pos-search{
    width: 100%;
    min-width: 220px;
  }
}

/* ------------------- Admin ------------------- */
.admin-layout{
  display:flex;
  min-height:100vh;
  overflow-x: hidden;
}

.admin-sidebar{
  width: 270px;
  flex: 0 0 270px;
  min-width: 270px;
  max-width: 270px;
  background: linear-gradient(180deg, #0f172a 0%, #111827 60%, #0b1220 100%);
  color: #e5e7eb;
  display:flex;
  flex-direction:column;
  position: sticky;
  top:0;
  height:100vh;
  border-right: 1px solid rgba(255,255,255,.10);
}

.brand-logo-sm{
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(17,24,39,.12);
  background: #fff;
}


.admin-sidebar .nav-link{
  color: rgba(229,231,235,.92);
  border-radius: 12px;
  padding: .7rem .9rem;
  margin: .2rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-sidebar .nav-link i{
  color: rgba(229,231,235,.72);
}


.admin-sidebar .nav-link:hover{
  background: rgba(245,124,0,.18);
  color: #ffffff;
}

.admin-sidebar .nav-link:hover i{
  color: #ffb74d;
}


.admin-sidebar .nav-link.active{
  background: rgba(245,124,0,.24);
  color: #ffffff;
  border: 1px solid rgba(245,124,0,.35);
}

.admin-sidebar .nav-link.active i{
  color: #ffd180;
}


.admin-sidebar-footer{
  margin-top:auto;
  border-top:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}

.admin-sidebar .text-dark{ color: #fff !important; }
.admin-sidebar .text-muted{ color: rgba(229,231,235,.70) !important; }
.admin-sidebar .border-secondary-subtle{ border-color: rgba(255,255,255,.12) !important; }


.admin-content{
  flex-grow:1;
  min-width: 0;
  background:#f6f7fb;
}

.kpi-card{
  border-radius: 16px;
}

.kpi-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 1.2rem;
}


/* ===== PDV: barra de atalhos embaixo dos produtos + carrinho com mais area de scroll ===== */
.pos-main{ min-height: calc(100vh - 64px); }
.pos-products{ display:flex; flex-direction:column; min-height:0; }
#productGrid{ flex:1 1 auto; min-height:0; overflow:auto; padding-bottom:52px; }
.pos-products-bar{
  position: sticky;
  bottom: 0;
  z-index: 15;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(2,6,23,.10);
}
.pos-products-bar__left{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(15,23,42,.70);
}
.pos-products-bar .k{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 28px;
  height: 20px;
  padding: 0 6px;
  border-radius: 8px;
  background: rgba(15,23,42,.08);
  color: rgba(15,23,42,.85);
  font-weight: 700;
  font-size: 11px;
}
.pos-products-bar .t{ font-size: 12px; }
.pos-products-bar .sep{ opacity: .35; padding: 0 2px; }
.pos-products-bar .hint{ font-size: 12px; opacity: .75; }

/* Carrinho: garante que os itens ocupem o maximo possivel */
.pos-cart{ display:flex; flex-direction:column; min-height:0; }
.pos-cart-items{ flex:1 1 auto; min-height:0; overflow:auto; }
.pos-cart-footer{ flex:0 0 auto; }

/* Mobile: barra de atalhos mais compacta */
@media (max-width: 991.98px){
  #productGrid{ padding-bottom: 46px; }
  .pos-products-bar{ padding: 6px 8px; border-radius: 12px; }
  .pos-products-bar__left{ font-size: 11px; gap: 5px; }
  .pos-products-bar .k{ min-width: 26px; height: 18px; font-size: 10px; }
  .pos-products-bar .hint{ display:none; }
}

/* Carrinho: aumenta area de rolagem (atalhos sairam do rodape) */
.pos-cart{ display:flex; flex-direction:column; height: calc(100vh - 120px); }
.pos-cart-items{ flex:1 1 auto; min-height:0; overflow:auto; }
.pos-cart-footer{ flex:0 0 auto; margin-top:auto; }

/* ===== PDV: sem scroll do navegador (somente areas internas) ===== */
html, body { height: 100%; }
.pos-body{ overflow: hidden; }
.pos-body{ margin:0; padding:0; }

/* ajustes: sem hint do scanner, não cortar conteúdo */
.pos-products-bar{ overflow: visible; }
.pos-products-bar__left{ min-width:0; }

/* PDV - Atalhos no rodape do carrinho (compacto) */
.pos-shortcuts-footer{
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(255,255,255,.9);
}
.pos-shortcuts-footer__title{
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6c757d;
  margin-bottom: 6px;
}
.pos-shortcuts-footer__grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.pos-shortcuts-footer__item{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 6px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  padding: 6px 6px;
  font-size: 11px;
  background: #fff;
}
.pos-shortcuts-footer__item .k{
  font-weight: 800;
  min-width: 30px;
  height: 18px;
  border-radius: 6px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(13,110,253,.10);
  color: #0d6efd;
  font-size: 10px;
}
.pos-shortcuts-footer__item .t{ font-weight: 600; }

@media (max-width: 420px){
  .pos-shortcuts-footer__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
