/* Variáveis CSS */
:root {
  --primary-color: #4a6bdf;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --sidebar-width: 250px;
  --header-height: 60px;
}

/* Reset e estilos globais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fb;
  color: #333;
  line-height: 1.6;
}

.container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--dark-color);
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.logo {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

.logo i {
  color: var(--primary-color);
  margin-right: 8px;
}

.menu {
  flex: 1;
  padding: 20px 0;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border-left: 3px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
}

.menu-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: white;
}

.menu-item.active {
  background-color: rgba(74, 107, 223, 0.15);
  border-left-color: var(--primary-color);
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
}

.menu-item i {
  margin-right: 12px;
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.user-info {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
  font-size: 2rem;
  margin-right: 12px;
}

.user-details {
  flex: 1;
}

.user-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.user-email {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Conteúdo principal */
.content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  transition: margin-left 0.3s ease;
}

.header {
  height: var(--header-height);
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header h1 {
  font-size: 1.5rem;
  color: var(--dark-color);
}

.header-actions {
  display: flex;
}

.btn-icon {
  background: none;
  border: none;
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin-left: 15px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.btn-icon:hover {
  color: var(--primary-color);
}

.page-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

/* Formulários */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(74, 107, 223, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Botões */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #3a5bd0;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-success {
  background-color: var(--success-color);
  color: white;
}

.btn-danger {
  background-color: var(--danger-color);
  color: white;
}

.btn-warning {
  background-color: var(--warning-color);
  color: var(--dark-color);
}

.btn-info {
  background-color: var(--info-color);
  color: white;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.875rem;
}

.btn-group {
  display: flex;
  gap: 10px;
}

/* Cards */
.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  overflow: hidden;
}

.card-header {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.card-body {
  padding: 20px;
}

.card-footer {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  background-color: rgba(0, 0, 0, 0.02);
}

/* Tabelas */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.table th {
  font-weight: 600;
  color: var(--secondary-color);
}

.table tbody tr:hover {
  background-color: #f8f9fa;
}

.table-responsive {
  overflow-x: auto;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25em 0.4em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}

.badge-primary {
  background-color: var(--primary-color);
  color: white;
}

.badge-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.badge-success {
  background-color: var(--success-color);
  color: white;
}

.badge-danger {
  background-color: var(--danger-color);
  color: white;
}

.badge-warning {
  background-color: var(--warning-color);
  color: var(--dark-color);
}

.badge-info {
  background-color: var(--info-color);
  color: white;
}

/* Sistema de Grid */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col,
.col-1,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-10,
.col-11,
.col-12,
.col-md-1,
.col-md-2,
.col-md-3,
.col-md-4,
.col-md-5,
.col-md-6,
.col-md-7,
.col-md-8,
.col-md-9,
.col-md-10,
.col-md-11,
.col-md-12 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

.col {
  flex-basis: 0;
  flex-grow: 1;
  max-width: 100%;
}

.col-1 {
  flex: 0 0 8.333333%;
  max-width: 8.333333%;
}

.col-2 {
  flex: 0 0 16.666667%;
  max-width: 16.666667%;
}

.col-3 {
  flex: 0 0 25%;
  max-width: 25%;
}

.col-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

.col-5 {
  flex: 0 0 41.666667%;
  max-width: 41.666667%;
}

.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.col-7 {
  flex: 0 0 58.333333%;
  max-width: 58.333333%;
}

.col-8 {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
}

.col-9 {
  flex: 0 0 75%;
  max-width: 75%;
}

.col-10 {
  flex: 0 0 83.333333%;
  max-width: 83.333333%;
}

.col-11 {
  flex: 0 0 91.666667%;
  max-width: 91.666667%;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

/* Responsivo - Tablets */
@media (min-width: 768px) {
  .col-md-1 {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
  }

  .col-md-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }

  .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }

  .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }

  .col-md-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }

  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .col-md-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }

  .col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }

  .col-md-9 {
    flex: 0 0 75%;
    max-width: 75%;
  }

  .col-md-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
  }

  .col-md-11 {
    flex: 0 0 91.666667%;
    max-width: 91.666667%;
  }

  .col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Paginação */
