      :root {
        --primary: #ff7a3d;
        --primary-dark: #e86a2d;
        --secondary: #6c757d;
        --dark: #343a40;
        --light: #f8f9fa;
        --success: #28a745;
        --danger: #dc3545;
        --warning: #ffc107;
        --info: #17a2b8;
      }

      body {
        background-color: var(--light);
        font-family: "Poppins", sans-serif;
        background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.04' stroke='%23000' stroke-width='1' fill='none'%3E%3Cpath d='M20 20 L80 20 L80 80 L20 80 Z' /%3E%3Cpath d='M30 30 L70 30 L70 70 L30 70 Z' /%3E%3Cpath d='M40 40 L60 40 L60 60 L40 60 Z' /%3E%3C/g%3E%3C/svg%3E");
      }

      .sidebar {
        width: 16rem;
        height: 100vh;
        position: fixed;
        left: 0;
        top: 0;
        background-color: white;
        box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1),
          0 1px 2px -1px rgb(0 0 0 / 0.1);
      }

      .main-content {
        margin-left: 16rem;
      }

      .nav-link.active {
        background-color: #ffedd5;
        color: var(--primary-dark) !important;
      }

      .nav-link:hover:not(.active) {
        background-color: var(--light);
      }

      .btn-primary {
        background-color: var(--primary);
        border-color: var(--primary);
      }

      .btn-primary:hover {
        background-color: var(--primary-dark);
        border-color: var(--primary-dark);
      }

      .badge-new {
        background-color: #dbeafe;
        color: #1e40af;
      }

      .badge-contacted {
        background-color: #fef9c3;
        color: #92400e;
      }

      .badge-quoted {
        background-color: #f3e8ff;
        color: #6b21a8;
      }

      .badge-closed {
        background-color: #dcfce7;
        color: #166534;
      }

      .badge-available {
        background-color: #dcfce7;
        color: #166534;
      }

      .badge-sold {
        background-color: #fee2e2;
        color: #991b1b;
      }

      .badge-print {
        background-color: #dbeafe;
        color: #1e40af;
      }

      .badge-ebook {
        background-color: #fef9c3;
        color: #92400e;
      }

      .badge-audio {
        background-color: #f3e8ff;
        color: #6b21a8;
      }

      .book-card-img {
        height: 12rem;
        object-fit: cover;
      }

      .book-card {
        transition: transform 0.2s;
      }

      .book-card:hover {
        transform: translateY(-2px);
      }

      .line-clamp-2 {
        display: -webkit-box;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }

      .ad-card-img {
        height: 12rem;
        object-fit: cover;
      }

      .ad-card {
        transition: transform 0.2s;
      }

      .ad-card:hover {
        transform: translateY(-2px);
      }

      .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        display: none;
        z-index: 1000;
        padding: 8px 0;
      }

      .mobile-bottom-nav .nav-container {
        display: flex;
        justify-content: space-around;
        align-items: center;
        width: 100%;
      }

      .mobile-bottom-nav .nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--secondary);
        font-size: 0.75rem;
        padding: 6px 8px;
        flex: 1;
        min-width: 0;
      }

      .mobile-bottom-nav .nav-link.active {
        color: var(--primary);
        background: transparent;
      }

      .mobile-bottom-nav .nav-link i {
        font-size: 1.25rem;
        margin-bottom: 4px;
      }

      .mobile-bottom-nav .nav-link span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
      }

      .logo-container {
        display: flex;
        align-items: center;
        gap: 0.5rem;
      }

      .logo-img {
        width: 32px;
        height: 32px;
        object-fit: contain;
      }

      @media (max-width: 767.98px) {
        .sidebar {
          width: 100%;
          height: auto;
          position: relative;
        }

        .main-content {
          margin-left: 0;
          padding-bottom: 60px;
        }

        .mobile-bottom-nav {
          display: flex;
        }

        .mobile-header {
          padding: 0.5rem 1rem;
        }

        .card {
          margin-bottom: 1rem;
        }
      }

      .spinner {
        width: 2rem;
        height: 2rem;
        border: 0.25rem solid rgba(255, 122, 61, 0.2);
        border-top-color: var(--primary);
        border-radius: 50%;
        animation: spin 1s linear infinite;
      }

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

      .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1050;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      ::-webkit-scrollbar {
        width: 8px;
      }

      ::-webkit-scrollbar-track {
        background: #f1f1f1;
      }

      ::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
      }

      ::-webkit-scrollbar-thumb:hover {
        background: #555;
      }

      .haptic-feedback {
        transition: transform 0.1s;
      }

      .haptic-feedback:active {
        transform: scale(0.95);
      }

      .nav-icon {
        font-size: 1.1rem;
        margin-right: 0.5rem;
        min-width: 24px;
        text-align: center;
      }

      .contact-email,
      .service-email {
        word-break: break-all;
        overflow-wrap: break-word;
        max-width: 100%;
        display: inline-block;
      }

      .border.rounded.p-3 {
        overflow: hidden;
      }

      @media (max-width: 575.98px) {
        .d-flex.flex-column.flex-sm-row.justify-content-between {
          flex-direction: column !important;
        }

        .d-flex.flex-column.flex-sm-row.flex-wrap.gap-3 {
          flex-wrap: wrap !important;
        }

        .contact-email,
        .service-email {
          font-size: 0.8rem;
          max-width: 200px;
        }
      }

      .mobile-header {
        background: white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        padding: 1rem;
        position: sticky;
        top: 0;
        z-index: 100;
      }

      .confirmation-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1100;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
      }

      .confirmation-overlay.active {
        opacity: 1;
        visibility: visible;
      }

      .confirmation-dialog {
        background-color: white;
        border-radius: 0.5rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        width: 90%;
        max-width: 400px;
        transform: translateY(20px);
        transition: transform 0.3s ease;
        overflow: hidden;
      }

      .confirmation-overlay.active .confirmation-dialog {
        transform: translateY(0);
      }

      .confirmation-header {
        padding: 1.25rem;
        border-bottom: 1px solid #e5e7eb;
        position: relative;
      }

      .confirmation-title {
        font-weight: 600;
        color: var(--dark);
        margin: 0;
        text-align: center;
        font-size: 1.25rem;
      }

      .confirmation-body {
        padding: 1.5rem;
        text-align: center;
      }

      .confirmation-icon {
        font-size: 3rem;
        color: var(--danger);
        margin-bottom: 1rem;
      }

      .confirmation-message {
        font-size: 1rem;
        color: var(--dark);
        margin-bottom: 1.5rem;
        line-height: 1.5;
      }

      .confirmation-footer {
        padding: 1rem;
        border-top: 1px solid #e5e7eb;
        display: flex;
        justify-content: center;
        gap: 1rem;
      }

      .confirmation-btn {
        padding: 0.5rem 1.5rem;
        border-radius: 0.375rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        font-size: 0.875rem;
        border: 1px solid transparent;
      }

      .confirmation-btn-cancel {
        background-color: white;
        border-color: #d1d5db;
        color: var(--dark);
      }

      .confirmation-btn-cancel:hover {
        background-color: #f9fafb;
        border-color: #9ca3af;
      }

      .confirmation-btn-confirm {
        background-color: var(--danger);
        border-color: #b91c1c;
        color: white;
      }

      .confirmation-btn-confirm:hover {
        background-color: #b91c1c;
        border-color: #991b1b;
      }

      .confirmation-btn:active {
        transform: scale(0.95);
      }

      .badge-warning {
    background-color: #fef9c3;
    color: #92400e;
      }

