@import url("./theme.css");

/* Panel dashboard styles */

body {
  display: flex;
  background: var(--bg-body);
  min-height: 100vh;
  color: var(--text-dark);
  overflow: hidden;
  /* To handle scrolling cleanly inside main */
}

/* ================= SIDEBAR (DARK) ================= */
.sidebar {
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  flex-shrink: 0;
  height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  color: var(--text-light-muted);
  display: flex;
  flex-direction: column;
  z-index: 100;
  position: relative;
}

.sidebar-header {
  padding: 30px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar h2 {
  color: #363636;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar h2 i {
  color: var(--primary);
  text-shadow: 0 0 15px var(--primary-glow);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 20px 16px;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 10px;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin-bottom: 8px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-light-muted);
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.sidebar a i {
  font-size: 18px;
  width: 22px;
  text-align: center;
  transition: var(--transition);
}

.sidebar a:hover,
.sidebar a.active {
  background: var(--df-sidebar-hover);
  color: var(--df-primary);
  border-color: var(--df-border-light);
  box-shadow: inset 4px 0 0 var(--primary);
}

.sidebar a:hover i,
.sidebar a.active i {
  color: var(--primary);
}

/* ================= MAIN CONTENT AREA ================= */
.main {
  flex: 1;
  background: var(--main-bg);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  position: relative;
  padding: 0;
}

/* ================= TOP NAVBAR GLOAL ================= */
.top-nav {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-search {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.nav-search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.nav-search input {
  width: 100%;
  padding: 12px 16px 12px 45px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background: #fff;
  font-size: 14px;
  transition: var(--transition);
  margin: 0;
}

.nav-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.nav-profile {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-icon,
a.nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  text-decoration: none;
}

.nav-icon:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.nav-icon .badge-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid #fff;
}

.profile-avatar {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.profile-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-avatar span {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
}

/* ================= PAGE CONTENT ================= */
@keyframes fadeInSlideUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-content {
  padding: 30px 40px;
  animation: fadeInSlideUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.header {
  /* Title wrapper */
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.header-actions input,
.header-actions select,
.header-actions button {
  margin-bottom: 0;
  width: auto;
}

.header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

/* ================= CARDS / METRICS ================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.card {
  background: var(--card-bg);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card::before {
  /* Accent glow */
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, transparent, var(--primary-glow));
  opacity: 0.1;
  transition: var(--transition);
  border-radius: 0 0 0 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card:hover::before {
  opacity: 0.4;
}

.card h3 {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card h2,
.card .big {
  margin-top: 15px;
  color: var(--text-dark);
  font-size: 32px;
  font-weight: 800;
}

/* ================= BOXES & GRIDS ================= */
.grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-top: 20px;
}

.box,
.list,
.table {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
}

.box h3 {
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 700;
}

.item,
.row {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
  transition: var(--transition);
  border-radius: 12px;
  margin-bottom: 5px;
}

.item:last-child,
.row:last-child {
  border-bottom: none;
}

.item:hover,
.row:not(.header):hover {
  background: #f9fafb;
  transform: translateX(5px);
}

.item span {
  font-weight: 500;
}

.item strong {
  color: var(--primary);
  font-weight: 700;
}

/* ================= LISTS ================= */
.list {
  margin-top: 20px;
}

.row,
.item {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.row:hover,
.item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Table specific Columns */
.col {
  flex: 1;
  text-align: center;
  font-size: 14px;
  color: var(--text-dark);
}

.col:first-child {
  text-align: left;
  font-weight: 500;
}

.col:last-child {
  text-align: right;
}

.row.header {
  background: transparent;
  box-shadow: none;
  border: none;
  font-weight: 600;
  color: var(--text-muted);
  padding-bottom: 5px;
  border-bottom: 2px solid var(--border-color);
  border-radius: 0;
  margin-bottom: 5px;
}

/* ================= REVIEWS / PEDIDOS BOARD ================= */
.review {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  border-left: 4px solid var(--primary);
}

.review:hover {
  box-shadow: var(--shadow-hover);
  transform: translateX(4px);
}

/* LAYOUT CONTAINER */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ================= INPUTS & BUTTONS ================= */
.filter {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.filter input,
.filter select,
.filter button {
  width: auto;
  margin-bottom: 0;
}

input,
select,
textarea,
.search {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: #f9fafb;
  transition: var(--transition);
  font-size: 14px;
  color: var(--text-dark);
  font-family: "Outfit";
  width: 100%;
  margin-bottom: 15px;
}

input:focus,
select:focus,
textarea:focus,
.search:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
  outline: none;
}

button {
  background: linear-gradient(135deg, var(--primary), var(--df-primary-dark));
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  box-shadow: 0 4px 12px var(--primary-glow);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--primary-glow);
}

.badge,
.status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--df-primary-light);
  color: var(--primary);
  display: inline-block;
}

.status.paid {
  background: rgba(46, 204, 113, 0.1);
  color: #2ecc71;
}

.status.cancel {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}

.status.wait {
  background: rgba(243, 156, 18, 0.1);
  color: #f39c12;
}

.mobile-menu-toggle,
.sidebar-close {
  display: none;
}

/* ================= RESPONSIVO (MOBILE) ================= */
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body, html {
    display: block !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    min-height: 100vh !important;
  }
  body.sidebar-open {
    overflow: hidden !important;
  }

  /* --- OFF-CANVAS SIDEBAR DRAWER --- */
  .sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 280px !important;
    max-width: 280px !important;
    height: 100vh !important;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 1100 !important;
    display: flex !important;
    flex-direction: column !important;
    border-right: 1px solid var(--sidebar-border) !important;
    border-top: none !important;
    padding: 0 !important;
  }

  .sidebar.open {
    transform: translateX(0) !important;
  }

  .sidebar-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 24px !important;
    border-bottom: 1px solid var(--sidebar-border) !important;
  }

  .sidebar h2 {
    display: flex !important;
    align-items: center !important;
    font-size: 20px !important;
    color: #fff !important;
  }

  .sidebar-nav {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    overflow-y: auto !important;
    padding: 0 16px 20px 16px !important;
    width: auto !important;
    height: calc(100vh - 80px) !important;
    margin: 0 !important;
  }

  .sidebar-nav a {
    display: flex !important;
    flex: none !important;
    flex-direction: row !important;
    gap: 14px !important;
    padding: 14px 18px !important;
    margin-bottom: 8px !important;
    border-radius: 12px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-decoration: none !important;
    border: 1px solid transparent !important;
    width: auto !important;
  }

  .sidebar-nav a span {
    display: inline-block !important;
    font-size: 15px !important;
    line-height: inherit !important;
    text-align: left !important;
  }

  .sidebar-nav a i {
    font-size: 18px !important;
    width: 22px !important;
    display: inline-block !important;
    text-align: center !important;
    margin: 0 !important;
  }

  .sidebar-nav a:hover,
  .sidebar-nav a.active {
    box-shadow: inset 4px 0 0 var(--primary) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
  }

  /* --- MENU TOGGLE & BACKDROP --- */
  .mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
  }
  
  .mobile-menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary);
  }

  .sidebar-close {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-light-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: var(--transition);
  }

  .sidebar-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
  }

  .sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* --- CONTENT AREA & SCROLLABLE TABLES --- */
  .main {
    border-radius: 0 !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: 100vh !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .page-content {
    padding: 15px !important;
  }

  .top-nav {
    padding: 15px 20px !important;
    flex-direction: row !important;
    gap: 10px !important;
    justify-content: space-between !important;
  }

  .nav-search {
    display: none !important;
  }

  .cards {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 16px !important;
  }

  .table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 15px !important;
  }

  .table .row {
    min-width: 680px !important;
    display: flex !important;
    box-sizing: border-box !important;
  }
}

