/* ========== BACKOFFICE THEME COLORS ========== */
:root {
  --bo-bg: linear-gradient(135deg, #e3f2fd 0%, #e8f5e9 100%);
  --bo-bg-solid: #e8f4f8;
  --bo-header: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  --bo-sidebar: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  --bo-card: #ffffff;
  --bo-accent: #00bcd4;
  --bo-accent-2: #00acc1;
  --bo-primary-dark: #0097a7;
  --bo-success: #4caf50;
  --bo-warning: #ff9800;
  --bo-danger: #f44336;
  --bo-info: #2196f3;
  --bo-muted: #546e7a;
  --bo-muted-light: #90a4ae;
  --bo-text: #263238;
  --bo-text-light: #607d8b;
  --bo-border: #b3e5fc;
  --bo-hover: #e1f5fe;
  --bo-shadow: rgba(0, 188, 212, 0.12);
  --bo-shadow-lg: rgba(0, 188, 212, 0.2);
}

body.backoffice-theme {
  background: var(--bo-bg-solid);
  background-image: linear-gradient(135deg, #e3f2fd 0%, #e8f5e9 100%);
  color: var(--bo-text);
  font-family: "Poppins", "Inter", "Open Sans", sans-serif;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.6;
}

body.backoffice-theme .header,
body.backoffice-theme .page-wrapper > footer {
  display: none;
}

/* ========== BACKOFFICE WRAPPER ========== */
.backoffice-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bo-bg);
}

/* ========== BACKOFFICE HEADER ========== */
.backoffice-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: white;
  background-image: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border-bottom: 1px solid var(--bo-border);
  box-shadow: 0 4px 20px rgba(0, 188, 212, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 0;
  backdrop-filter: blur(10px);
}

.backoffice-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: 100%;
  gap: 20px;
}

.backoffice-logo {
  flex-shrink: 0;
  font-weight: 800;
  font-size: 18px;
  background: linear-gradient(135deg, var(--bo-accent) 0%, var(--bo-primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 10px;
  filter: drop-shadow(0 2px 4px rgba(0, 188, 212, 0.2));
}

.backoffice-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--bo-accent);
}

.backoffice-logo-img {
  height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.backoffice-logo i {
  font-size: 20px;
}

.backoffice-logo-text {
  letter-spacing: 0.5px;
}

.backoffice-header-spacer {
  flex: 1;
}

.backoffice-user-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ========== PROFILE DROPDOWN ========== */
.backoffice-profile-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.backoffice-profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.08) 0%, rgba(0, 172, 193, 0.12) 100%);
  border: 1px solid rgba(0, 188, 212, 0.3);
  padding: 8px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--bo-text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 188, 212, 0.1);
}

.backoffice-profile-btn:hover {
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.15) 0%, rgba(0, 172, 193, 0.2) 100%);
  border-color: var(--bo-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 188, 212, 0.2);
}

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

.backoffice-profile-name {
  font-weight: 500;
  display: none;
}

@media (min-width: 992px) {
  .backoffice-profile-name {
    display: inline;
  }
}

.backoffice-profile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid var(--bo-border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 188, 212, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 280px;
  margin-top: 12px;
  overflow: hidden;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.backoffice-profile-menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--bo-border);
}

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

.backoffice-profile-menu-name {
  font-weight: 600;
  margin: 0;
  font-size: 13px;
  color: var(--bo-text);
}

.backoffice-profile-menu-email {
  margin: 4px 0 0 0;
  font-size: 12px;
  color: var(--bo-muted);
}

.backoffice-profile-menu-divider {
  height: 1px;
  background: var(--bo-border);
}

.backoffice-profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--bo-text);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.backoffice-profile-menu-item:hover {
  background: var(--bo-hover);
  color: var(--bo-accent);
}

.backoffice-profile-menu-item.logout:hover {
  color: #dc3545;
}

.backoffice-profile-menu-item i {
  width: 16px;
  text-align: center;
}

