/* Remove all rounded corners */
.icon-shape,
.card,
.card-body,
.card-header,
.btn,
.alert,
.badge,
.nav-pills .nav-link,
.pagination .page-link,
.input-group-text,
.form-control,
.form-select,
.modal-content,
.dropdown-menu,
.list-group-item,
.navbar,
.sidebar,
.login-card {
  border-radius: 0 !important;
}

/* Icon shape styles */
.icon-shape {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.icon-shape:hover {
  opacity: 0.8;
}

/* Background colors */
.bg-primary { background-color: #4e73df; }
.bg-success { background-color: #1cc88a; }
.bg-warning { background-color: #f6c23e; }
.bg-info { background-color: #36b9cc; }

/* Icon styles */
.icon-shape i { 
  color: white; 
  font-size: 1.25rem; 
}

/* Login page specific styles */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
}

.login-card {
  width: 400px;
}

.login-card .card-body {
  padding: 2.5rem;
}

.login-title {
  color: #333;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Form styles */
.form-control:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Button styles */
.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
  padding: 0.5rem 1.5rem;
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

/* Dashboard layout styles */
.sidebar {
  position: fixed;
  top: 12px;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding: 48px 0 0;
  width: 250px;
  transition: all 0.3s;
  background-color: #212529;
}

.sidebar-collapsed {
  width: 60px;
}

.sidebar-collapsed .nav-link span {
  display: none;
}

.sidebar-collapsed .nav-link {
  text-align: center;
  padding: 0.5rem;
}

.sidebar-collapsed .nav-link i {
  margin-right: 0;
}

.sidebar-collapsed .divider {
  margin: 0.5rem 0.5rem;
}

#content {
  margin-left: 250px;
  transition: all 0.3s;
}

#content.content-expanded {
  margin-left: 60px;
}

.sidebar-heading {
  font-size: .75rem;
  text-transform: uppercase;
  color: #adb5bd;
}

.nav-link {
  color: #e9ecef;
  padding: 0.5rem 1rem;
  transition: all 0.2s;
}

.nav-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.2);
}

.nav-link button {
  color: #e9ecef;
}

.nav-link button:hover {
  color: #fff;
}

.divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0.5rem 1rem;
}

.nav-link i {
  font-size: 1.2rem;
  width: 1.5rem;
  text-align: center;
  margin-right: 0.5rem;
}

.dashboard-row .card{
  min-height: 101px;
}

/* Custom tooltip styles */
.tooltip {
  font-size: 0.875rem;
}

.tooltip .tooltip-inner {
  background-color: #212529;
  padding: 0.5rem 0.75rem;
}

.tooltip.bs-tooltip-end .tooltip-arrow::before {
  border-right-color: #212529;
}

/* Table Padding */
.table.padded > tbody > tr > td {
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Grayscale styles for expired deals */
.grayscale {
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%); /* For Safari 6.0 - 9.0 */
}

.grayscale-overlay {
  position: relative;
  display: inline-block;
}

.grayscale-overlay img {
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
}

.grayscale-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3); /* Adjust the last value (0.3) for darkness level */
  pointer-events: none; /* Allows clicks to pass through to the image */
}

/* For On-Off on Featured Deals */
.toggle-featured,
.toggle-category,
.toggle-status {
  text-decoration: none;
}

.toggle-featured .badge,
.toggle-category .badge,
.toggle-status .badge {
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-featured .badge:hover,
.toggle-category .badge:hover,
.toggle-status .badge:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

a .badge, a.badge {
  transition: all 0.2s ease;
}
a:hover .badge, a:hover.badge {
  transform: scale(1.05);
}

.bg-warning-outline {
  background-color: transparent !important;
  border: 1px solid #ffc107;
  color: #ffc107 !important;
}
.bg-warning-outline:hover {
  background-color: #ffc107 !important;
  color: #000 !important;
}

/* Image lightbox styles */
.image-container {
  position: relative;
  display: inline-block;
}
    
.post-thumbnail {
  transition: transform 0.2s;
  cursor: pointer;
  max-width: 100px; 
  max-height: 100px; 
  object-fit: contain;
}
  
.image-container:hover .post-thumbnail {
  transform: scale(1.05);
}

.lightbox-image-container {
  position: relative;
  min-height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Image download overlay styling */
.image-download-overlay {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
}
  
#lightboxImage {
  object-fit: contain;
  max-height: 60vh;
}
  
#copyTextBtn:focus {
  box-shadow: none;
}

/* Clear search button styles */
.clear-search {
  border: 1px solid var(--bs-gray-600) !important;
  border-radius: 24px !important;
  width: 22px !important;
  height: 22px !important;
  display: none !important; /* Default state is hidden */
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.clear-search.visible {
  display: flex !important; /* Show when has the visible class */
}

.clear-search i {
  font-size: 12px !important;
  line-height: 1 !important;
  margin: 0 !important;
}

.clear-search:hover {
  background-color: var(--bs-gray-200) !important;
  border-color: var(--bs-gray-700) !important;
}