/* Control Bar Styles */
.control-bar {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 99;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}

.control-bar .control-btn {
  background: transparent;
  border: none;
  padding: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  color: #6c757d;
}

.control-bar .control-btn:hover {
  background-color: #f3f4f6;
  color: var(--primary);
}

.control-bar .control-btn .badge-notification {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--danger);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Notification Panel */
.notification-panel {
  position: fixed;
  top: 70px;
  right: 20px;
  width: 380px;
  max-width: calc(100vw - 40px);
  max-height: 500px;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 1050;
  overflow: hidden;
  animation: slideDown 0.2s ease;
}

.notification-panel.show {
  display: block !important;
}

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

.notification-header {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-header h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.notification-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.clear-notifications-btn,
.close-notification-btn {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: #9ca3af;
  padding: 0.25rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.clear-notifications-btn:hover {
  background-color: #fee2e2;
  color: var(--danger);
}

.close-notification-btn:hover {
  background-color: #f3f4f6;
  color: var(--dark);
}

.notification-list {
  max-height: 400px;
  overflow-y: auto;
}

.notification-item {
  padding: 1rem;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.2s;
  cursor: pointer;
}

.notification-item:hover {
  background: #f9fafb;
}

.notification-item.unread {
  background: #fffbeb;
  border-left: 3px solid var(--warning);
}

.notification-title {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  color: var(--dark);
}

.notification-message {
  font-size: 0.75rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.notification-time {
  font-size: 0.7rem;
  color: #9ca3af;
}

.empty-notifications {
  text-align: center;
  padding: 2rem;
  color: #9ca3af;
}

.empty-notifications i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

/* Logs Modal */
.logs-modal .modal-dialog {
  max-width: 800px;
}

.log-entry {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.2s;
}

.log-entry:hover {
  background: #f9fafb;
}

.log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.log-sku {
  font-family: monospace;
  font-weight: 600;
  color: var(--primary);
  background: #fff3e8;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
}

.log-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.log-details {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

.log-details span {
  margin-right: 1rem;
  display: inline-block;
}

.log-time {
  font-size: 0.7rem;
  color: #9ca3af;
}

@media (max-width: 767.98px) {
  .control-bar {
    padding: 0.5rem 1rem;
  }
  
  .notification-panel {
    top: 60px;
    right: 10px;
    left: 10px;
    width: auto;
  }
}

.badge-warning { background-color: #ffc107; color: #212529; }
.badge-info { background-color: #0dcaf0; color: #000; }
.badge-primary { background-color: #0d6efd; color: #fff; }
.badge-available { background-color: #28a745; color: #fff; }
.badge-sold { background-color: #dc3545; color: #fff; }
.badge-secondary { background-color: #6c757d; color: #fff; }