/* ========== MAIN LAYOUT ========== */
.backoffice-main {
  display: flex;
  flex: 1;
  gap: 0;
  overflow: hidden;
}

/* ========== SIDEBAR ========== */
.backoffice-sidebar {
  flex-shrink: 0;
  width: 320px;
  max-width: 320px;
  background: white;
  background-image: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-right: 1px solid var(--bo-border);
  overflow-y: auto;
  max-height: calc(100vh - 64px);
  padding-right: 0;
  box-shadow: 4px 0 20px rgba(0, 188, 212, 0.05);
}

.backoffice-sidebar .sidebar-wrapperr {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.backoffice-sidebar .sidebar-wrapperr .contact-item {
  border-bottom: 1px solid var(--bo-border);
  padding: 16px;
}

.backoffice-sidebar .sidebar-wrapperr strong {
  color: var(--bo-text);
  font-size: 14px;
  font-weight: 600;
  word-wrap: break-word;
}

.backoffice-sidebar .sidebar-wrapperr small {
  color: var(--bo-muted);
  font-size: 12px;
  word-wrap: break-word;
  display: block;
  line-height: 1.4;
}

.backoffice-sidebar .sidebar-wrapperr img {
  border-radius: 50%;
  width: 48px;
  height: 48px;
  object-fit: cover;
}

.backoffice-sidebar .dashboard_list {
  color: var(--bo-muted);
  border-bottom: 1px solid var(--bo-border);
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  word-wrap: break-word;
}

.backoffice-sidebar .dashboard_list i {
  color: var(--bo-accent);
  margin-right: 8px;
}

.backoffice-sidebar .list-group-item {
  background: transparent;
  border: none;
  color: var(--bo-text);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  word-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.backoffice-sidebar .list-group-item:hover {
  background: rgba(8, 204, 204, 0.08);
  color: var(--bo-accent);
  padding-left: 16px;
}

.backoffice-sidebar .list-group-item.active {
  background: rgba(8, 204, 204, 0.15);
  color: var(--bo-accent);
  border-left: 4px solid var(--bo-accent);
  padding-left: 12px;
  font-weight: 600;
}

/* ========== BACKOFFICE SIDEBAR COMPONENTS ========== */
.backoffice-sidebar-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 320px;
  background: var(--bo-sidebar);
}

.backoffice-sidebar-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 16px;
  border-bottom: 2px solid var(--bo-border);
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.03) 0%, rgba(0, 188, 212, 0.06) 100%);
}

.backoffice-sidebar-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--bo-accent);
  box-shadow: 0 4px 12px rgba(0, 188, 212, 0.25);
}

.backoffice-sidebar-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.backoffice-sidebar-name {
  display: block;
  color: var(--bo-text);
  font-size: 15px;
  font-weight: 700;
  word-wrap: break-word;
  letter-spacing: 0.3px;
}

.backoffice-sidebar-email {
  display: block;
  color: var(--bo-text-light);
  font-size: 12px;
  word-wrap: break-word;
  line-height: 1.5;
  opacity: 0.85;
}

.backoffice-sidebar-menu {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.backoffice-menu-section {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--bo-border);
}

.backoffice-menu-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 10px;
  color: var(--bo-text-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: transparent;
  margin-top: 8px;
}

.backoffice-menu-title i {
  color: var(--bo-accent);
  font-size: 14px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 188, 212, 0.3));
}