.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
  border-radius: 0.25rem;
}

.page-item {
  display: inline-block;
}

.page-item:first-child .page-link {
  margin-left: 0;
  border-top-left-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
}

.page-item:last-child .page-link {
  border-top-right-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}

.page-item.active .page-link {
  z-index: 1;
  color: #fff;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-item.disabled .page-link {
  color: #6c757d;
  pointer-events: none;
  cursor: auto;
  background-color: #fff;
  border-color: #dee2e6;
}

.page-link {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  margin-left: -1px;
  line-height: 1.25;
  color: var(--primary-color);
  background-color: #fff;
  border: 1px solid #dee2e6;
}

.page-link:hover {
  z-index: 2;
  color: #0056b3;
  text-decoration: none;
  background-color: #e9ecef;
  border-color: #dee2e6;
}

/* Dashboard */
.stat-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  font-size: 1.5rem;
  color: white;
}

.stat-icon i {
  font-size: 1.8rem;
}

.stat-card:nth-child(1) .stat-icon {
  background-color: var(--primary-color);
}

.stat-card:nth-child(2) .stat-icon {
  background-color: var(--success-color);
}

.stat-card:nth-child(3) .stat-icon {
  background-color: var(--warning-color);
}

.stat-card:nth-child(4) .stat-icon {
  background-color: var(--info-color);
}

.stat-info h3 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.stat-info p {
  color: var(--secondary-color);
  margin: 0;
}

.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}

.activity-list {
  list-style: none;
  padding: 0;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.activity-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  background-color: #f8f9fa;
}

.activity-details {
  flex: 1;
}

.activity-details p {
  margin: 0 0 5px 0;
}

.activity-details small {
  color: var(--secondary-color);
}

/* Cards de Produto */
.product-card {
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
  position: relative;
  overflow: hidden;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.product-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-discount {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--danger-color);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: 600;
}

.product-info {
  padding: 15px;
}

.product-info h5 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.product-info p {
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.product-price {
  margin-bottom: 15px;
}

.current-price {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark-color);
}

.original-price {
  font-size: 0.9rem;
  color: var(--secondary-color);
  text-decoration: line-through;
  margin-left: 10px;
}

.product-meta {
  margin-bottom: 15px;
}

.product-meta .badge {
  margin-right: 5px;
}

.product-actions {
  display: flex;
  justify-content: space-between;
}

/* Blog */
.blog-products .product-card {
  margin-bottom: 20px;
}

.blog-products .product-image img {
  height: 180px;
}

/* Compartilhamento */
.preview-container {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 15px;
  max-height: 300px;
  overflow-y: auto;
}

.preview-item {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd;
}

.preview-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* Grupos */
.nav-tabs {
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 15px;
}

.nav-tabs .nav-item {
  margin-bottom: -1px;
}

.nav-tabs .nav-link {
  border: 1px solid transparent;
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
  color: var(--secondary-color);
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out;
}

.nav-tabs .nav-link:hover {
  border-color: #e9ecef #e9ecef #dee2e6;
  color: var(--dark-color);
}

.nav-tabs .nav-link.active {
  color: var(--primary-color);
  background-color: #fff;
  border-color: #dee2e6 #dee2e6 #fff;
}

.tab-content>.tab-pane {
  display: none;
}

.tab-content>.active {
  display: block;
}

/* Histórico */
.pagination-info {
  color: var(--secondary-color);
  font-size: 0.9rem;
}

/* Agendamento */
#schedule-products input[type="checkbox"]:disabled {
  cursor: not-allowed;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 10px;
  max-width: 800px;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.3rem;
  outline: 0;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border-bottom: 1px solid #e9ecef;
}

.modal-title {
  margin: 0;
  line-height: 1.5;
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 15px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 15px;
  border-top: 1px solid #e9ecef;
}

