/* hiding admin bar for dealers */

.dealer-portal #wpadminbar {
  display: none;
}
html:has(.dealer-portal) {
  margin-top: 0px !important;
}
/* =========== live auctions page =============  */

.dashboard-stats {
  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(251px, 1fr));

  gap: 20px;
}

.stat-card {
  background-color: #fff;

  border-radius: 8px;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);

  padding: 15px;

  display: flex;

  align-items: start;

  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-icon {
  font-size: 28px;

  margin-right: 15px;

  color: #007bff;

  /* Customize per category */
}

.stat-details h3 {
  font-size: 16px;

  margin: 0;

  font-weight: 600;

  color: #333;
}

.stat-clickable {
  cursor: pointer;

  transition: all 0.3s;

  border: none;

  border-left: 5px solid transparent;
}

.stat-clickable:hover {
  transform: scale(1.02);
}

.stat-clickable.active {
  background-color: rgba(0, 123, 255, 0.1);

  border-left-color: var(--active-color);

  transition: all 0.3s;
}

.status-auction,
.status-expired {
  font-weight: bold;

  padding: 4px 10px;

  border-radius: 3px;
}

.status-auction {
  background-color: #d5f5e3;

  color: #2c3e50;
}

.status-expired {
  background-color: #f9ebea;

  color: #c0392b;
}

.bid-now-btn {
  background-color: #2c3e50;

  /* Custom color */

  border-radius: 5px;

  padding: 8px 20px;

  font-size: 14px;

  font-weight: bold;

  text-decoration: none;

  color: white;

  transition: background-color 0.3s ease;
}

.bid-now-btn:hover {
  background-color: #34495e;

  text-decoration: none;

  color: white;
}