.backoffice-menu-items {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.backoffice-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px 13px 20px;
  color: var(--bo-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid transparent;
  cursor: pointer;
  position: relative;
}

.backoffice-menu-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(135deg, var(--bo-accent) 0%, var(--bo-accent-2) 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  border-radius: 0 4px 4px 0;
}

.backoffice-menu-item:hover {
  background: linear-gradient(90deg, rgba(0, 188, 212, 0.08) 0%, rgba(0, 188, 212, 0.03) 100%);
  color: var(--bo-accent);
  padding-left: 24px;
  transform: translateX(2px);
}

.backoffice-menu-item:hover::before {
  transform: scaleX(1);
}

.backoffice-menu-item.active {
  background: linear-gradient(90deg, rgba(0, 188, 212, 0.15) 0%, rgba(0, 188, 212, 0.08) 100%);
  color: var(--bo-accent);
  padding-left: 24px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(0, 188, 212, 0.1);
}

.backoffice-menu-item.active::before {
  transform: scaleX(1);
}

.backoffice-menu-label {
  flex: 1;
  white-space: normal;
  word-wrap: break-word;
  display: block;
}

.backoffice-menu-badge {
  background: linear-gradient(135deg, var(--bo-accent) 0%, var(--bo-accent-2) 100%);
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-left: 8px;
  box-shadow: 0 2px 6px rgba(0, 188, 212, 0.3);
}

.backoffice-logout {
  margin-top: auto;
  border-bottom: none;
  color: #dc3545;
}

.backoffice-logout:hover {
  background: rgba(220, 53, 69, 0.08);
  color: #dc3545;
}

.backoffice-logout i {
  color: #dc3545;
  margin-right: 8px;
}

/* ========== CONTENT AREA ========== */
.backoffice-content {
  flex: 1;
  overflow-y: auto;
  max-height: calc(100vh - 64px);
  background: var(--bo-bg-solid);
  background-image: linear-gradient(135deg, #e3f2fd 0%, #e8f5e9 100%);
}

.backoffice-content-inner {
  padding: 32px 36px;
  max-width: 100%;
}

.backoffice-page-body {
  margin-top: 20px;
}

/* ========== BREADCRUMB ========== */
.backoffice-content .breadcrumb-nav {
  margin: 0 0 24px;
  padding: 16px 20px;
  background: white;
  background-image: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 188, 212, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 188, 212, 0.1);
}

.backoffice-content .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.backoffice-content .breadcrumb .breadcrumb-item {
  color: var(--bo-text-light);
  font-size: 14px;
  font-weight: 500;
}

.backoffice-content .breadcrumb .breadcrumb-item a {
  color: var(--bo-accent);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
}

.backoffice-content .breadcrumb .breadcrumb-item a:hover {
  color: var(--bo-primary-dark);
  text-decoration: none;
  transform: translateX(2px);
}

.backoffice-content .breadcrumb .breadcrumb-item.active {
  color: var(--bo-text);
  font-weight: 600;
}

.backoffice-content .breadcrumb .breadcrumb-item i {
  color: var(--bo-accent);
  margin-right: 6px;
}

/* ========== CARDS & CONTENT ========== */
body.backoffice-theme .card {
  border-radius: 16px;
  border: 1px solid rgba(0, 188, 212, 0.15);
  background: white;
  box-shadow: 0 8px 24px rgba(0, 188, 212, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

body.backoffice-theme .card-body {
  padding: 24px;
  background: white;
}

body.backoffice-theme .card-header {
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.05) 0%, rgba(0, 188, 212, 0.08) 100%);
  border-bottom: 2px solid rgba(0, 188, 212, 0.15);
  color: var(--bo-text);
  font-weight: 700;
  font-size: 16px;
  padding: 16px 24px;
  letter-spacing: 0.3px;
}

body.backoffice-theme .card:hover {
  box-shadow: 0 12px 32px rgba(0, 188, 212, 0.18), 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  border-color: rgba(0, 188, 212, 0.25);
}

/* ========== TABLES ========== */
body.backoffice-theme .table {
  font-size: 14px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 188, 212, 0.08);
}

body.backoffice-theme .table th {
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.08) 0%, rgba(0, 188, 212, 0.12) 100%);
  color: var(--bo-text);
  font-weight: 700;
  border-bottom: 2px solid var(--bo-accent);
  padding: 14px 16px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

body.backoffice-theme .table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 188, 212, 0.1);
  background: white;
  vertical-align: middle;
}

body.backoffice-theme .table tbody tr {
  transition: all 0.2s ease;
}

body.backoffice-theme .table tbody tr:hover {
  background: linear-gradient(90deg, rgba(0, 188, 212, 0.05) 0%, rgba(0, 188, 212, 0.02) 100%);
  transform: scale(1.005);
}

