/* Seller Portal Styles */

/* Seller Login Page */
.seller-login-body {
  background-color: #3a3a3a;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.seller-login-container {
  width: 100%;
  max-width: 600px;
  padding: 20px;
}

.seller-login-card {
  background: #4a4a4a;
  border-radius: 8px;
  padding: 60px 80px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.seller-logo {
  text-align: center;
  margin-bottom: 50px;
}

.seller-logo h1 {
  color: white;
  font-size: 36px;
  font-weight: 700;
  margin: 0;
}

.logo-dot {
  color: #0b79bf;
}

.seller-subtitle {
  color: #b0b0b0;
  font-size: 16px;
  margin-top: 10px;
  margin-bottom: 0;
}

.seller-login-form {
  margin-top: 40px;
}

.form-group-seller {
  margin-bottom: 20px;
}

.input-with-icon {
  position: relative;
}

.form-control-seller {
  width: 100%;
  padding: 15px 50px 15px 20px;
  background-color: white;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  color: #333;
}

.form-control-seller::placeholder {
  color: #999;
}

.form-control-seller:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 121, 191, 0.3);
}

.input-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 16px;
}

.btn-seller-login {
  width: 100%;
  padding: 15px;
  background-color: #0b79bf;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 10px;
}

.btn-seller-login:hover {
  background-color: #095a8f;
}

.seller-login-links {
  text-align: center;
  margin-top: 30px;
}

.seller-login-links p {
  color: #b0b0b0;
  font-size: 14px;
}

.seller-link {
  color: #0b79bf;
  text-decoration: none;
  font-size: 14px;
}

.seller-link:hover {
  text-decoration: underline;
}

/* Seller Dashboard Layout */
.seller-dashboard-body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f5f5f5;
}

.seller-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.seller-sidebar {
  width: 250px;
  background-color: #2c2c2c;
  color: white;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
}

.seller-sidebar-header {
  padding: 20px;
  background-color: #1f1f1f;
  border-bottom: 1px solid #3a3a3a;
}

.seller-sidebar-logo h2 {
  color: white;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.seller-sidebar-logo .logo-dot {
  color: #0b79bf;
}

.seller-nav {
  padding: 0;
  margin: 0;
  list-style: none;
}

.seller-nav-item {
  border-bottom: 1px solid #3a3a3a;
}

.seller-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  color: white;
  text-decoration: none;
  transition: background-color 0.2s;
  font-size: 14px;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.seller-nav-link:hover,
.seller-nav-link.active {
  background-color: #3a3a3a;
  color: white;
}

.seller-nav-link i {
  margin-right: 12px;
  width: 20px;
  text-align: center;
}

.seller-nav-link .nav-text {
  flex: 1;
}

.seller-nav-link .nav-arrow {
  font-size: 12px;
  color: #888;
}

.seller-subnav {
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: #1f1f1f;
}

.seller-subnav-item {
  padding-left: 52px;
}

.seller-subnav-link {
  display: block;
  padding: 12px 20px;
  color: #b0b0b0;
  text-decoration: none;
  font-size: 13px;
  transition: background-color 0.2s;
}

.seller-subnav-link:hover,
.seller-subnav-link.active {
  background-color: #2a2a2a;
  color: white;
}

/* Main Content */
.seller-main {
  margin-left: 250px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.seller-topbar {
  background-color: white;
  border-bottom: 1px solid #e0e0e0;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.seller-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #666;
  font-size: 14px;
}

.seller-breadcrumb i {
  color: #999;
}

.seller-breadcrumb .seller-name {
  color: #999;
  font-size: 12px;
}

.seller-topbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.seller-topbar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  text-decoration: none;
  font-size: 14px;
}

.seller-topbar-link:hover {
  color: #0b79bf;
}

/* User Dropdown Styles */
.seller-topbar-actions .dropdown,
.seller-topbar-actions .seller-user-dropdown {
  position: relative;
}

.seller-topbar-actions .dropdown-toggle,
.seller-topbar-actions #userDropdown {
  cursor: pointer !important;
  pointer-events: auto !important;
}