.auction-ended {
  color: red;

  font-weight: bold;
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-icon {
  font-size: 28px;

  margin-right: 15px;

  color: #007bff;

  /* Customize per category */
}

.stat-details h3 {
  font-size: 16px;

  margin: 0;

  font-weight: 600;

  color: #333;
}

.stat-details p {
  margin: 4px 0 0;

  font-size: 18px;

  font-weight: bold;

  color: #222;
}

.status-auction,
.status-expired {
  font-weight: bold;

  padding: 4px 10px;

  border-radius: 3px;
}

.status-auction {
  background-color: #d5f5e3;

  color: #2c3e50;
}

.status-expired {
  background-color: #f9ebea;

  color: #c0392b;
}

.bid-now-btn {
  background-color: #2c3e50;

  /* Custom color */

  border-radius: 5px;

  padding: 8px 20px;

  font-size: 14px;

  font-weight: bold;

  text-decoration: none;

  color: white;

  transition: background-color 0.3s ease;
}

.bid-now-btn:hover {
  background-color: #34495e;

  text-decoration: none;

  color: white;
}

.auction-ended {
  color: red;

  font-weight: bold;
}

.page-template-Dealer-dashboard .site-header,
.page-template-Dealer-dashboard .site-footer,
.page-template-dealership-user-management .site-header,
.page-template-dealership-user-management .site-footer,
.page-template-live-auctions .site-header,
.page-template-live-auctions .site-footer {
  display: none;
}

.page-template-Dealer-dashboard,
.page-template-dealership-user-management,
.page-template-live-auctions {
  margin-top: 0px;
}

/* Amacar Dashboard Styles */

.amacar-dashboard {
  display: flex;

  min-height: 100vh;

  background-color: #f5f7fb;

  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;

  position: relative;
}

/* Sidebar styles */

.sidebar-menu {
  width: 280px;

  background-color: #2c3e50;

  color: #ecf0f1;

  transition: all 0.3s ease;

  position: fixed;

  height: 100vh;

  overflow-y: auto;

  z-index: 100;

  left: 0;
}

.sidebar-menu.collapsed {
  width: 80px;
}

.sidebar-header {
  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 20px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header .logo h2 {
  margin: 0;

  color: #ecf0f1;

  font-weight: bold;
}

.sidebar-header .logo a {
  text-decoration: none;

  color: inherit;
}

.sidebar-toggle {
  background: none;

  border: none;

  color: #ecf0f1;

  cursor: pointer;

  font-size: 18px;
}

.sidebar-menu .menu {
  list-style: none;

  padding: 0;

  margin: 0;
}

.sidebar-menu .menu li {
  margin: 0;

  padding: 0;
}

.sidebar-menu .menu li a {
  display: flex;

  align-items: center;

  padding: 15px 20px;

  color: #ecf0f1;

  text-decoration: none;

  transition: all 0.3s ease;
}

.sidebar-menu .menu li a:hover,
.sidebar-menu .menu li.active a {
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-menu .menu li a i {
  font-size: 18px;

  margin-right: 15px;

  width: 25px;

  text-align: center;
}

.sidebar-menu.collapsed .menu li a span {
  display: none;
}

/* Main content styles */

.dashboard-content {
  flex: 1;

  margin-left: 280px;

  padding: 20px;

  transition: all 0.3s ease;

  width: calc(100% - 280px);

  position: relative;
}

/* Header styles */

.dashboard-header {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 30px;

  background-color: #fff;

  border-radius: 8px;

  padding: 15px 20px;

  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.header-left {
  display: flex;

  align-items: center;
}

.mobile-sidebar-toggle {
  display: none;

  background: none;

  border: none;

  color: #2c3e50;

  font-size: 20px;

  cursor: pointer;

  margin-right: 15px;

  padding: 8px;

  border-radius: 4px;

  transition: background-color 0.3s;
}

.mobile-sidebar-toggle:hover {
  background-color: rgba(44, 62, 80, 0.1);
}

.search-box {
  position: relative;

  width: 300px;
}

.search-box input {
  width: 100%;

  padding: 10px 15px 10px 40px;

  border: 1px solid #e0e0e0;

  border-radius: 4px;

  font-size: 14px;

  transition: all 0.3s ease;
}

.search-box input:focus {
  border-color: #3498db;

  outline: none;
}

.search-box i {
  position: absolute;

  left: 15px;

  top: 50%;

  transform: translateY(-50%);

  color: #7f8c8d;
}

.user-info {
  display: flex;

  align-items: center;
}

.notifications {
  position: relative;

  margin-right: 25px;
}

.notification-toggle {
  font-size: 18px;

  color: #7f8c8d;

  position: relative;
}

.notification-badge {
  position: absolute;

  top: -8px;

  right: -8px;

  background-color: #e74c3c;

  color: white;

  border-radius: 50%;

  width: 18px;

  height: 18px;

  font-size: 11px;

  display: flex;

  align-items: center;

  justify-content: center;
}

.notification-dropdown {
  position: absolute;

  top: 100%;

  right: 0;

  width: 300px;

  background-color: white;

  border-radius: 8px;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);

  display: none;

  z-index: 100;
}

.notification-dropdown.active {
  display: block;
}

.notification-item {
  display: flex;

  padding: 15px;

  border-bottom: 1px solid #f0f0f0;
}

.notification-icon {
  width: 40px;

  height: 40px;

  border-radius: 50%;

  background-color: #f0f0f0;

  display: flex;

  align-items: center;

  justify-content: center;

  margin-right: 15px;

  color: #3498db;
}

.notification-content h4 {
  margin: 0 0 5px;

  font-size: 14px;

  font-weight: 600;
}

.notification-content p {
  margin: 0 0 5px;

  font-size: 13px;

  color: #7f8c8d;
}

.notification-content .time {
  font-size: 11px;

  color: #95a5a6;
}

.view-all {
  padding: 10px 15px;

  text-align: center;
}

.view-all a {
  color: #3498db;

  font-size: 13px;

  text-decoration: none;
}

/* User profile styles */

.user-profile {
  position: relative;
}

.profile-dropdown-toggle {
  display: flex;

  align-items: center;

  cursor: pointer;

  text-decoration: none;

  color: inherit;
}

.user-info-wrapper {
  margin-right: 10px;

  text-align: right;
}

.user-name {
  font-size: 14px;

  font-weight: 500;

  color: #2c3e50;
}

.user-role {
  font-size: 12px;

  color: #7f8c8d;
}

.user-avatar {
  width: 40px;

  height: 40px;

  border-radius: 50%;

  overflow: hidden;

  border: 2px solid #f0f0f0;
}

.user-avatar img {
  width: 100%;

  height: 100%;

  object-fit: cover;
}

.profile-dropdown {
  position: absolute;

  top: 100%;

  right: 0;

  background: white;

  border: 1px solid #e1e5e9;

  border-radius: 8px;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

  min-width: 280px;

  z-index: 1000;

  display: none;

  overflow: hidden;
}

.profile-dropdown.active {
  display: block;
}

.profile-header {
  padding: 16px;

  border-bottom: 1px solid #f1f3f4;

  display: flex;

  align-items: center;

  gap: 12px;
}

.profile-header .user-avatar {
  width: 50px;

  height: 50px;

  border-radius: 50%;

  overflow: hidden;

  flex-shrink: 0;
}

.profile-header .user-avatar img {
  width: 100%;

  height: 100%;

  object-fit: cover;
}

.profile-header .user-name {
  font-weight: 600;

  color: #2c3e50;

  margin-bottom: 2px;
}

.profile-header .user-email {
  font-size: 0.875rem;

  color: #6c757d;
}

/* Dealership Section Styles */

.profile-dealership-section {
  padding: 16px;

  border-bottom: 1px solid #f1f3f4;

  background: #f8f9fa;
}

.dealership-header {
  display: flex;

  align-items: center;

  gap: 8px;

  margin-bottom: 12px;

  font-weight: 600;

  color: #495057;

  font-size: 0.875rem;
}

.dealership-header i {
  color: #007bff;
}

.dealership-switcher {
  margin-bottom: 12px;
}

.dealership-dropdown {
  position: relative;

  width: 100%;
}

.dealership-dropdown-toggle {
  width: 100%;

  padding: 10px 12px;

  border: 1px solid #dee2e6;

  border-radius: 6px;

  background: white;

  color: #495057;

  text-decoration: none;

  transition: all 0.3s ease;

  display: flex;

  align-items: center;

  justify-content: space-between;

  font-size: 0.875rem;
}

.dealership-dropdown-toggle:hover {
  background: #f8f9fa;

  border-color: #adb5bd;

  color: #212529;
}

.dealership-info {
  flex: 1;

  text-align: left;
}

.dealership-name {
  font-weight: 600;

  margin-bottom: 2px;

  color: #2c3e50;
}

.dealership-location {
  font-size: 0.75rem;

  color: #6c757d;
}

.dealership-dropdown-menu {
  position: absolute;

  top: 100%;

  left: 0;

  right: 0;

  background: white;

  border: 1px solid #dee2e6;

  border-radius: 6px;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

  z-index: 1001;

  max-height: 200px;

  overflow-y: auto;

  display: none;

  margin-top: 4px;
}

.dealership-dropdown.show .dealership-dropdown-menu {
  display: block;
}

.dealership-item {
  border-bottom: 1px solid #f1f3f4;
}

.dealership-item:last-child {
  border-bottom: none;
}

.dealership-switch-btn {
  width: 100%;

  padding: 10px 12px;

  border: none;

  background: none;

  text-align: left;

  display: flex;

  align-items: center;

  justify-content: space-between;

  color: #495057;

  text-decoration: none;

  transition: background-color 0.2s ease;

  font-size: 0.875rem;
}

.dealership-switch-btn:hover {
  background-color: #f8f9fa;

  color: #212529;
}

.dealership-actions {
  margin-top: 8px;
}

.create-dealership-btn {
  width: 100%;

  padding: 8px 12px;

  border: 1px solid #007bff;

  border-radius: 6px;

  background: #007bff;

  color: white;

  text-decoration: none;

  transition: all 0.3s ease;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 6px;

  font-size: 0.875rem;

  font-weight: 500;
}

.create-dealership-btn:hover {
  background: #0056b3;

  border-color: #0056b3;

  color: white;
}

.dealership-dropdown-divider {
  height: 1px;

  background-color: #dee2e6;

  margin: 8px 0;
}

.dealership-context {
  display: inline-flex;

  align-items: center;

  font-size: 0.875rem;

  color: #6c757d;
}

.dealership-notification {
  position: fixed;

  top: 20px;

  right: 20px;

  z-index: 9999;

  min-width: 300px;
}

/* AG grid styling  */

.ag-theme-alpine.auction-grid-custom .ag-cell {
  padding: 10px;

  font-size: 14px;

  line-height: 1.5;

  border-bottom: 1px solid #eee;

  justify-content: center;
}

.ag-theme-alpine.auction-grid-custom .ag-row-even {
  background-color: #f9f9f9;
}

.ag-theme-alpine.auction-grid-custom .ag-row-hover {
  background-color: #f1f8ff;
}

.ag-theme-alpine.auction-grid-custom .ag-header {
  background-color: #f4f4f4;

  font-weight: bold;

  font-size: 15px;
}

/* Bid badge */

.ag-theme-alpine .badge {
  display: inline-block;

  margin-top: 4px;

  font-size: 12px;

  padding: 4px 6px;
}

/* Dropdown menu fix inside grid */

.ag-theme-alpine .dropdown-menu {
  position: absolute;

  z-index: 9999;
}

/* Container row styling */

.ag-row {
  background: #fff;

  border-radius: 12px;

  box-shadow: 0 8px 20px rgb(0 0 0 / 0.05);

  margin-bottom: 16px;

  padding: 16px 24px;

  display: flex !important;

  align-items: center;

  gap: 24px;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ag-row:hover {
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.1);

  transform: translateY(-4px);
}

/* Each cell as flex item with better alignment */

.ag-cell {
  display: flex !important;

  align-items: center;

  padding: 0 !important;

  border: none !important;

  background: transparent !important;

  box-shadow: none !important;

  flex-grow: 1;

  min-width: 0;
}

/* First column: image + title container */

.ag-cell[col-id="title"] .ag-cell-wrapper {
  display: flex;

  align-items: center;

  gap: 16px;
}

.ag-cell[col-id="title"] img {
  width: 100px !important;

  height: auto !important;

  border-radius: 10px !important;

  object-fit: cover;

  box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);

  max-height: 50px;
}

.ag-cell[col-id="title"] .fw-semibold {
  font-weight: 700;

  font-size: 1.125rem;

  color: #212529;

  white-space: nowrap;
  text-wrap: auto !important;
}

/* Year Make Model column */

.ag-cell[col-id="yearMakeModel"] {
  font-size: 1rem;

  color: #6c757d;

  flex: 1 1 180px;

  white-space: nowrap;

  font-weight: 500;
}

/* Status with badge style */

.ag-cell[col-id="status"] {
  flex: 0 0 100px;

  justify-content: center !important;
}

.ag-cell[col-id="status"] .text-success {
  background-color: #d1e7dd;

  color: #0f5132 !important;

  font-weight: 600;

  padding: 4px 12px;

  border-radius: 20px;

  font-size: 0.875rem;

  user-select: none;
}

/* VIN, Cash Offer, Highest Bid, Ends At columns */

.ag-cell[col-id="vin"],
.ag-cell[col-id="cashOffer"],
.ag-cell[col-id="highestBid"],
.ag-cell[col-id="endsAt"] {
  flex: 0 0 130px;

  font-weight: 600;

  font-size: 0.95rem;

  color: #495057;

  text-align: center !important;

  white-space: nowrap;
}

/* Cash offer highlighted */

.ag-cell[col-id="cashOffer"] {
  color: #0d6efd;

  font-weight: 700;
}

/* Dropdown styling */

.ag-cell[col-id="productId"] {
  flex: 0 0 auto;

  text-align: right !important;

  padding-right: 0 !important;
}

.ag-cell[col-id="productId"] .dropdown {
  display: inline-block;
}

.ag-cell[col-id="productId"] .btn-dark {
  padding: 0.35rem 0.9rem;

  font-size: 0.875rem;

  border-radius: 6px;

  box-shadow: none;

  transition: background-color 0.25s ease;
}

.ag-cell[col-id="productId"] .btn-dark:hover {
  background-color: #343a40cc;
}

.ag-cell[col-id="productId"] .dropdown-menu {
  border-radius: 10px;

  box-shadow: 0 6px 20px rgb(0 0 0 / 0.1);

  font-size: 0.9rem;
}

.ag-cell[col-id="productId"] .dropdown-item {
  padding: 8px 18px;

  border-radius: 6px;

  transition: background-color 0.15s ease;
}

.ag-cell[col-id="productId"] .dropdown-item:hover {
  background-color: #f8f9fa;

  color: #0d6efd;
}

.ag-theme-alpine.auction-grid-custom .ag-header {
  border: 1px solid #0000002b;

  border-radius: 15px;

  background-color: white;
}

.dashboard-content .ag-root-wrapper,
.dashboard-content .ag-root-wrapper .ag-row {
  border: 0;
}

.ag-root-wrapper {
  background: transparent;
}

.ag-theme-alpine {
  --ag-header-background-color: #f8f9fa;

  --ag-odd-row-background-color: #ffffff;

  --ag-row-hover-color: #f1f3f5;

  --ag-font-size: 14px;

  --ag-font-family: "Segoe UI", sans-serif;

  --ag-border-color: #dee2e6;

  --ag-row-border-color: #f1f3f5;

  border-radius: 1rem;

  overflow: hidden;
}

.ag-cell {
  padding: 1rem 0.75rem !important;

  vertical-align: middle;
}

.ag-header-cell-label {
  font-weight: 600;

  color: #343a40;
}

.ag-row:hover {
  background-color: #f8f9fa !important;

  box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.02);
}

/* Modern SaaS Action Column Styles */

.ag-theme-alpine .ag-cell {
  display: flex;

  align-items: center;

  overflow: visible !important;
}

.ag-theme-alpine .ag-row {
  overflow: visible !important;
}

.ag-theme-alpine .ag-center-cols-container {
  overflow: visible !important;
}

/* Three dots button styling */

.dropdown-toggle::after {
  display: none !important;
}

.dropdown .btn-link {
  border-radius: 8px;

  transition: all 0.2s ease;

  width: 32px;

  height: 32px;

  display: flex;

  align-items: center;

  justify-content: center;
}

.dropdown .btn-link:hover {
  background-color: #f8f9fa !important;

  color: #495057 !important;
}

.dropdown .btn-link:focus {
  box-shadow: none;
}

/* Dropdown menu styling */

.dropdown-menu {
  border: 1px solid #e9ecef;

  border-radius: 12px;

  padding: 8px;

  margin-top: 4px;

  z-index: 9999 !important;

  position: absolute !important;
}

.dropdown-menu .dropdown-item {
  border-radius: 8px;

  font-size: 14px;

  transition: all 0.2s ease;

  display: flex;

  align-items: center;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #f8f9fa;
}

.dropdown-menu .dropdown-item.text-danger:hover {
  background-color: #fff5f5;

  color: #dc3545 !important;
}

.dropdown-divider {
  margin: 8px 0;
}

/* Icons in dropdown */

.dropdown-item i {
  width: 16px;

  font-size: 14px;
}

#bidModal.modal .modal-dialog {
  max-width: 50%;
}

.page-template-won-auctions .vehicle-flex,
.page-template-won-auctions .customer-flex,
.page-template-new-customers .vehicle-flex,
.page-template-new-customers .customer-flex {
  display: flex;

  flex-wrap: wrap;
}

.page-template-won-auctions .vehicle-flex .col-md-3,
.page-template-won-auctions .customer-flex .col-md-4,
.page-template-new-customers .vehicle-flex .col-md-3,
.page-template-new-customers .customer-flex .col-md-4 {
  margin-top: 24px;

  padding: 0 12px;
}

.customer-card-flex {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 15px;

  margin-bottom: 20px;
}