/* ================= GRID-CARDS FOR PRODUCTS/LISTS ================= */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

/* ================= IMG CONTAINER (For Product Cards) ================= */
.img-container {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  margin-bottom: 15px;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .img-container img {
  transform: scale(1.05);
}

/* ================= MODAL GLOBALS ================= */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.modal-content {
  background: #ffffff;
  padding: 30px;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 450px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal.show .modal-content {
  animation: modalSlideIn 0.25s ease forwards;
}


.modal-content h3 {
  margin-bottom: 20px;
  font-size: 22px;
  color: var(--text-dark);
}

/* ================= SMALL & ACTION BUTTONS ================= */
.actions-row,
.actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.btn-sm,
.actions button {
  flex: 1;
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
  background: transparent;
  box-shadow: none;
}

.btn-edit,
.actions .edit {
  background: rgba(52, 152, 219, 0.1);
  color: #3498db;
}

.btn-edit:hover,
.actions .edit:hover {
  background: #3498db;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(52, 152, 219, 0.2);
}

.btn-delete,
.actions .delete,
.modal-content .delete {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}

.btn-delete:hover,
.actions .delete:hover,
.modal-content .delete:hover {
  background: #e74c3c;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(231, 76, 60, 0.2);
}

.btn-default,
.actions .accept {
  background: rgba(46, 204, 113, 0.1);
  color: #2ecc71;
}

.btn-default:hover,
.actions .accept:hover {
  background: #2ecc71;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(46, 204, 113, 0.2);
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}

.modal-actions button {
  flex: 1;
}

.btn-cancel {
  background: #f3f4f6;
  color: var(--text-dark);
  box-shadow: none;
}

.btn-cancel:hover {
  background: #e5e7eb;
}

/* STATUS BADGES */
.pago {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.pendente {
  background: rgba(243, 156, 18, 0.15);
  color: #f39c12;
  border: 1px solid rgba(243, 156, 18, 0.3);
}

.cancelado {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

/* LOGIN GLOBALS EXTRATO */
.left {
  flex: 1.2;
  background:
    linear-gradient(rgba(154, 205, 50, 0.85), rgba(173, 255, 47, 0.9)),
    url("https://images.unsplash.com/photo-1542838132-92c53300491e?w=1600")
      center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 40px;
}

.left-content {
  max-width: 500px;
}

.left-content h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.left-content p {
  font-size: 18px;
  opacity: 0.9;
  line-height: 1.6;
}

.right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #fff;
}

.login-card {
  width: 100%;
  max-width: 420px;
}

.login-card h2 {
  font-size: 32px;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.login-card p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.login-card button {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 15px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.login-card button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.links {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 14px;
}

.links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
}

.links a:hover {
  color: var(--primary-hover);
}

.social {
  margin-top: 30px;
  text-align: center;
  position: relative;
}

.social::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-color);
  z-index: 1;
}

.social span {
  background: #fff;
  padding: 0 10px;
  color: var(--text-muted);
  font-size: 14px;
  position: relative;
  z-index: 2;
}

.social-btns {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-btns button {
  margin-top: 0;
  background: #f9fafb;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.social-btns button:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
}


/* KANBAN BOARD GLOBALS (PEDIDOS) */
.board {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  padding-bottom: 30px;
  min-height: 70vh;
}

.column {
  min-width: 270px;
  max-width: 270px;
  flex-shrink: 0;
  background: var(--bg-body);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--border-color);
}

.column h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 2px;
  color: var(--text-dark);
}

.column h3 .count {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.kanban-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 12px;
  border-left: 4px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition);
}