/* ========== BUTTONS ========== */
body.backoffice-theme .btn-primary {
  background: linear-gradient(135deg, var(--bo-accent) 0%, var(--bo-accent-2) 100%);
  border: none;
  box-shadow: 0 6px 20px rgba(0, 188, 212, 0.35);
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.backoffice-theme .btn-primary:hover {
  background: linear-gradient(135deg, var(--bo-primary-dark) 0%, var(--bo-accent) 100%);
  box-shadow: 0 8px 24px rgba(0, 188, 212, 0.45);
  transform: translateY(-2px);
}

body.backoffice-theme .btn-success {
  background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
  border: none;
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.35);
  transition: all 0.3s ease;
}

body.backoffice-theme .btn-danger {
  background: linear-gradient(135deg, #f44336 0%, #ef5350 100%);
  border: none;
  box-shadow: 0 6px 20px rgba(244, 67, 54, 0.35);
  transition: all 0.3s ease;
}

body.backoffice-theme .btn-secondary {
  background: linear-gradient(135deg, #607d8b 0%, #78909c 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(96, 125, 139, 0.3);
  transition: all 0.3s ease;
}

/* ========== FORMS ========== */
body.backoffice-theme .form-control,
body.backoffice-theme .form-select {
  border: 2px solid rgba(0, 188, 212, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: white;
  box-shadow: 0 2px 6px rgba(0, 188, 212, 0.05);
  min-height: 44px;
  width: 100% !important;
  overflow: visible;
  text-overflow: clip;
}

body.backoffice-theme .form-control:focus,
body.backoffice-theme .form-select:focus {
  border-color: var(--bo-accent);
  box-shadow: 0 4px 16px rgba(0, 188, 212, 0.2), 0 0 0 4px rgba(0, 188, 212, 0.08);
  outline: none;
  transform: translateY(-1px);
}

body.backoffice-theme .form-label {
  font-weight: 600;
  color: var(--bo-text);
  margin-bottom: 8px;
  font-size: 13px;
  letter-spacing: 0.3px;
}

/* Fix for file input button text */
body.backoffice-theme .form-control::file-selector-button {
  padding: 8px 12px;
  margin: -12px -16px -12px -16px;
  padding-right: 16px;
  border: none;
  background-color: rgba(0, 188, 212, 0.1);
  color: var(--bo-text);
  cursor: pointer;
  white-space: nowrap;
  overflow: visible;
}

/* Ensure select options are fully visible */
body.backoffice-theme select.form-control,
body.backoffice-theme select.form-select {
  appearance: auto;
  -webkit-appearance: auto;
  -moz-appearance: auto;
}

/* Fix column widths in forms */
body.backoffice-theme .card form .row .col-md-3,
body.backoffice-theme .card form .row .col-md-4,
body.backoffice-theme .card form .row .col-md-6 {
  min-width: 0;
}

body.backoffice-theme .card form .mb-3 > label {
  display: block;
  width: 100%;
}

/* ========== LOGIN PAGE ========== */
body.backoffice-theme .page-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, #e3f2fd 0%, #e8f5e9 100%);
}

body.backoffice-theme .backoffice-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  background: linear-gradient(135deg, #e3f2fd 0%, #e8f5e9 100%);
  position: relative;
}

/* ========== BACK TO SITE BUTTON ========== */
body.backoffice-theme .backoffice-back-to-site {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 188, 212, 0.2);
  border-radius: 50px;
  color: #00bcd4;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 188, 212, 0.2), 
              0 4px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

body.backoffice-theme .backoffice-back-to-site:hover {
  background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
  color: #ffffff;
  border-color: #00bcd4;
  box-shadow: 0 12px 32px rgba(0, 188, 212, 0.35), 
              0 6px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

body.backoffice-theme .backoffice-back-to-site:hover svg {
  transform: scale(1.1) rotate(-5deg);
}

body.backoffice-theme .backoffice-back-to-site svg {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

body.backoffice-theme .backoffice-back-to-site span {
  white-space: nowrap;
}

@media (max-width: 768px) {
  body.backoffice-theme .backoffice-back-to-site {
    top: 16px;
    right: 16px;
    padding: 10px 18px;
    font-size: 13px;
    gap: 8px;
  }
  
  body.backoffice-theme .backoffice-back-to-site svg {
    width: 16px;
    height: 16px;
  }
  
  body.backoffice-theme .backoffice-back-to-site span {
    display: none;
  }
}

@media (max-width: 480px) {
  body.backoffice-theme .backoffice-back-to-site {
    padding: 8px 12px;
  }
}

body.backoffice-theme .backoffice-auth-card {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 188, 212, 0.25), 0 8px 16px rgba(0, 0, 0, 0.1);
  max-width: 1000px;
  width: 100%;
  border: 1px solid rgba(0, 188, 212, 0.1);
}

body.backoffice-theme .backoffice-auth-aside {
  background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
  color: #ffffff;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

body.backoffice-theme .backoffice-auth-logo {
  width: 140px;
  height: auto;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.2));
}

body.backoffice-theme .backoffice-auth-aside::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.3; }
}