.close {
  float: right;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  opacity: 0.5;
  background: none;
  border: none;
  cursor: pointer;
}

.close:hover {
  color: #000;
  text-decoration: none;
  opacity: 0.75;
}

/* Loading */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  font-size: 1.2rem;
  color: var(--secondary-color);
}

.loading i {
  margin-right: 10px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Classes utilitárias */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: var(--secondary-color) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-success {
  color: var(--success-color) !important;
}

.text-danger {
  color: var(--danger-color) !important;
}

.text-warning {
  color: var(--warning-color) !important;
}

.text-info {
  color: var(--info-color) !important;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mt-5 {
  margin-top: 3rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.ml-1 {
  margin-left: 0.25rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.ml-3 {
  margin-left: 1rem;
}

.ml-4 {
  margin-left: 1.5rem;
}

.ml-5 {
  margin-left: 3rem;
}

.mr-1 {
  margin-right: 0.25rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mr-3 {
  margin-right: 1rem;
}

.mr-4 {
  margin-right: 1.5rem;
}

.mr-5 {
  margin-right: 3rem;
}

.p-1 {
  padding: 0.25rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 1rem;
}

.p-4 {
  padding: 1.5rem;
}

.p-5 {
  padding: 3rem;
}

.pt-1 {
  padding-top: 0.25rem;
}

.pt-2 {
  padding-top: 0.5rem;
}

.pt-3 {
  padding-top: 1rem;
}

.pt-4 {
  padding-top: 1.5rem;
}

.pt-5 {
  padding-top: 3rem;
}

.pb-1 {
  padding-bottom: 0.25rem;
}

.pb-2 {
  padding-bottom: 0.5rem;
}

.pb-3 {
  padding-bottom: 1rem;
}

.pb-4 {
  padding-bottom: 1.5rem;
}

.pb-5 {
  padding-bottom: 3rem;
}

.pl-1 {
  padding-left: 0.25rem;
}

.pl-2 {
  padding-left: 0.5rem;
}

.pl-3 {
  padding-left: 1rem;
}

.pl-4 {
  padding-left: 1.5rem;
}

.pl-5 {
  padding-left: 3rem;
}

.pr-1 {
  padding-right: 0.25rem;
}

.pr-2 {
  padding-right: 0.5rem;
}

.pr-3 {
  padding-right: 1rem;
}

.pr-4 {
  padding-right: 1.5rem;
}

.pr-5 {
  padding-right: 3rem;
}

/* Responsivo */
@media (max-width: 992px) {

  .col-lg-1,
  .col-lg-2,
  .col-lg-3,
  .col-lg-4,
  .col-lg-5,
  .col-lg-6,
  .col-lg-7,
  .col-lg-8,
  .col-lg-9,
  .col-lg-10,
  .col-lg-11,
  .col-lg-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .content {
    margin-left: 0;
  }

  .header {
    padding-left: 60px;
  }

  .menu-toggle {
    display: block;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
  }

  .stat-card {
    flex-direction: column;
    text-align: center;
  }

  .stat-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .modal-dialog {
    margin: 10px;
    max-width: none;
  }
}

.menu-toggle {
  display: none;
}

/* --- Modern Promotions Page Styles --- */
.page-header-premium {
  background: linear-gradient(135deg, #4a6bdf 0%, #2e4eba 100%);
  padding: 20px 30px;
  border-radius: 20px;
  color: white;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(74, 107, 223, 0.12);
  position: relative;
  overflow: hidden;
}

.page-header-premium::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.search-card-premium {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 20px 30px;
  margin-bottom: 25px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  padding: 10px 0;
}

.product-card-premium {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid #f0f0f0;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card-premium:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  border-color: #4a6bdf;
}

.product-img-wrapper {
  position: relative;
  padding-top: 100%;
  background: #f8f9fa;
  width: 100%;
}

.product-img-wrapper img {
  position: absolute;
  top: 10px;
  left: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  object-fit: contain;
  transition: transform 0.6s ease;
}

.product-card-premium:hover .product-img-wrapper img {
  transform: scale(1.08);
}

.platform-badge-fixed {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.discount-badge-fixed {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #ff4757;
  color: white;
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  z-index: 10;
}

.product-details-premium {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-brand-tag {
  font-size: 12px;
  color: #4a6bdf;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-name-premium {
  font-size: 17px;
  font-weight: 700;
  color: #1e272e;
  margin-bottom: 15px;
  line-height: 1.4;
  height: 48px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.price-box-premium {
  margin-top: auto;
}

.price-old-value {
  color: #95a5a6;
  text-decoration: line-through;
  font-size: 14px;
  margin-bottom: 2px;
}

.price-current-value {
  color: #2d3436;
  font-size: 24px;
  font-weight: 800;
}

.product-footer-actions {
  padding: 0 24px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.btn-premium-action {
  height: 48px;
  border-radius: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-buy-now {
  background: #4a6bdf;
  color: white;
}

.btn-buy-now:hover {
  background: #2e4eba;
  box-shadow: 0 10px 20px rgba(74, 107, 223, 0.3);
}

.btn-share-icon {
  width: 48px;
  background: #f1f3ff;
  color: #4a6bdf;
}

.btn-share-icon:hover {
  background: #e8ebff;
  color: #2e4eba;
}

.premium-loading {
  display: grid;
  place-items: center;
  padding: 80px 0;
  width: 100%;
}

.spinner-circles {
  width: 60px;
  height: 60px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #4a6bdf;
  border-radius: 50%;
  animation: spin-pulse 1s linear infinite;
}

@keyframes spin-pulse {
  0% {
    transform: rotate(0deg);
    border-top-color: #4a6bdf;
  }

  50% {
    border-top-color: #ff4757;
  }

  100% {
    transform: rotate(360deg);
    border-top-color: #4a6bdf;
  }
}

/* --- Premium Dashboard & SaaS UI Styles --- */
.page-header-saas {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 30px;
}

.welcome-section {
  margin-bottom: 30px;
}

.welcome-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1e272e;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.welcome-subtitle {
  color: #7f8c8d;
  font-size: 1.1rem;
}

.alert-banner-saas {
  background: #fff5f5;
  border: 1px solid #feb2b2;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 35px;
  display: flex;
  align-items: center;
  gap: 24px;
  color: #c53030;
  box-shadow: 0 4px 6px rgba(197, 48, 48, 0.05);
}

.alert-banner-saas i {
  font-size: 24px;
  background: #fed7d7;
  min-width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}

.premium-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-bottom: 45px;
}

.premium-stat-card {
  background: white;
  padding: 22px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  border: 1px solid #f0f0f0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premium-stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  border-color: #4a6bdf;
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.stat-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: #2d3436;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.stat-label {
  color: #95a5a6;
  font-size: 0.95rem;
  font-weight: 600;
}

.section-title-premium {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1e272e;
  margin: 50px 0 25px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.video-grid-saas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.video-card-premium {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.03);
  border: 1px solid #f0f0f0;
  transition: all 0.3s;
}

.video-card-premium:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.video-thumbnail-box {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  background: #1e272e;
  cursor: pointer;
}

.video-thumbnail-box img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.video-card-premium:hover .video-thumbnail-box img {
  opacity: 0.6;
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.1);
  transition: background 0.3s;
}

.play-btn-circle {
  width: 64px;
  height: 64px;
  background: #4a6bdf;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 8px 16px rgba(74, 107, 223, 0.4);
  z-index: 5;
}

.video-info-saas {
  padding: 24px;
}

.video-tag-saas {
  display: inline-block;
  padding: 4px 12px;
  background: #f1f3ff;
  color: #4a6bdf;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Header Mobile — Invisível por padrão em Desktops */
.mobile-header {
  display: none;
  background: white;
  padding: 12px 20px;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 1100;
}

.mobile-logo { font-weight: 800; font-size: 1.1rem; color: #1e293b; }
.mobile-logo i { color: #4a6bdf; margin-right: 6px; }

.menu-toggle {
  background: #f1f5f9;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #475569;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.menu-toggle:active { background: #e2e8f0; }

/* Sidebar e Responsividade Mobile */
@media (max-width: 767px) {
  .mobile-header { display: flex; }
  .saas-container, .content { padding-top: 60px; } /* Espaço para o header fixo */

  .sidebar {
    transform: translateX(-100%);
    width: 280px;
    box-shadow: 10px 0 30px rgba(0,0,0,0.1);
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .content {
    margin-left: 0 !important;
  }
  
  .page-header-premium {
    padding: 30px 20px !important;
  }
}

/* Glassmorphism e Cards Premium */
.card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(31, 38, 135, 0.12);
}

.card-header {
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background: transparent;
  padding: 20px;
}

.btn-primary {
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(74, 107, 223, 0.3);
}

.btn-primary:active {
  transform: scale(0.96);
}

/* Grid de Produtos Responsivo */
#promotion-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Tipografia */
body {
  font-family: 'Outfit', 'Inter', sans-serif;
  letter-spacing: -0.01em;
}

h1, h2, h3, .card-title {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

.video-title-saas {
  font-weight: 800;
  color: #2d3436;
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.video-desc-saas {
  color: #7f8c8d;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Utility Classes */
.d-none {
  display: none !important;
}

/* =====================================================
   UI/UX PREMIUM LAYER — Acessibilidade e Clareza
   Sem alterações de layout. Apenas aperfeiçoamentos.
   ===================================================== */

/* === Skip Navigation Link (Acessibilidade por teclado) === */
.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  background: #4a6bdf;
  color: white;
  padding: 12px 20px;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* === Focus Ring aprimorado para teclado === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #4a6bdf !important;
  outline-offset: 3px !important;
  border-radius: 6px;
  box-shadow: 0 0 0 6px rgba(74,107,223,0.15) !important;
}

/* === Skeleton Loading — feedback enquanto carrega === */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: 8px;
}
.skeleton-text  { height: 14px; margin-bottom: 10px; }
.skeleton-title { height: 24px; width: 60%; margin-bottom: 16px; }
.skeleton-image { height: 180px; border-radius: 12px; }

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === Toast Notifications aprimoradas === */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border-left: 4px solid #4a6bdf;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1e293b;
  animation: toastIn 0.35s cubic-bezier(0.175,0.885,0.32,1.275) forwards;
  min-width: 280px;
}

.toast-success { border-left-color: #10b981; }
.toast-danger  { border-left-color: #ef4444; }
.toast-warning { border-left-color: #f59e0b; }
.toast-info    { border-left-color: #4a6bdf; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateX(110%); }
}

/* === Botões — Feedback de interação e tamanho acessível === */
.btn {
  min-height: 44px;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}

.btn:active::after { opacity: 1; }

/* === Inputs — Tamanho e contraste aprimorados === */
.form-control {
  min-height: 44px;
  font-size: 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: #1e293b;
}
.form-control:hover  { border-color: #a5b4fc; }
.form-control:focus  {
  border-color: #4a6bdf;
  box-shadow: 0 0 0 4px rgba(74,107,223,0.15);
  outline: none;
}

/* Label com contraste adequado */
.form-label,
label,
.small.font-weight-bold.text-uppercase {
  color: #334155 !important;
  font-weight: 600;
}

/* === Tabela com melhor legibilidade === */
.table th, .table td {
  padding: 14px 16px;
  vertical-align: middle;
}
.table tbody tr:hover { background: #f8fafc; }
.table thead th {
  background: #f1f5f9;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
}

/* === Sidebar: indicador ativo mais destacado === */
.sidebar .menu-item.active {
  background: rgba(74,107,223,0.22);
  color: #c7d2fe;
  font-weight: 700;
  border-left: 3px solid #4a6bdf;
}

/* === Alertas — visibilidade aprimorada === */
.alert {
  border-radius: 12px;
  border-left: 5px solid transparent;
  padding: 16px 20px;
  font-size: 0.95rem;
}
.alert-warning { border-left-color: #f59e0b; background: #fffbeb; color: #78350f; }
.alert-danger  { border-left-color: #ef4444; background: #fef2f2; color: #7f1d1d; }
.alert-success { border-left-color: #10b981; background: #f0fdf4; color: #064e3b; }
.alert-info    { border-left-color: #3b82f6; background: #eff6ff; color: #1e3a8a; }

/* === Scrollbar personalizada nas áreas de conteúdo === */
.content::-webkit-scrollbar,
.page-content::-webkit-scrollbar         { width: 6px; }
.content::-webkit-scrollbar-track,
.page-content::-webkit-scrollbar-track   { background: transparent; }
.content::-webkit-scrollbar-thumb,
.page-content::-webkit-scrollbar-thumb   { background: #cbd5e1; border-radius: 6px; }

/* === Imagens de produto — carregamento suave === */
img { transition: opacity 0.3s ease; }
img.loading { opacity: 0; }
img.loaded  { opacity: 1; }

/* === Temas e Abas Secundárias (Premium) === */
:root {
  --platform-color: #4a6bdf;
  --platform-bg-light: #f0f3ff;
}

.theme-shopee { --platform-color: #EE4D2D; --platform-bg-light: #fff5f2; --platform-button-text: #ffffff; }
.theme-mercado-livre { --platform-color: #ffd200; --platform-bg-light: #fffdeb; --platform-button-text: #333333; }
.theme-magalu { --platform-color: #0086FF; --platform-bg-light: #f0f7ff; --platform-button-text: #ffffff; }
.theme-amazon { --platform-color: #FF9900; --platform-bg-light: #fffaf2; --platform-button-text: #ffffff; }
.theme-aliexpress { --platform-color: #E62E04; --platform-bg-light: #fff2f0; --platform-button-text: #ffffff; }

.theme-whatsapp { --platform-color: #10b981; --platform-bg-light: #e9f9ef; --platform-button-text: #ffffff; }
.theme-telegram { --platform-color: #0088CC; --platform-bg-light: #f0f7ff; --platform-button-text: #ffffff; }

/* Especialização para o botão WhatsApp e Abas (Emerald Green solicitado) */
.theme-whatsapp .sec-tab.active {
  background-color: #e9f9ef !important;
  color: #10b981 !important;
  border: 1.5px solid #10b981 !important;
}

.theme-whatsapp .btn-primary {
  background-color: #10b981 !important;
  border-color: #10b981 !important;
}

[class*="theme-"] .btn-primary:hover {
  filter: brightness(0.9);
}

[class*="theme-"] .text-primary {
  color: var(--platform-color) !important;
}

.secondary-tabs {
  background: white;
  border-radius: 16px;
  padding: 5px 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
  margin-bottom: 25px;
}

/* Dashboard: Active Stores Selectors */
.store-select-item {
    border: 1px solid #eee;
    border-radius: 15px;
    background: #fff;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.store-select-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.store-select-item .custom-control-label::before {
    background-color: #dee2e6;
    border-color: #dee2e6;
}

/* Shopee */
.store-item-shopee { --brand-color: #ff4d2d; --brand-bg: rgba(255, 77, 45, 0.05); }
/* Mercado Livre */
.store-item-mercado-livre { --brand-color: #ffe600; --brand-bg: rgba(255, 230, 0, 0.1); }
/* Magalu */
.store-item-magalu { --brand-color: #0086FF; --brand-bg: rgba(0, 134, 255, 0.05); }
/* Amazon */
.store-item-amazon { --brand-color: #FF9900; --brand-bg: rgba(255, 153, 0, 0.05); }
/* AliExpress */
.store-item-aliexpress { --brand-color: #E62E04; --brand-bg: rgba(230, 46, 4, 0.05); }

.store-select-item:has(input:checked) {
    border-color: var(--brand-color);
    background-color: var(--brand-bg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.store-select-item input:checked + .custom-control-label::before {
    background-color: var(--brand-color) !important;
    border-color: var(--brand-color) !important;
}

.store-select-item .custom-control-label {
    user-select: none;
    width: 100%;
    padding: 5px 0;
}

.tab-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-scroll::-webkit-scrollbar { display: none; }

.sec-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  color: #64748b;
  font-weight: 600;
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.2s;
  white-space: nowrap;
  margin: 5px 0;
  user-select: none;
}

.sec-tab.active {
  background-color: var(--platform-bg-light);
  color: var(--platform-color);
}

.sec-tab:hover:not(.active) {
  background-color: #f1f5f9;
  color: #1e293b;
}

/* === Mobile: touch targets maiores (min 44px) === */
@media (max-width: 767px) {
  .btn, .menu-item, .nav-link, .sec-tab {
    min-height: 48px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .form-control, select.form-control {
    min-height: 50px;
    font-size: 1.05rem;
  }

  #toast-container {
    bottom: 16px;
    left: 12px;
    right: 12px;
    max-width: none;
  }

  .toast { min-width: auto; width: 100%; }

  /* Evitar texto muito pequeno em mobile */
  body { font-size: 1rem; }
  .small, .text-sm { font-size: 0.9rem !important; }
}

/* === Instagram Scheduling Premium Components Refined === */
.media-type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.media-type-card {
    background: #ffffff;
    border: 1.5px solid #f1f5f9;
    border-radius: 20px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.media-type-card div {
    font-size: 2rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.media-type-card .label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.media-type-card:hover {
    transform: translateY(-5px);
    border-color: #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.media-type-card.active {
    border-color: #7c3aed;
    background: #fbf8ff;
    box-shadow: 0 10px 15px -3px rgba(124, 58, 237, 0.15);
}

.media-type-card.active .label {
    color: #7c3aed;
}

/* === Dropzone Refined === */
.premium-dropzone {
    border: 3px dashed #e2e8f0;
    background: #f8fafc;
    border-radius: 24px;
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.premium-dropzone:hover {
    border-color: #7c3aed;
    background: #fdfbff;
}

/* === Ultra-Premium Visual Overhaul === */
.glass-card-ultra {
    position: relative;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    overflow: hidden;
}

.glass-card-ultra::before {
    content: ""; position: absolute; inset: 0;
    background: url('https://www.transparenttextures.com/patterns/asfalt-light.png');
    opacity: 0.03; pointer-events: none;
}

.media-type-card.active {
    border-color: transparent !important;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #7c3aed, #ec4899) border-box !important;
    border: 2px solid transparent !important;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.15);
}

.media-type-card div {
    font-size: 2.2rem;
    filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.2));
    transition: all 0.3s;
}

.media-type-card:hover div {
    transform: scale(1.1) rotate(5deg);
}

/* AI Button Glow */
.btn-ai-magic {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid rgba(255,255,255,0.1);
    color: white !important;
    font-weight: 800;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-ai-magic::after {
    content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.2), transparent 70%);
    animation: rotate-glow 6s linear infinite;
}

@keyframes rotate-glow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Modern Minimalist Phone */
.insta-preview {
    border: 8px solid #0f172a !important;
    border-radius: 40px !important;
    background: #fafafa !important;
    padding-bottom: 20px !important;
}

.insta-preview::before {
    content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
    width: 60px; height: 18px; background: #0f172a; border-radius: 20px; z-index: 10;
}

/* Floating labels */
.automation-label {
    font-size: 0.65rem !important;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 6px;
    color: #475569 !important;
    width: fit-content;
    margin-bottom: 12px !important;
}

.premium-dropzone {
    border: 2px dashed #94a3b8 !important;
    background: rgba(255,255,255,0.4) !important;
    transition: all 0.4s !important;
}

.premium-dropzone:hover {
    border-style: solid !important;
    border-color: #7c3aed !important;
    background: white !important;
}