.seller-topbar-actions .dropdown-toggle::after {
  margin-left: 8px;
  vertical-align: middle;
}

.seller-topbar-actions .dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  min-width: 200px;
  background: white !important;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  margin-top: 8px;
  z-index: 9999 !important;
  display: none !important;
  list-style: none;
  padding: 8px 0;
}

.seller-topbar-actions .dropdown-menu.show {
  display: block !important;
  visibility: visible !important;
}

.seller-topbar-actions .dropdown-item {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background-color 0.2s;
  text-decoration: none;
  color: #333;
  cursor: pointer;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
}

.seller-topbar-actions .dropdown-item:hover {
  background-color: #f0f9ff !important;
  color: #0b79bf;
}

.seller-topbar-actions .dropdown-item i {
  width: 20px;
  text-align: center;
}

.seller-topbar-actions .dropdown-divider {
  height: 1px;
  margin: 8px 0;
  background-color: #e0e0e0;
  border: 0;
}




.seller-content {

  padding: 30px;
  flex: 1;
}

/* Dashboard Cards */
.promo-banners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.promo-banner-card {
  background: linear-gradient(135deg, #0b79bf 0%, #1e88c7 100%);
  border-radius: 8px;
  padding: 30px;
  color: white;
  position: relative;
  overflow: hidden;
}

.promo-banner-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.promo-banner-card p {
  font-size: 14px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.btn-promo {
  background-color: white;
  color: #0b79bf;
  border: none;
  padding: 10px 30px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-promo:hover {
  transform: translateY(-2px);
}

.order-tracking-section {
  background: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.section-title-seller {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.order-tracking-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.order-category {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
}

.order-category-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  font-weight: 600;
  color: #333;
}

.order-category-header i {
  color: #999;
  font-size: 14px;
}

.order-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.order-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

.order-list-item:last-child {
  border-bottom: none;
}

.order-list-item span {
  color: #666;
  font-size: 14px;
}

.order-count {
  font-weight: 600;
  color: #333;
}

.order-arrow {
  color: #0b79bf;
  cursor: pointer;
}

/* Communications Section */
.communications-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.communication-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.communication-item {
  padding: 15px 0;
  border-bottom: 1px solid #e0e0e0;
}

.communication-item:last-child {
  border-bottom: none;
}

.communication-title {
  color: #0b79bf;
  font-size: 14px;
  text-decoration: none;
  display: block;
  margin-bottom: 5px;
}

.communication-title:hover {
  text-decoration: underline;
}

.communication-date {
  font-size: 12px;
  color: #999;
}

/* Search Catalogue Page */
.search-catalogue-header {
  background: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-catalogue-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.bulk-upload-link {
  float: right;
  color: #0b79bf;
  font-size: 14px;
  text-decoration: none;
}

.bulk-upload-link:hover {
  text-decoration: underline;
}

.search-form-seller {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 15px;
  align-items: end;
}

.search-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-field-group label {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.search-dropdown-seller,
.search-input-seller {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.search-dropdown-seller:focus,
.search-input-seller:focus {
  outline: none;
  border-color: #0b79bf;
}

.btn-search-seller {
  padding: 12px 40px;
  background-color: #0b79bf;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-search-seller:hover {
  background-color: #095a8f;
}

.search-results-info {
  background: white;
  padding: 15px 30px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
}

.product-result-card {
  background: white;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 25px;
}

.product-result-image {
  width: 120px;
  height: 120px;
  background-color: #f5f5f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-result-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-result-info {
  flex: 1;
}

.product-result-title {
  font-size: 16px;
  font-weight: 600;
  color: #0b79bf;
  margin-bottom: 5px;
  text-decoration: none;
}

.product-result-title:hover {
  text-decoration: underline;
}

.product-result-subtitle {
  font-size: 13px;
  color: #999;
  margin-bottom: 15px;
}

.product-result-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  font-size: 13px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.detail-label {
  color: #999;
  font-weight: 500;
}

.detail-value {
  color: #333;
}

.product-result-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
}

.btn-add-offer {
  padding: 10px 30px;
  background-color: #0b79bf;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s;
}

.btn-add-offer:hover {
  background-color: #095a8f;
}

.competing-offers {
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 5px;
}

.best-price {
  color: #22c55e;
  font-weight: 600;
}

.cant-find-product {
  background: #f9f9f9;
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  margin-top: 20px;
}

.cant-find-product h4 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.cant-find-product p {
  color: #666;
  margin-bottom: 20px;
}

.btn-add-to-catalogue {
  padding: 12px 40px;
  background-color: white;
  color: #0b79bf;
  border: 2px solid #0b79bf;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add-to-catalogue:hover {
  background-color: #0b79bf;
  color: white;
}

/* No Results State */
.no-results-state {
  background: white;
  border-radius: 8px;
  padding: 60px;
  text-align: center;
  margin-top: 20px;
}

.no-results-icon {
  font-size: 80px;
  color: #ddd;
  margin-bottom: 20px;
}

.no-results-state h3 {
  font-size: 20px;
  color: #666;
  margin-bottom: 10px;
}

.no-results-state p {
  color: #999;
  font-size: 14px;
}

/* Add Product Form */
.add-product-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-title-seller {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.form-section {
  background: white;
  padding: 30px;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section-title-form {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #0b79bf;
}

.form-label {
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.form-label.required::after {
  content: " *";
  color: #dc3545;
}

.form-control,
.form-select {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 15px;
  font-size: 14px;
}

.form-control:focus,
.form-select:focus {
  border-color: #0b79bf;
  box-shadow: 0 0 0 0.2rem rgba(11, 121, 191, 0.25);
}

.form-text {
  font-size: 12px;
  color: #6c757d;
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
  padding: 20px 0;
}

.form-actions .btn {
  padding: 12px 30px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* My Products Page */
.my-products-container {
  max-width: 1400px;
  margin: 0 auto;
}

.products-summary {
  margin-bottom: 30px;
}

.summary-card {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.summary-card h3 {
  font-size: 32px;
  font-weight: 700;
  color: #0b79bf;
  margin: 0;
}

.summary-card p {
  font-size: 14px;
  color: #666;
  margin: 10px 0 0 0;
}

.products-table-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.products-table-container table {
  margin: 0;
}

.products-table-container thead {
  background-color: #f8f9fa;
}

.products-table-container th {
  font-weight: 600;
  color: #333;
  padding: 15px;
  border-bottom: 2px solid #dee2e6;
}

.products-table-container td {
  padding: 15px;
  vertical-align: middle;
}

.product-cell {
  display: flex;
  gap: 15px;
  align-items: center;
}

.product-image-thumb {
  width: 60px;
  height: 60px;
  background-color: #f5f5f5;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-image-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-image-thumb i {
  font-size: 24px;
  color: #ddd;
}

.product-info-thumb {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-info-thumb strong {
  font-size: 14px;
  color: #333;
}

.product-info-thumb small {
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.no-products-state {
  background: white;
  border-radius: 8px;
  padding: 80px 40px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.no-products-state i {
  font-size: 80px;
  color: #ddd;
  margin-bottom: 20px;
}

.no-products-state h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 10px;
}

.no-products-state p {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 992px) {
  .seller-sidebar {
    width: 200px;
  }

  .seller-main {
    margin-left: 200px;
  }

  .promo-banners,
  .order-tracking-grid,
  .communications-grid {
    grid-template-columns: 1fr;
  }

  .search-form-seller {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .seller-login-card {
    padding: 40px 30px;
  }

  .seller-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
  }

  .seller-sidebar.open {
    transform: translateX(0);
  }

  .seller-main {
    margin-left: 0;
  }

  .product-result-card {
    flex-direction: column;
  }

  .product-result-details {
    grid-template-columns: 1fr;
  }
}