body.backoffice-theme .backoffice-auth-brand {
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  position: relative;
  z-index: 1;
}

body.backoffice-theme .backoffice-auth-role {
  font-size: 28px;
  font-weight: 800;
  position: relative;
  z-index: 1;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body.backoffice-theme .backoffice-auth-note {
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  position: relative;
  z-index: 1;
  line-height: 1.7;
  font-size: 15px;
}

/* ========== STATUS BADGES ========== */
body.backoffice-theme .badge {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

body.backoffice-theme .badge-success {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

body.backoffice-theme .badge-warning {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

body.backoffice-theme .badge-danger {
  background: linear-gradient(135deg, #f44336 0%, #e53935 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

body.backoffice-theme .badge-info {
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

body.backoffice-theme .badge-primary {
  background: linear-gradient(135deg, var(--bo-accent) 0%, var(--bo-accent-2) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

/* ========== ALERTS ========== */
body.backoffice-theme .alert {
  border-radius: 12px;
  padding: 16px 20px;
  border: none;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.backoffice-theme .alert-success {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(76, 175, 80, 0.08) 100%);
  color: #2e7d32;
  border-left: 4px solid #4caf50;
}

body.backoffice-theme .alert-warning {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.15) 0%, rgba(255, 152, 0, 0.08) 100%);
  color: #e65100;
  border-left: 4px solid #ff9800;
}

body.backoffice-theme .alert-danger {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.15) 0%, rgba(244, 67, 54, 0.08) 100%);
  color: #c62828;
  border-left: 4px solid #f44336;
}

body.backoffice-theme .alert-info {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.15) 0%, rgba(33, 150, 243, 0.08) 100%);
  color: #1565c0;
  border-left: 4px solid #2196f3;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
  body.backoffice-theme .backoffice-auth-card {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }
  
  body.backoffice-theme .backoffice-auth-aside {
    display: none;
  }
  
  body.backoffice-theme .backoffice-auth-main {
    padding: 32px 24px;
  }
  
  body.backoffice-theme .backoffice-auth-title {
    font-size: 26px;
  }

  .backoffice-header {
    position: relative;
  }

  .backoffice-header-container {
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  .backoffice-logo-text {
    display: none;
  }

  .backoffice-logo-img {
    height: 28px;
    max-width: 120px;
  }

  .backoffice-header-spacer {
    display: none;
  }

  .backoffice-main {
    flex-direction: column;
  }

  .backoffice-sidebar {
    width: 100%;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--bo-border);
  }

  .backoffice-content {
    max-height: none;
  }

  .backoffice-content-inner {
    padding: 18px 16px;
  }

  .backoffice-profile-name {
    display: none !important;
  }

  .backoffice-user-section {
    gap: 10px;
  }
  
  body.backoffice-theme .backoffice-card {
    padding: 20px;
  }
  
  body.backoffice-theme .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
  }
}

body.backoffice-theme .backoffice-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}

body.backoffice-theme .backoffice-auth-card {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  background: var(--bo-card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
  max-width: 980px;
  width: 100%;
}

body.backoffice-theme .backoffice-auth-aside {
  background: linear-gradient(135deg, #08c 0%, #0ab8cc 55%, #0097ab 100%);
  color: #ffffff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

body.backoffice-theme .backoffice-auth-brand {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

body.backoffice-theme .backoffice-auth-role {
  font-size: 22px;
  font-weight: 600;
}

body.backoffice-theme .backoffice-auth-note {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

body.backoffice-theme .backoffice-auth-main {
  padding: 48px;
  background: white;
}

body.backoffice-theme .backoffice-auth-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--bo-accent) 0%, var(--bo-primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.backoffice-theme .backoffice-auth-subtitle {
  color: var(--bo-text-light);
  margin-bottom: 32px;
  font-size: 15px;
}

body.backoffice-theme .backoffice-auth-form .form-control {
  border-radius: 12px;
  border: 2px solid rgba(0, 188, 212, 0.2);
  padding: 14px 18px;
  font-size: 15px;
  transition: all 0.3s ease;
}

body.backoffice-theme .backoffice-auth-form .form-control:focus {
  border-color: var(--bo-accent);
  box-shadow: 0 6px 20px rgba(0, 188, 212, 0.2), 0 0 0 4px rgba(0, 188, 212, 0.08);
}

body.backoffice-theme .backoffice-auth-form .btn-primary {
  background: linear-gradient(135deg, var(--bo-accent) 0%, var(--bo-accent-2) 100%);
  border: none;
  border-radius: 12px;
  padding: 14px 32px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 24px rgba(0, 188, 212, 0.35);
  transition: all 0.3s ease;
}

body.backoffice-theme .backoffice-auth-form .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 188, 212, 0.45);
}

@media (max-width: 900px) {
  body.backoffice-theme .backoffice-auth-card {
    grid-template-columns: 1fr;
  }

  body.backoffice-theme .backoffice-auth-aside {
    padding: 32px;
  }

  body.backoffice-theme .backoffice-auth-main {
    padding: 32px;
  }
}

/* ========== CUSTOM SCROLLBAR ========== */
body.backoffice-theme ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body.backoffice-theme ::-webkit-scrollbar-track {
  background: rgba(0, 188, 212, 0.05);
  border-radius: 10px;
}

body.backoffice-theme ::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--bo-accent) 0%, var(--bo-accent-2) 100%);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 188, 212, 0.3);
}