.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.kanban-card.novo { border-left-color: var(--primary); }
.kanban-card.preparo { border-left-color: #F59E0B; }
.kanban-card.entrega { border-left-color: #3B82F6; }

.id-badge {
  background: var(--df-border-light);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
}

.kanban-card h4 {
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.items-list {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 15px;
  background: #f8fafc;
  padding: 10px;
  border-radius: 6px;
  border: 1px dashed #e2e8f0;
}

.total {
  font-weight: 800;
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.kanban-actions {
  display: flex;
  gap: 10px;
}

.kanban-actions button {
  padding: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-accept {
  flex: 1;
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
}

.btn-accept:hover { background: #10B981; color: white; }

.btn-next {
  flex: 1;
  background: rgba(59, 130, 246, 0.1);
  color: #3B82F6;
}

.btn-next:hover { background: #3B82F6; color: white; }

.btn-reject {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  width: 40px;
}

.btn-reject:hover { background: #EF4444; color: white; }
/* ================= FORMS & MODALS ================= */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrapper i {
  position: absolute;
  left: 15px;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 2;
}
.input-wrapper input,
.input-wrapper select {
  padding-left: 42px !important;
  margin-bottom: 0 !important;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: #f9fafb;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  outline: none;
}

/* ================= PRODUCT CARDS ================= */
.product-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.product-card .img-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-body);
}

.product-card .img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .img-container img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  color: var(--text-dark);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 8px;
  font-weight: 600;
  padding: 4px 10px;
  font-size: 12px;
  z-index: 2;
}

.product-status {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  z-index: 2;
}

.product-status.ativo {
  background: rgba(46, 204, 113, 0.9);
}

.product-status.pausado {
  background: rgba(231, 76, 60, 0.9);
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-title {
  margin: 0;
  font-size: 18px;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.3;
}

.product-price {
  color: var(--primary);
  font-weight: 800;
  font-size: 20px;
}

/* Modal specific actions fix */
.modal-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.modal-actions button {
  width: auto;
  min-width: 120px;
}

/* ================= CUSTOM PAGINATION ================= */
.pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  margin-bottom: 15px;
}
.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  gap: 8px;
}
.page-item .page-link,
.page-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  cursor: pointer;
}
.page-item a.page-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--primary-glow);
}
.page-item.active .page-link,
.page-item.active span {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px var(--primary-glow);
}
.page-item.disabled .page-link,
.page-item.disabled span {
  background: #f3f4f6 !important;
  border-color: #e5e7eb !important;
  color: #9ca3af !important;
  cursor: not-allowed;
}

/* ============================================================
   ADMIN / LOJISTA PANEL MOBILE RESPONSIVENESS OVERRIDES
   ============================================================ */
@media (max-width: 768px) {
  /* Login split-screen responsiveness */
  .left {
    display: none !important;
  }
  .right {
    width: 100% !important;
    min-height: 100vh !important;
    padding: 20px !important;
  }

  /* Prevent horizontal overflow on panels and cumulative padding squishing */
  .main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
  .page-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px !important;
    box-sizing: border-box !important;
  }
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
  }

  /* Add extra padding at the bottom of the main content so the bottom mobile navbar does not hide content */
  .page-content, .main {
    padding-bottom: 110px !important;
  }

  /* Form layouts stack vertically */
  .form-grid, .form-grid-3, .form-grid-4 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Modals are scrollable on smaller screens so the buttons are not hidden */
  .modal {
    align-items: flex-start !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 80px 16px 40px !important;
    box-sizing: border-box !important;
  }
  .modal-content {
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    overflow-y: visible !important;
    padding: 24px 20px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    border-radius: 12px !important;
  }

  /* Grid layout stacks columns */
  .grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Table responsive wrappers for all actual tables */
  table, .coupon-table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* List row responsive layout (Flexbox tables) */
  .row:not(.header) {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 14px !important;
  }
  .row.header {
    display: none !important; /* Hide header names on mobile flex tables */
  }
  .col {
    text-align: left !important;
    width: 100% !important;
    flex: none !important;
    padding: 2px 0 !important;
  }
  .col:first-child {
    font-weight: 700 !important;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px !important;
    margin-bottom: 4px !important;
  }
  .col:last-child {
    text-align: left !important;
    margin-top: 8px !important;
  }

  /* Specific overrides to prevent custom flex tables (.table) from stacking vertically on mobile */
  .table .row {
    flex-direction: row !important;
    align-items: center !important;
    min-width: 680px !important;
    display: flex !important;
    padding: 16px 20px !important;
    gap: 0 !important;
  }
  .table .row.header {
    display: flex !important;
  }
  .table .col {
    text-align: center !important;
    width: auto !important;
    flex: 1 !important;
    padding: 0 8px !important;
  }
  .table .col:first-child {
    text-align: left !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    font-weight: normal !important;
  }
  .table .col:first-child strong {
    font-weight: 700 !important;
  }
  .table .col:last-child {
    text-align: right !important;
    margin-top: 0 !important;
  }
}

