:root {
  --rodrigues-blue: #004aad;
  --rodrigues-blue-dark: #003985;
  --rodrigues-blue-soft: #eaf2ff;
  --rodrigues-ink: #1f2937;
  --rodrigues-muted: #64748b;
  --rodrigues-border: #d9e2ef;
  --rodrigues-surface: #ffffff;
  --rodrigues-bg: #f4f7fb;
  --rodrigues-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

body {
  background: var(--rodrigues-bg);
  color: var(--rodrigues-ink);
  font-family: "Quicksand", "Roboto", Arial, sans-serif;
}

.main-panel > .content {
  margin-top: 70px;
  padding: 24px 30px 30px;
}

.navbar.navbar-transparent {
  background: rgba(244, 247, 251, 0.92) !important;
  box-shadow: none;
}

.navbar .navbar-brand {
  color: var(--rodrigues-ink) !important;
  font-weight: 700;
  letter-spacing: 0;
}

.card {
  border: 1px solid rgba(217, 226, 239, 0.85);
  border-radius: 14px !important;
  box-shadow: var(--rodrigues-shadow);
  padding: 0 !important;
  overflow: hidden;
}

.card .card-body {
  background: var(--rodrigues-surface);
  padding: 24px;
}

.card > .card-header,
.card .card-header-primary {
  align-items: flex-start;
  background: var(--rodrigues-blue) !important;
  border-radius: 0 !important;
  box-shadow: none;
  color: #fff;
  display: flex;
  justify-content: center;
  margin: 0 !important;
  min-height: 64px;
  padding: 18px 22px !important;
  transform: none !important;
}

.card .card-header-primary .card-title,
.card .card-header-primary h4 {
  color: #fff;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

.card .card-header-primary .card-category,
.card .card-header-primary p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  margin-top: 4px;
}

.btn,
.btn.btn-primary,
.btn.btn-secondary,
.btn.btn-light {
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0;
  min-height: 40px;
  text-transform: none;
}

.btn.btn-primary {
  background: var(--rodrigues-blue) !important;
  border-color: var(--rodrigues-blue) !important;
  box-shadow: 0 8px 18px rgba(0, 74, 173, 0.2);
}

.btn.btn-primary:hover,
.btn.btn-primary:focus {
  background: var(--rodrigues-blue-dark) !important;
  border-color: var(--rodrigues-blue-dark) !important;
  box-shadow: 0 10px 22px rgba(0, 57, 133, 0.24);
}

.btn.btn-link {
  box-shadow: none;
  min-height: unset;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label,
label {
  color: #334155;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 7px;
}

.form-control,
.custom-select,
select.form-control {
  background-image: none !important;
  border: 1px solid var(--rodrigues-border);
  border-radius: 8px;
  box-shadow: none;
  color: var(--rodrigues-ink);
  font-size: 0.96rem;
  min-height: 42px;
  padding: 9px 12px;
}

textarea.form-control {
  min-height: 118px;
}

.form-control:focus {
  border-color: var(--rodrigues-blue);
  box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.12);
}

.input-group .input-group-text {
  background: var(--rodrigues-blue-soft);
  border: 1px solid var(--rodrigues-border);
  border-radius: 8px 0 0 8px;
  color: var(--rodrigues-blue);
}

.table-responsive {
  border: 1px solid var(--rodrigues-border);
  border-radius: 12px;
}

.table {
  margin-bottom: 0;
}

.table thead th {
  border-bottom: 1px solid var(--rodrigues-border);
  color: var(--rodrigues-blue) !important;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  padding: 14px 16px;
  text-transform: uppercase;
}

.table tbody td {
  border-top: 1px solid #edf2f7;
  color: #334155;
  padding: 14px 16px;
  vertical-align: middle;
}

.table tbody td.dataTables_empty {
  background: #fff;
  border-bottom: 0;
  color: var(--rodrigues-muted);
  padding: 34px 16px;
}

.table tbody tr.odd td.dataTables_empty,
.table tbody tr.even td.dataTables_empty {
  background: #fff;
}

table.dataTable tbody tr.odd,
table.dataTable tbody tr.even,
table.dataTable.display tbody tr.odd,
table.dataTable.display tbody tr.even {
  background-color: #fff !important;
}

table.dataTable.no-footer {
  border-bottom: 0 !important;
}

.dataTables_wrapper .row,
.dataTables_wrapper .dataTables_paginate {
  align-items: center;
}

.dropdown-menu {
  border: 1px solid var(--rodrigues-border);
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
}

.dropdown-menu .dropdown-item {
  align-items: center;
  color: #334155;
  display: flex;
  gap: 8px;
  font-weight: 600;
}

.modal-content {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.modal-header {
  background: var(--rodrigues-blue);
  border-bottom: 0;
  color: #fff;
}

.modal-header .modal-title,
.modal-header .close {
  color: #fff;
}

.modal-footer {
  border-top: 1px solid var(--rodrigues-border);
}

.dataTables_wrapper .dataTables_paginate .paginate_button,
.pagination .page-link {
  border-radius: 8px !important;
  color: var(--rodrigues-blue) !important;
  margin: 0 2px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.pagination .page-item.active .page-link {
  background: var(--rodrigues-blue) !important;
  border-color: var(--rodrigues-blue) !important;
  color: #fff !important;
}

.sidebar {
  box-shadow: 12px 0 32px rgba(15, 23, 42, 0.08);
}

.sidebar .logo {
  padding: 24px 24px 18px;
}

.sidebar .logo img {
  border-radius: 0 !important;
  max-width: 190px;
  width: 100%;
}

.sidebar .sidebar-wrapper {
  padding: 12px 22px 32px;
}

.sidebar .nav {
  gap: 6px;
}

.sidebar .nav li > a,
.sidebar .nav li .dropdown-menu a {
  align-items: center;
  border-radius: 9px;
  color: #475569;
  display: flex;
  gap: 14px;
  margin: 0;
  min-height: 48px;
  padding: 12px 14px;
}

.sidebar .nav li > a i {
  color: #94a3b8;
  font-size: 24px;
  margin: 0;
  width: 26px;
}

.sidebar .nav li > a p,
.sidebar .nav li > a span {
  color: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.sidebar .nav li.active > a {
  background: var(--rodrigues-blue) !important;
  box-shadow: 0 12px 24px rgba(0, 74, 173, 0.22);
  color: #fff;
}

.sidebar .nav li.active > a i,
.sidebar .nav li.active > a p,
.sidebar .nav li.active > a span {
  color: #fff;
}

.sidebar .caret {
  margin-left: auto;
}

.product-form-grid {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(260px, 360px) 1fr;
}

.product-image-panel {
  background: #f8fbff;
  border: 1px solid var(--rodrigues-border);
  border-radius: 12px;
  padding: 18px;
}

.product-image-preview {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: #fff;
  border: 1px dashed #b8c7dc;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
  overflow: hidden;
}

.product-image-preview img {
  height: 100%;
  object-fit: contain;
  padding: 14px;
  width: 100%;
}

.product-image-placeholder {
  color: var(--rodrigues-muted);
  font-weight: 700;
  text-align: center;
}

.product-image-input {
  display: none;
}

.product-image-trigger {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  width: 100%;
}

.product-submit-row {
  border-top: 1px solid var(--rodrigues-border);
  margin-top: 8px;
  padding-top: 18px;
}

.product-card,
.card.card-product {
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover,
.card.card-product:hover {
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  transform: translateY(-3px);
}

.card-product .card-img-top,
.product-thumb {
  background: #f8fbff;
  height: 180px;
  margin: 0;
  object-fit: contain;
  padding: 18px;
  width: 100%;
}

.product-meta,
.product-isbn {
  color: var(--rodrigues-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.price-container,
.main-price {
  color: var(--rodrigues-blue);
  font-size: 1.35rem;
  font-weight: 800;
}

.btn-comprar,
.btn-cart,
.btn-add-cart {
  align-items: center;
  border-radius: 8px !important;
  display: flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  text-transform: none;
}

.btn-comprar,
.btn-cart {
  background: var(--rodrigues-blue) !important;
  border: 1px solid var(--rodrigues-blue) !important;
  color: #fff !important;
}

.btn-add-cart {
  background: #fff !important;
  border: 1px solid var(--rodrigues-border) !important;
  color: var(--rodrigues-ink) !important;
}

.product-detail-card {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(260px, 360px) 1fr;
}

.product-detail-image {
  align-items: center;
  background: #f8fbff;
  border: 1px solid var(--rodrigues-border);
  border-radius: 12px;
  display: flex;
  min-height: 280px;
  justify-content: center;
}

.product-detail-image img {
  max-height: 260px;
  max-width: 100%;
  object-fit: contain;
  padding: 20px;
}

.product-detail-kicker {
  color: var(--rodrigues-muted);
  font-weight: 700;
  margin-bottom: 6px;
}

.product-detail-title {
  color: var(--rodrigues-ink);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.description-title {
  color: var(--rodrigues-ink);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.description {
  color: var(--rodrigues-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

@media (max-width: 991px) {
  .main-panel > .content {
    margin-top: 62px;
    padding: 18px 14px 24px;
  }

  .product-form-grid,
  .product-detail-card {
    grid-template-columns: 1fr;
  }

  .card .card-body {
    padding: 18px;
  }

  .sidebar .sidebar-wrapper {
    padding: 12px 16px 28px;
  }
}