body.backoffice-theme ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--bo-accent-2) 0%, var(--bo-primary-dark) 100%);
}

/* ========== LOADING STATES ========== */
body.backoffice-theme .spinner-border {
  border: 3px solid rgba(0, 188, 212, 0.2);
  border-right-color: var(--bo-accent);
  animation: spinner 0.75s linear infinite;
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}

body.backoffice-theme .loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* ========== UTILITY CLASSES ========== */
body.backoffice-theme .text-gradient {
  background: linear-gradient(135deg, var(--bo-accent) 0%, var(--bo-primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.backoffice-theme .shadow-premium {
  box-shadow: 0 8px 24px rgba(0, 188, 212, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
}

body.backoffice-theme .shadow-premium-lg {
  box-shadow: 0 16px 40px rgba(0, 188, 212, 0.18), 0 4px 8px rgba(0, 0, 0, 0.06);
}

body.backoffice-theme .border-gradient {
  border: 2px solid transparent;
  background-image: linear-gradient(white, white), 
                    linear-gradient(135deg, var(--bo-accent), var(--bo-accent-2));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

body.backoffice-theme .hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.backoffice-theme .hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 188, 212, 0.2);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.backoffice-theme .animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

body.backoffice-theme .skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
  border-radius: 8px;
}

/* ========== SELLER PROFILE WIZARD ========== */
body.backoffice-theme .seller-profile-wizard {
  max-width: 1100px;
  margin: 0 auto;
}

body.backoffice-theme .wizard-hero {
  border: 0;
  background: radial-gradient(circle at top left, rgba(0, 188, 212, 0.18), transparent 45%),
    linear-gradient(135deg, #ffffff 0%, #f3fbff 55%, #ecfff5 100%);
  box-shadow: 0 18px 40px rgba(0, 151, 167, 0.12), 0 8px 18px rgba(0, 0, 0, 0.04);
  border-radius: 20px;
}

body.backoffice-theme .wizard-hero-body {
  padding: 28px 28px 22px;
}

body.backoffice-theme .wizard-hero-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--bo-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

body.backoffice-theme .wizard-hero-title i {
  color: var(--bo-accent);
}

body.backoffice-theme .wizard-hero-subtitle {
  margin: 8px 0 18px;
  color: var(--bo-text-light);
  max-width: 680px;
}

body.backoffice-theme .wizard-progress {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(0, 188, 212, 0.15);
  box-shadow: inset 0 1px 6px rgba(0, 188, 212, 0.08);
}

body.backoffice-theme .wizard-rail {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 188, 212, 0.1);
  overflow: hidden;
  margin-bottom: 16px;
}

body.backoffice-theme .wizard-rail-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--bo-accent) 0%, #00e5ff 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
}

body.backoffice-theme .wizard-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

body.backoffice-theme .wizard-step {
  background: transparent;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: left;
  cursor: default;
  transition: all 0.2s ease;
  color: var(--bo-text);
}

body.backoffice-theme .wizard-step.is-done {
  cursor: pointer;
}

body.backoffice-theme .wizard-step.is-done:hover {
  border-color: rgba(0, 188, 212, 0.3);
  background: rgba(0, 188, 212, 0.08);
}

body.backoffice-theme .wizard-step.is-active {
  border-color: rgba(0, 188, 212, 0.4);
  background: rgba(0, 188, 212, 0.12);
}

body.backoffice-theme .wizard-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: #ffffff;
  color: var(--bo-accent);
  border: 2px solid rgba(0, 188, 212, 0.35);
  box-shadow: 0 4px 10px rgba(0, 188, 212, 0.15);
}