/* ============================================================
   DEEP PANEL MOBILE REFINEMENTS — ADMIN & LOJISTA
   ============================================================ */
@media (max-width: 768px) {
  /* Top nav on mobile: compact layout */
  .top-nav {
    padding: 10px 16px !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }
  .top-nav h2, .top-nav .page-title {
    font-size: 1rem !important;
  }
  .nav-search {
    display: none !important;
  }

  /* Header within page content stacks vertically */
  .header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
  }
  .header h2 {
    font-size: 1.2rem !important;
  }
  .header-actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }
  .header-actions input,
  .header-actions .search {
    width: 100% !important;
  }
  .header-actions button {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Notification toggle items stay readable */
  .notif-toggle-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid var(--border-color) !important;
    flex-wrap: nowrap !important;
  }
  .notif-toggle-info {
    flex: 1 !important;
  }
  .notif-toggle-title {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
  }
  .notif-toggle-desc {
    font-size: 0.78rem !important;
  }

  /* Actions buttons inside rows/cards wrap */
  .actions, .kanban-actions {
    flex-wrap: wrap !important;
  }

  /* Pagination smaller on mobile */
  .pagination {
    gap: 4px !important;
  }
  .page-item .page-link,
  .page-item span {
    min-width: 34px !important;
    height: 34px !important;
    font-size: 12px !important;
    padding: 0 8px !important;
  }
}

@import url("./layout-enhancements.css");