body.backoffice-theme .wizard-step.is-done .wizard-step-circle {
  background: linear-gradient(135deg, var(--bo-accent), #00e5ff);
  color: #ffffff;
  border-color: transparent;
}

body.backoffice-theme .wizard-step.is-active .wizard-step-circle {
  background: linear-gradient(135deg, #ffffff, #f0fbff);
  border-color: var(--bo-accent);
}

body.backoffice-theme .wizard-step-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--bo-text);
}

body.backoffice-theme .wizard-card {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 16px 30px rgba(0, 151, 167, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.backoffice-theme .wizard-actions .btn {
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
}

body.backoffice-theme .wizard-actions .btn.btn-primary {
  background: linear-gradient(135deg, var(--bo-accent) 0%, #00e5ff 100%);
  border: none;
  box-shadow: 0 8px 16px rgba(0, 188, 212, 0.2);
}

body.backoffice-theme .wizard-actions .btn.btn-success {
  background: linear-gradient(135deg, #43a047 0%, #00c853 100%);
  border: none;
  box-shadow: 0 8px 16px rgba(67, 160, 71, 0.2);
}

body.backoffice-theme .wizard-actions .btn.btn-outline-secondary {
  border: 1px solid rgba(0, 188, 212, 0.3);
  color: var(--bo-text);
}

body.backoffice-theme .wizard-note {
  border-radius: 14px;
  border: 1px solid rgba(76, 175, 80, 0.3);
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(0, 200, 83, 0.08));
}

@media (max-width: 768px) {
  body.backoffice-theme .wizard-hero-body {
    padding: 22px;
  }

  body.backoffice-theme .wizard-steps {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  body.backoffice-theme .wizard-step-label {
    font-size: 12px;
  }
}
