/* App Blade CSS */
:root {
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

body {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0 !important;
  padding: 0 !important;
  height: 100%;
  width: 100%;
  font-size: 16px !important;
  overflow-x: hidden;
  scroll-behavior: smooth;
  /* Important: Allow fixed children */
  position: relative !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.font-mono {
  font-family: var(--font-mono);
}

.font-weight-light { font-weight: 300; }
.font-weight-normal { font-weight: 400; }
.font-weight-medium { font-weight: 500; }
.font-weight-semibold { font-weight: 600; }
.font-weight-bold { font-weight: 700; }
.font-weight-extrabold { font-weight: 800; }

/* Fix Bootstrap 5 dropdown conflicts with Select2 */
.select2-container {
  z-index: 9999 !important;
}

.select2-dropdown {
  z-index: 9999 !important;
}

/* Select2 specific positioning fix */
.select2-container--open .select2-dropdown {
  z-index: 9999 !important;
}

/* Ensure Bootstrap dropdowns work properly */
.dropdown-menu {
  z-index: 1050;
}

/* Ensure Select2 doesn't inherit Bootstrap dropdown styles */
.select2-container .select2-selection {
  display: block !important;
}
/* Inline Styling */
/* Overall layout improvements */
.editpage-content {
background: #fff;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
padding: 2rem;
overflow-x: hidden;
}

.product_edit_page {
background: #f8f9fa;
border-radius: 6px;
padding: 1rem 2rem 2rem 2rem !important;
overflow-x: hidden;
}

/* Dark Theme Overrides for App Layout */
html.dark-theme .editpage-content {
background: #1a1a1a !important;
color: #ffffff !important;
}

html.dark-theme .product_edit_page {
background: #000000 !important;
color: #ffffff !important;
}

/* Ensure cards don't overflow */
.card {
overflow: hidden;
word-wrap: break-word;
}

/* Better spacing for form elements */
.form-group {
margin-bottom: 0.75rem !important;
}

/* Improve table responsiveness */
.table-responsive {
border: none;
border-radius: 0.375rem;
}

/* Better button styling */
.btn-sm {
padding: 0.25rem 0.5rem;
font-size: 0.8rem;
}

/* Ensure proper text wrapping */
.text-break {
word-break: break-word;
overflow-wrap: break-word;
hyphens: auto;
}

/* Name input field styling */
#inputName {
min-width: 100%;
white-space: nowrap;
overflow: visible;
text-overflow: unset;
}

.pricing-value {
font-size: 1.1rem;
font-weight: 600;
color: var(--primary-blue);
}

/* Modern Section Headers */
.section-header-modern {
color: var(--primary-blue);
font-size: 1.25rem;
font-weight: 700;
padding-bottom: 0.75rem;
margin-bottom: 1.5rem;
border-bottom: 3px solid var(--primary-blue);
position: relative;
letter-spacing: -0.025em;
}
.text-break {
word-break: break-word;
overflow-wrap: break-word;
hyphens: auto;
}

/* Name input field styling */
#inputName {
min-width: 100%;
white-space: nowrap;
overflow: visible;
text-overflow: unset;
}

/* Enhanced Checkbox Styling */
.compact-checkbox {
display: flex;
align-items: center;
margin-bottom: 0.5rem;
padding: 0.25rem 0.5rem;
border-radius: 4px;
transition: all 0.2s ease;
cursor: pointer;
}

.compact-checkbox:hover {
background-color: rgba(0, 0, 0, 0.05);
}

.compact-checkbox .form-check-input {
width: 1rem;
height: 1rem;
margin-right: 0.5rem;
margin-top: 0;
cursor: pointer;
border: 2px solid #000000;
border-radius: 3px;
background-color: #ffffff;
transition: all 0.2s ease;
}

.compact-checkbox .form-check-input:checked {
background-color: #000000;
border-color: #000000;
}

.compact-checkbox .form-check-input:focus {
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
border-color: #000000;
}

.compact-checkbox .form-label {
font-size: 0.8rem;
font-weight: 500;
color: #000000;
margin-bottom: 0;
cursor: pointer;
line-height: 1.2;
white-space: nowrap;
}

/* Checkbox Grid Layout */
.checkbox-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
gap: 0.5rem;
margin-bottom: 1rem;
}

.checkbox-grid .compact-checkbox {
margin-bottom: 0;
}

/* Modern Users Logs Table Styling */
.users-logs-table {
width: 100%;
table-layout: fixed;
border-collapse: separate;
border-spacing: 0;
background: var(--bg-card);
border-radius: 12px;
overflow: hidden;
box-shadow: var(--shadow-sm);
margin-bottom: 0;
}

.users-logs-table thead {
background: var(--slate-blue);
}

.users-logs-table thead th {
color: var(--text-white);
font-weight: 600;
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.025em;
padding: 0.75rem 0.5rem;
border: none;
vertical-align: middle;
position: sticky;
top: 0;
z-index: 10;
}

.users-logs-table tbody tr {
transition: all 0.2s ease;
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.users-logs-table tbody tr:hover {
background-color: var(--hover-bg);
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.users-logs-table tbody tr:last-child {
border-bottom: none;
}

.users-logs-table tbody td {
padding: 0.875rem 0.75rem;
vertical-align: middle;
font-size: 0.9rem;
color: var(--text-secondary);
border: none;
}

.users-logs-table tbody th {
background: var(--bg-secondary);
font-weight: 600;
color: var(--text-primary);
padding: 0.875rem 0.75rem;
vertical-align: middle;
font-size: 0.9rem;
}

.users-logs-table .comment-cell {
word-break: break-word;
line-height: 1.5;
max-height: 4.5rem;
overflow: hidden;
position: relative;
}

.users-logs-table .comment-cell.expanded {
max-height: none;
}

.users-logs-table .comment-toggle {
color: var(--teal-accent);
font-size: 0.75rem;
cursor: pointer;
text-decoration: none;
margin-top: 0.25rem;
display: inline-block;
font-weight: 500;
transition: all 0.2s ease;
}

.users-logs-table .comment-toggle:hover {
color: var(--primary-blue);
text-decoration: none;
transform: translateX(2px);
}

.users-logs-table .user-cell {
font-weight: 500;
color: var(--primary-blue);
}

.users-logs-table .time-cell {
font-size: 0.75rem;
color: var(--text-light);
white-space: normal;
word-break: break-word;
line-height: 1.3;
}

.users-logs-table .action-cell {
text-align: center;
}

.users-logs-table .btn-sm {
padding: 0.375rem 0.75rem;
font-size: 0.8rem;
border-radius: 8px;
transition: all 0.2s ease;
border-width: 1.5px;
}

.users-logs-table .btn-outline-danger {
color: #dc3545;
border-color: #dc3545;
background-color: transparent;
}

.users-logs-table .btn-outline-danger:hover {
background-color: #dc3545;
border-color: #dc3545;
color: white;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.users-logs-table .btn-outline-danger:active {
transform: translateY(0);
box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

/* Badge styling for entries count */
.users-logs-table-badge {
background: linear-gradient(135deg, var(--primary-blue), var(--slate-blue));
color: white;
padding: 0.375rem 0.875rem;
border-radius: 20px;
font-size: 0.8rem;
font-weight: 600;
box-shadow: 0 2px 8px rgba(45, 74, 115, 0.3);
letter-spacing: 0.025em;
}

/* Modern Button Styling - Theme Consistent */
.btn {
border-radius: 8px;
font-weight: 500;
transition: all 0.3s ease;
border-width: 1.5px;
letter-spacing: 0.025em;
}

/* Primary Buttons (Save, Save & Next) */
.btn-success, .btn-primary {
background: linear-gradient(135deg, var(--primary-blue), var(--slate-blue)) !important;
border-color: var(--primary-blue) !important;
color: white !important;
box-shadow: 0 2px 8px rgba(45, 74, 115, 0.3);
}

.btn-success:hover, .btn-primary:hover {
background: linear-gradient(135deg, var(--slate-blue), var(--primary-blue)) !important;
transform: translateY(-2px);
box-shadow: 0 4px 16px rgba(45, 74, 115, 0.4);
}

.btn-success:active, .btn-primary:active {
transform: translateY(0);
box-shadow: 0 2px 6px rgba(45, 74, 115, 0.3);
}

/* Info Buttons (Previous, Next, View Product, Search on Web) */
.btn-info {
background: linear-gradient(135deg, var(--teal-accent), #055d6a) !important;
border-color: var(--teal-accent) !important;
color: white !important;
box-shadow: 0 2px 8px rgba(4, 107, 122, 0.3);
}

.btn-info:hover {
background: linear-gradient(135deg, #055d6a, var(--teal-accent)) !important;
transform: translateY(-2px);
box-shadow: 0 4px 16px rgba(4, 107, 122, 0.4);
}

.btn-info:active {
transform: translateY(0);
box-shadow: 0 2px 6px rgba(4, 107, 122, 0.3);
}

/* Warning Buttons (Search Images, Search on dwatsoncosmetics) */
.btn-warning {
background: linear-gradient(135deg, #f59e0b, #d97706) !important;
border-color: #f59e0b !important;
color: white !important;
box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
background: linear-gradient(135deg, #d97706, #f59e0b) !important;
transform: translateY(-2px);
box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.btn-warning:active {
transform: translateY(0);
box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

/* Danger Buttons (Generate with AI, Delete, Close) */
.btn-danger {
background: linear-gradient(135deg, #dc3545, #c82333) !important;
border-color: #dc3545 !important;
color: white !important;
box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
background: linear-gradient(135deg, #c82333, #dc3545) !important;
transform: translateY(-2px);
box-shadow: 0 4px 16px rgba(220, 53, 69, 0.4);
}

.btn-danger:active {
transform: translateY(0);
box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

/* Secondary Buttons (Remove Background, etc) */
.btn-secondary {
background: linear-gradient(135deg, var(--cool-gray), #4a5d6a) !important;
border-color: var(--cool-gray) !important;
color: white !important;
box-shadow: 0 2px 8px rgba(90, 109, 122, 0.3);
}

.btn-secondary:hover {
background: linear-gradient(135deg, #4a5d6a, var(--cool-gray)) !important;
transform: translateY(-2px);
box-shadow: 0 4px 16px rgba(90, 109, 122, 0.4);
}

.btn-secondary:active {
transform: translateY(0);
box-shadow: 0 2px 6px rgba(90, 109, 122, 0.3);
}

/* Large buttons */
.btn-lg {
padding: 0.75rem 1.5rem;
font-size: 1rem;
font-weight: 600;
}

/* Image Remove Button Styling */
.remove-btn {
position: absolute;
top: 5px;
right: 5px;
background: linear-gradient(135deg, #dc3545, #c82333);
color: white;
border: none;
border-radius: 50%;
width: 30px;
height: 30px;
font-size: 16px;
font-weight: bold;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
display: flex;
align-items: center;
justify-content: center;
}

.remove-btn:hover {
background: linear-gradient(135deg, #c82333, #a71d2a);
transform: scale(1.1);
box-shadow: 0 4px 12px rgba(220, 53, 69, 0.5);
}

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

/* Drag and Drop Area Styling */
.drag-drop-area {
border: 2px dashed var(--primary-blue);
border-radius: 12px;
padding: 2rem;
text-align: center;
cursor: pointer;
transition: all 0.3s ease;
background: linear-gradient(135deg, rgba(45, 74, 115, 0.03), rgba(58, 91, 160, 0.03));
color: var(--primary-blue);
font-weight: 500;
font-size: 1rem;
}

.drag-drop-area:hover {
border-color: var(--teal-accent);
background: linear-gradient(135deg, rgba(4, 107, 122, 0.05), rgba(45, 74, 115, 0.05));
color: var(--teal-accent);
transform: scale(1.02);
}

.drag-drop-area.dragging {
border-color: var(--mint-green);
background: linear-gradient(135deg, rgba(168, 240, 209, 0.1), rgba(4, 107, 122, 0.1));
color: var(--teal-accent);
}

/* Responsive adjustments for Users Logs Table and Buttons */
@media (max-width: 768px) {
.checkbox-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.25rem;
}

.users-logs-table thead th,
.users-logs-table tbody td,
.users-logs-table tbody th {
  padding: 0.5rem 0.375rem;
  font-size: 0.75rem;
}

.users-logs-table thead th {
  font-size: 0.65rem;
}

.users-logs-table .comment-cell {
  max-height: 3rem;
}

.users-logs-table .time-cell {
  font-size: 0.65rem;
}

.btn-lg {
  padding: 0.625rem 1.25rem;
  font-size: 0.9rem;
}

.drag-drop-area {
  padding: 1.5rem;
  font-size: 0.9rem;
}
}

@media (max-width: 576px) {
.users-logs-table {
  font-size: 0.75rem;
}

.users-logs-table thead th {
  padding: 0.375rem 0.25rem;
  font-size: 0.6rem;
}

.users-logs-table tbody td,
.users-logs-table tbody th {
  padding: 0.375rem 0.25rem;
  font-size: 0.7rem;
}

.users-logs-table .time-cell {
  font-size: 0.6rem;
}

.users-logs-table .btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.65rem;
}

.btn {
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.drag-drop-area {
  padding: 1rem;
  font-size: 0.85rem;
}

.remove-btn {
  width: 25px;
  height: 25px;
  font-size: 14px;
}
}

.compact-checkbox .form-label {
font-size: 0.75rem;
}

.compact-checkbox .form-check-input {
width: 0.9rem;
height: 0.9rem;
margin-right: 0.4rem;
}

/* Status-based styling */
.compact-checkbox.status-enabled .form-check-input:checked {
background-color: #28a745;
border-color: #28a745;
}

.compact-checkbox.status-flag .form-check-input:checked {
background-color: #dc3545;
border-color: #dc3545;
}

.compact-checkbox.status-feature .form-check-input:checked {
background-color: #007bff;
border-color: #007bff;
}

.product_edit_page .card {
border-radius: 10px !important;
margin-bottom: 1rem !important;
}

.form-group {
margin-bottom: 0.5rem !important;
}

.form-label {
font-weight: 500;
color: #000000;
margin-bottom: 0.5rem;
font-size: 0.9rem;
}

.form-control {
border: 1px solid #dce4ec;
border-radius: 4px;
padding: 0.5rem;
transition: border-color 0.15s ease-in-out;
font-size: 0.9rem;
}

.table {
background: white;
border-radius: 6px;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.table thead th {
/* background: #f8f9fa; */
border-bottom: 2px solid #000000;
color: #000000;
font-weight: 600;
text-transform: uppercase;
font-size: 0.75rem;
}

.btn {
font-weight: 500;
padding: 0.5rem 1rem;
border-radius: 4px;
transition: all 0.2s;
}

.alert {
border-radius: 6px;
border: none;
padding: 1rem;
margin: 10px 20px !important;
}

.alert-success {
background-color: #d4edda;
color: #155724;
border-left: 4px solid #28a745;
}

.alert-danger {
background-color: #f8d7da;
color: #721c24;
border-left: 4px solid #dc3545;
}

/* New styles for drag-and-drop area */
.drag-drop-area {
border: 2px dashed #000000;
border-radius: 4px;
padding: 2rem;
text-align: center;
cursor: pointer;
transition: border-color 0.2s ease-in-out;
}

.drag-drop-area.dragover {
border-color: #000000;
}

.image-preview {
display: flex;
flex-wrap: wrap;
gap: 1rem;
margin-top: 1rem;
}

.image-preview img {
max-width: 210px;
border-radius: 4px;
}

.image-preview .img-container {
position: relative;
width: 250px; /* Set a fixed width for the container */
height: auto; /* Set a fixed height for the container */
overflow: hidden; /* Hide overflow content */
display: flex;
flex-direction: column;
align-items: center;
}

.image-preview .remove-btn {
position: relative;
top: 5px;
right: 5px;
background: rgba(255, 0, 0, 0.7);
color: white;
border: none;
border-radius: 50%;
cursor: pointer;
padding: 5px 10px;
}

.image-preview .image-name {
margin-top: 5px;
font-size: 0.9rem;
text-align: center;
word-wrap: break-word; /* Allow text to wrap */
white-space: normal; /* Allow text to wrap to the next line */
overflow: hidden; /* Hide overflow content */
display: -webkit-box;
-webkit-line-clamp: 3; /* Limit to 3 lines */
-webkit-box-orient: vertical;
line-height: 1.2em; /* Adjust line height */
max-height: 3.6em; /* 3 lines * line height */
}

#loader-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
display: flex;
justify-content: center;
align-items: center;
z-index: 9999; /* Ensure it is on top of other elements */
}

#loader {
width: 100px; /* Adjust the size of the loader image */
height: 100px;
}

textarea.form-control {
font-size: 0.9rem;
}

/* Add this style to position the button */
.create-config-btn {
/* position: absolute; */
/* top: 20px;
right: 20px; */
float: right;
z-index: 1000;
}
.abuzar-info {
font-size: 0.95rem;
}
.small-note {
font-size: 0.8rem;
color: #333333; /* Darker text color */
margin-bottom: 10px;
}
.small-note ul {
padding-left: 20px;
margin: 0;
}
.small-note li {
list-style-type: disc;
}
.text-heading {
font-size: 1.5rem !important;
font-weight: 500 !important;
}
#inputName {
width: 40%;
}
.new-product {
border-radius: 5px !important;
float: right !important;
display: flex;
}
.manufacturer_info {
padding: 0 0 0 8px;
}
/* Additional responsive improvements */
@media (max-width: 768px) {
.col-md-4 {
  margin-top: 1rem;
}
}

/* Card spacing improvements */
.product-info {
margin-bottom: 1rem;
}

.product-info:last-child {
margin-bottom: 0;
}

/* Better button spacing */
.btn {
margin-bottom: 0.5rem;
}

.btn:last-child {
margin-bottom: 0;
}
/* Ensure the modal content doesn't overflow */
.modal-dialog {
max-width: 90%; /* Adjust the modal width to fit the screen */
margin: auto;
}

.modal-content {
overflow: hidden; /* Prevent content from overflowing */
}

.image-editor-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
max-width: 100%; /* Ensure the image editor fits within the modal */
overflow: hidden;
}

.image-editor-sliders {
display: flex;
justify-content: space-between;
width: 100%; /* Ensure sliders fit within the modal */
padding: 10px;
box-sizing: border-box;
}

.image-editor-sliders input[type="range"] {
flex: 1;
margin: 0 10px;
}
@media (max-width: 768px) {
.modal-dialog {
  max-width: 100%; /* Use full width on smaller screens */
  margin: 10px;
}

.image-editor-sliders {
  flex-direction: column; /* Stack sliders vertically on smaller screens */
  align-items: center;
}

.image-editor-sliders input[type="range"] {
  margin: 10px 0;
}
}

/* Manufacturers Modern Styling */
.manufacturers-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-top: 0.5rem;
  position: relative;
  z-index: 1;
}

.manufacturers-header-text {
  flex: 1;
}

.manufacturers-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--primary-blue);
}

.manufacturers-subtitle {
  font-size: 1rem;
  opacity: 0.7;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0;
}

.manufacturers-container {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.manufacturers-container:hover {
  box-shadow: var(--shadow-md);
}

.manufacturers-table {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.manufacturers-table thead th {
  background: var(--slate-blue);
  color: white;
  font-weight: 600;
  padding: 1rem 0.75rem;
  border: none;
  font-size: 0.875rem;
}

.manufacturers-table tbody td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
  font-size: 0.875rem;
  font-weight: 500;
}

.manufacturers-table tbody tr:hover {
  background: var(--hover-bg);
  transition: background 0.2s ease;
}

.manufacturers-table tbody tr:nth-child(even) {
  background: var(--bg-secondary);
}

.manufacturers-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.manufacturers-link:hover {
  color: var(--teal-accent);
  text-decoration: none;
}

.manufacturers-search-icon {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(45, 74, 115, 0.1);
}

.manufacturers-search-icon:hover {
  color: white;
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary-blue), var(--teal-accent));
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(45, 74, 115, 0.3);
}

.manufacturers-edit-icon {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(45, 74, 115, 0.1);
}

.manufacturers-edit-icon:hover {
  color: white;
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary-blue), var(--teal-accent));
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(45, 74, 115, 0.3);
}

.sync-button {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.sync-button:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.sync-button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Alert Styling */
.alert {
  border-radius: 12px;
  border: none;
  box-shadow: var(--shadow-sm);
  margin: 10px 20px !important;
}

.alert-success {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
  border-left: 4px solid #10b981;
}

.alert-danger {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
  border-left: 4px solid #ef4444;
}

/* DataTables Styling */
.dataTables_wrapper {
  font-family: var(--font-primary);
}

.dataTables_length {
  margin-bottom: 1rem;
}

.dataTables_length label {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.dataTables_length select {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 0.875rem;
  background: var(--bg-card);
  color: var(--text-primary);
  margin: 0 0.5rem;
}

.dataTables_length select:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(45, 74, 115, 0.1);
  outline: none;
}

.dataTables_filter {
  margin-bottom: 1rem;
}

.dataTables_filter label {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.dataTables_filter input {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  background: var(--bg-card);
  color: var(--text-primary);
  margin-left: 0.5rem;
  width: 200px;
}

.dataTables_filter input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(45, 74, 115, 0.1);
  outline: none;
}

.dataTables_info {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 1rem;
}

.dataTables_paginate {
  margin-top: 1rem;
}

.dataTables_paginate .paginate_button {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  margin: 0 0.1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.dataTables_paginate .paginate_button:hover {
  background: linear-gradient(135deg, var(--primary-blue), var(--teal-accent));
  color: white;
  border-color: var(--primary-blue);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.dataTables_paginate .paginate_button.current {
  background: linear-gradient(135deg, var(--primary-blue), var(--teal-accent));
  color: white;
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.dataTables_paginate .paginate_button.disabled {
  background: var(--bg-secondary);
  color: var(--text-light);
  border-color: var(--border-light);
  cursor: not-allowed;
  opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .manufacturers-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
      margin-bottom: 1rem;
  }
  
  .manufacturers-title {
      font-size: 1.5rem;
  }
  
  .manufacturers-subtitle {
      font-size: 0.95rem;
  }
  
  .sync-button {
      width: 100%;
      justify-content: center;
  }
  
  .manufacturers-container {
      padding: 1.5rem;
  }
  
  .manufacturers-table thead th {
      padding: 0.75rem 0.5rem;
      font-size: 0.8rem;
  }
  
  .manufacturers-table tbody td {
      padding: 0.6rem 0.5rem;
      font-size: 0.8rem;
  }
  
  .manufacturers-search-icon,
  .manufacturers-edit-icon {
      width: 35px;
      height: 35px;
  }
  
  .manufacturers-search-icon i,
  .manufacturers-edit-icon i {
      font-size: 1rem !important;
  }
  
  .sync-button {
      width: 100%;
      margin-bottom: 1rem;
      padding: 0.875rem 1.5rem;
      font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .manufacturers-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.75rem;
      margin-bottom: 1rem;
  }
  
  .manufacturers-title {
      font-size: 1.25rem;
  }
  
  .manufacturers-subtitle {
      font-size: 0.875rem;
  }
  
  .sync-button {
      width: 100%;
      justify-content: center;
  }
  
  .manufacturers-container {
      padding: 1rem;
  }
  
  .manufacturers-table thead th {
      padding: 0.5rem 0.25rem;
      font-size: 0.75rem;
  }
  
  .manufacturers-table tbody td {
      padding: 0.5rem 0.25rem;
      font-size: 0.75rem;
  }
  
  .manufacturers-search-icon,
  .manufacturers-edit-icon {
      width: 32px;
      height: 32px;
  }
  
  .manufacturers-search-icon i,
  .manufacturers-edit-icon i {
      font-size: 0.9rem !important;
  }
  
  .dataTables_length select,
  .dataTables_filter input {
      font-size: 0.8rem;
      padding: 0.3rem 0.5rem;
  }
  
  .dataTables_filter input {
      width: 150px;
  }
}

/* Categories Page Modern Styling */
.categories-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-top: 0.5rem;
  position: relative;
  z-index: 1;
}

.categories-header-text {
  flex: 1;
}

.categories-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--primary-blue);
}

.categories-subtitle {
  font-size: 1rem;
  opacity: 0.7;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0;
}

.categories-container {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.categories-container:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.categories-table {
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
}

.categories-table thead th {
  background: var(--slate-blue);
  color: white;
  border: none;
  font-weight: 600;
  padding: 1rem 0.75rem;
  font-size: 0.875rem;
}

.categories-table tbody td {
  border-color: var(--border-light);
  padding: 0.75rem;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.875rem;
}

.categories-table tbody tr:nth-child(even) {
  background: rgba(90, 109, 122, 0.05);
}

.categories-table tbody tr {
  transition: all 0.2s ease;
}

.categories-table tbody tr:hover {
  background: var(--hover-bg);
  transform: scale(1.01);
}

.categories-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(45, 74, 115, 0.1);
}

.categories-link:hover {
  color: white;
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary-blue), var(--teal-accent));
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(45, 74, 115, 0.3);
}

.sync-button {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.sync-button:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.sync-button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.section-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.section-header .text-muted {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* DataTables Styling */
.dataTables_wrapper {
  font-family: var(--font-primary);
}

.dataTables_length {
  margin-bottom: 1rem;
}

.dataTables_length label {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.75rem;
}

.dataTables_length select {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  background: var(--bg-card);
  color: var(--text-primary);
  margin: 0 0.5rem;
  transition: all 0.2s ease;
}

.dataTables_length select:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(45, 74, 115, 0.1);
  outline: none;
}

.dataTables_filter {
  margin-bottom: 1rem;
}

.dataTables_filter label {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.75rem;
}

.dataTables_filter input {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  background: var(--bg-card);
  color: var(--text-primary);
  margin-left: 0.5rem;
  width: 200px;
  transition: all 0.2s ease;
}

.dataTables_filter input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(45, 74, 115, 0.1);
  outline: none;
}

.dataTables_info {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 1rem;
}

.dataTables_paginate {
  margin-top: 1rem;
  text-align: center;
}

.dataTables_paginate .paginate_button {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  margin: 0 0.25rem;
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.75rem;
  transition: all 0.3s ease;
  display: inline-block;
  min-width: 40px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.dataTables_paginate .paginate_button:hover {
  background: linear-gradient(135deg, var(--primary-blue), var(--teal-accent));
  color: white;
  border-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.dataTables_paginate .paginate_button.current {
  background: linear-gradient(135deg, var(--primary-blue), var(--teal-accent));
  color: white;
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.dataTables_paginate .paginate_button.disabled {
  background: var(--bg-secondary);
  color: var(--text-light);
  border-color: var(--border-light);
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
  box-shadow: none;
}

.dataTables_paginate .paginate_button.disabled:hover {
  background: var(--bg-secondary);
  color: var(--text-light);
  border-color: var(--border-light);
  transform: none;
  box-shadow: none;
}

/* Pagination ellipsis styling */
.dataTables_paginate .paginate_button.ellipsis {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: bold;
  cursor: default;
}

.dataTables_paginate .paginate_button.ellipsis:hover {
  background: transparent;
  color: var(--text-secondary);
  transform: none;
  box-shadow: none;
}

/* Alert Styling */
.alert {
  border: none;
  border-radius: 12px;
  font-weight: 500;
  margin: 10px 20px !important;
  padding: 1rem 1.5rem;
}

.alert-success {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
  border-left: 4px solid #10b981;
}

.alert-danger {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
  border-left: 4px solid #ef4444;
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
  .categories-container {
      padding: 1.25rem;
  }
  
  .categories-table thead th {
      padding: 0.75rem 0.5rem;
      font-size: 0.8rem;
  }
  
  .categories-table tbody td {
      padding: 0.5rem;
      font-size: 0.875rem;
  }
}

@media (max-width: 992px) {
  .categories-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
  }
  
  .categories-title {
      font-size: 1.75rem;
  }
  
  .categories-subtitle {
      font-size: 1rem;
  }
  
  .sync-button {
      padding: 0.75rem 1.25rem;
      font-size: 0.9rem;
  }
  
  .section-header h3 {
      font-size: 1rem;
  }
  
  .section-header .text-muted {
      font-size: 0.75rem;
  }
  
  .categories-table thead th {
      padding: 0.75rem 0.25rem;
      font-size: 0.75rem;
  }
  
  .categories-table tbody td {
      padding: 0.5rem 0.25rem;
      font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .container-fluid {
      padding: 1rem !important;
  }
  
  .categories-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
      margin-bottom: 1rem;
  }
  
  .categories-title {
      font-size: 1.5rem;
      margin-bottom: 0.25rem;
  }
  
  .categories-subtitle {
      font-size: 0.95rem;
  }
  
  .sync-button {
      width: 100%;
      justify-content: center;
  }
  
  .categories-container {
      padding: 1rem;
      margin: 0;
  }
  
  .sync-button {
      width: 100%;
      margin-bottom: 1rem;
      padding: 0.875rem 1.5rem;
      font-size: 0.95rem;
  }
  
  .section-header h3 {
      font-size: 0.9rem;
  }
  
  .section-header .text-muted {
      font-size: 0.7rem;
  }
  
  .categories-table {
      font-size: 0.8rem;
  }
  
  .categories-table thead th {
      padding: 0.5rem 0.25rem;
      font-size: 0.7rem;
      white-space: nowrap;
  }
  
  .categories-table tbody td {
      padding: 0.5rem 0.25rem;
      font-size: 0.75rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
  }
  
  .categories-link {
      width: 35px;
      height: 35px;
      font-size: 1rem;
  }
  
  .categories-link i {
      font-size: 1rem !important;
  }
  
  /* Hide info text on mobile */
  .categories-container .text-muted {
      display: none;
  }
  
  /* DataTables responsive styling */
  .dataTables_length,
  .dataTables_filter {
      margin-bottom: 0.75rem;
  }
  
  .dataTables_length label,
  .dataTables_filter label {
      font-size: 0.7rem;
  }
  
  .dataTables_length select {
      padding: 0.25rem 0.4rem;
      font-size: 0.7rem;
      margin: 0 0.25rem;
  }
  
  .dataTables_filter input {
      padding: 0.3rem 0.5rem;
      font-size: 0.7rem;
      width: 150px;
      margin-left: 0.25rem;
  }
  
  .dataTables_info {
      font-size: 0.7rem;
      margin-top: 0.75rem;
  }
  
  .dataTables_paginate {
      margin-top: 0.75rem;
  }
  
  .dataTables_paginate .paginate_button {
      padding: 0.4rem 0.6rem;
      font-size: 0.7rem;
      margin: 0 0.15rem;
      min-width: 35px;
  }
  
  /* Hide less important columns on mobile */
  .categories-table th:nth-child(2),
  .categories-table td:nth-child(2) {
      display: none;
  }
}

@media (max-width: 576px) {
  .container-fluid {
      padding: 0.75rem !important;
  }
  
  .categories-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.75rem;
      margin-bottom: 1rem;
  }
  
  .categories-title {
      font-size: 1.25rem;
  }
  
  .categories-subtitle {
      font-size: 0.875rem;
  }
  
  .sync-button {
      width: 100%;
      justify-content: center;
  }
  
  .categories-container {
      padding: 0.75rem;
  }
  
  .sync-button {
      padding: 0.75rem 1rem;
      font-size: 0.9rem;
  }
  
  .section-header h3 {
      font-size: 0.85rem;
  }
  
  .section-header .text-muted {
      font-size: 0.65rem;
  }
  
  .categories-table thead th {
      padding: 0.4rem 0.15rem;
      font-size: 0.65rem;
  }
  
  .categories-table tbody td {
      padding: 0.4rem 0.15rem;
      font-size: 0.7rem;
  }
  
  /* Hide more columns on very small screens */
  .categories-table th:nth-child(4),
  .categories-table td:nth-child(4) {
      display: none;
  }
  
  .categories-link {
      width: 32px;
      height: 32px;
  }
  
  .categories-link i {
      font-size: 0.9rem !important;
  }
  
  /* DataTables responsive styling for small screens */
  .dataTables_length,
  .dataTables_filter {
      margin-bottom: 0.5rem;
  }
  
  .dataTables_length label,
  .dataTables_filter label {
      font-size: 0.65rem;
  }
  
  .dataTables_length select {
      padding: 0.2rem 0.3rem;
      font-size: 0.65rem;
      margin: 0 0.2rem;
  }
  
  .dataTables_filter input {
      padding: 0.25rem 0.4rem;
      font-size: 0.65rem;
      width: 120px;
      margin-left: 0.2rem;
  }
  
  .dataTables_info {
      font-size: 0.65rem;
      margin-top: 0.5rem;
  }
  
  .dataTables_paginate {
      margin-top: 0.5rem;
  }
  
  .dataTables_paginate .paginate_button {
      padding: 0.3rem 0.4rem;
      font-size: 0.65rem;
      margin: 0 0.1rem;
      min-width: 30px;
  }
}

@media (max-width: 480px) {
  .categories-title {
      font-size: 1.125rem;
  }
  
  .categories-subtitle {
      font-size: 0.825rem;
  }
  
  .section-header h3 {
      font-size: 0.8rem;
  }
  
  .section-header .text-muted {
      font-size: 0.6rem;
  }
  
  .categories-table thead th {
      padding: 0.3rem 0.1rem;
      font-size: 0.6rem;
  }
  
  .categories-table tbody td {
      padding: 0.3rem 0.1rem;
      font-size: 0.65rem;
  }
  
  /* Show only essential columns on very small screens */
  .categories-table th:nth-child(1),
  .categories-table td:nth-child(1),
  .categories-table th:nth-child(3),
  .categories-table td:nth-child(3),
  .categories-table th:nth-child(6),
  .categories-table td:nth-child(6) {
      display: table-cell;
  }
  
  .categories-table th:nth-child(2),
  .categories-table td:nth-child(2),
  .categories-table th:nth-child(4),
  .categories-table td:nth-child(4),
  .categories-table th:nth-child(5),
  .categories-table td:nth-child(5) {
      display: none;
  }
  
  /* DataTables responsive styling for very small screens */
  .dataTables_length,
  .dataTables_filter {
      margin-bottom: 0.4rem;
  }
  
  .dataTables_length label,
  .dataTables_filter label {
      font-size: 0.6rem;
  }
  
  .dataTables_length select {
      padding: 0.15rem 0.25rem;
      font-size: 0.6rem;
      margin: 0 0.1rem;
  }
  
  .dataTables_filter input {
      padding: 0.2rem 0.3rem;
      font-size: 0.6rem;
      width: 80px;
      margin-left: 0.1rem;
  }
  
  .dataTables_info {
      font-size: 0.6rem;
      margin-top: 0.3rem;
  }
  
  .dataTables_paginate {
      margin-top: 0.3rem;
  }
  
  .dataTables_paginate .paginate_button {
      padding: 0.2rem 0.25rem;
      font-size: 0.6rem;
      margin: 0 0.02rem;
      min-width: 25px;
  }
}

/* Trending Categories Styling */
#sortable {
  min-height: 20px;
  list-style-type: none;
  padding-left: 0;
}

.sortable-item {
  cursor: move;
  cursor: grab;
  user-select: none;
}

.sortable-item:active {
  cursor: grabbing;
}

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

.ui-sortable-helper {
  background-color: #f8f9fa !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transform: rotate(2deg);
}

.ui-sortable-placeholder {
  background-color: #e9ecef !important;
  border: 2px dashed #dee2e6 !important;
  visibility: visible !important;
  height: 48px !important;
}

.category-image-item {
  transition: all 0.3s ease;
}

.category-image-item:hover {
  transform: translateY(-5px);
}

.image-container {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
}

.image-container:hover {
  border-color: #007bff;
}

.object-fit-cover {
  object-fit: cover;
}

.max-limit-reached {
  border-color: #dc3545 !important;
  background-color: #f8d7da !important;
}

.selection-warning {
  color: #dc3545;
  font-weight: bold;
}

/* Top Brands Carousel Styling */
/* Website Carousel Styles */
.brands-carousel {
  position: relative;
  padding: 50px 0;
}

.carousel-container {
  overflow: hidden;
  border-radius: 12px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 15px;
}

/* Website Specific */
.website-look .carousel-track {
  padding: 10px;
}

.website-look .brand-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  min-width: 150px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e9ecef;
}

.website-look .brand-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.website-look .brand-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 10px;
  border-radius: 8px;
}

.website-look .brand-image.placeholder {
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 24px;
}

.website-look .brand-name {
  font-weight: 600;
  color: #333;
  font-size: 14px;
  margin-top: 8px;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.carousel-prev, .carousel-next {
  background: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  pointer-events: all;
  transition: all 0.3s ease;
}

.carousel-prev:hover, .carousel-next:hover {
  background: #007bff;
  color: white;
  transform: scale(1.1);
}

/* Mobile App Styles */
.mobile-carousel-preview {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 300px;
  background: #333;
  border-radius: 30px;
  padding: 5px 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  position: relative;
}

.phone-header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  position: relative;
  margin-bottom: 10px;
}

.speaker {
  width: 60px;
  height: 6px;
  background: #222;
  border-radius: 3px;
}

.camera {
  width: 12px;
  height: 12px;
  background: #222;
  border-radius: 50%;
  position: absolute;
  right: 80px;
}

.phone-screen {
  background: white;
  border-radius: 20px;
  height: 400px;
  overflow: hidden;
  position: relative;
}

.phone-home {
  width: 40px;
  height: 40px;
  background: #333;
  border-radius: 50%;
  margin: 15px auto 0;
}

.mobile-look .brands-carousel {
  height: 100%;
  padding: 0;
}

.mobile-look .carousel-container {
  height: 100%;
}

.mobile-look .carousel-track {
  height: 100%;
  padding: 0;
}

.mobile-look .carousel-slide {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.mobile-look .brand-card {
  text-align: center;
  width: 100%;
}

.mobile-look .brand-image {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 20px;
  border-radius: 12px;
}

.mobile-look .brand-image.placeholder {
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 32px;
  border: 2px dashed #dee2e6;
}

.mobile-look .brand-name {
  font-weight: 600;
  color: #333;
  font-size: 18px;
  margin-top: 15px;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #007bff;
  transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
  .phone-mockup {
      width: 250px;
  }
  
  .phone-screen {
      height: 350px;
  }
}
/* Banners CMS Styling */
/* Banners Modern Styling */
.banners-header {
  margin-bottom: 1.5rem;
  padding-top: 0.5rem;
  position: relative;
  z-index: 1;
}

.banners-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--primary-blue);
}

.banners-subtitle {
  font-size: 1rem;
  opacity: 0.7;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0;
}

.banners-container {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.banners-container:hover {
  box-shadow: var(--shadow-md);
}

.banners-table {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.banners-table thead th {
  background: var(--slate-blue);
  color: white;
  font-weight: 600;
  padding: 1rem 0.75rem;
  border: none;
  font-size: 0.875rem;
}

.banners-table tbody td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Table cell styling for form elements */
.banners-table tbody td .form-control {
  margin-bottom: 0;
  font-size: 0.85rem;
}

.banners-table tbody td .update-button {
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  height: auto;
  min-height: calc(1.5em + 0.8rem + 2px);
}

.banners-table tbody tr:hover {
  background: var(--hover-bg);
  transition: background 0.2s ease;
}

.banners-table tbody tr:nth-child(even) {
  background: var(--bg-secondary);
}

.banners-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.banners-link:hover {
  color: var(--teal-accent);
  text-decoration: none;
}

.submit-button {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: white;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
}

.submit-button:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.submit-button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.update-button {
  background: linear-gradient(135deg, var(--primary-blue), var(--teal-accent));
  border: none;
  color: white;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
}

.update-button:hover {
  background: linear-gradient(135deg, var(--teal-accent), var(--primary-blue));
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: white;
}

.update-button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Enhanced enabled toggle switches */
.form-check-input.js-enabled-toggle {
  width: 2.5rem !important;
  height: 1.5rem !important;
  border-radius: 1rem !important;
  background-color: #dc3545 !important;
  border: 2px solid #dc3545 !important;
  transition: all 0.3s ease !important;
}

.form-check-input.js-enabled-toggle:checked {
  background-color: #198754 !important;
  border-color: #198754 !important;
}

.form-check-input.js-enabled-toggle:focus {
  box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25) !important;
}

.js-enabled-label {
  font-weight: 600 !important;
  font-size: 0.9rem !important;
}

.form-control {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.375rem 0.75rem;
  font-size: 0.9rem;
  background: var(--bg-card);
  color: var(--text-primary);
  transition: all 0.2s ease;
  height: calc(1.5em + 0.75rem + 2px);
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(45, 74, 115, 0.1);
  outline: none;
  background: var(--bg-card);
}

.form-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-check-input {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
}

.form-check-input:checked {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.form-check-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(45, 74, 115, 0.1);
}

.section-header {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.banner-image {
  max-height: 120px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

/* Custom File Upload Button Styling */
.custom-file-input {
  position: relative;
  display: inline-block;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  text-align: center;
  min-width: 120px;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Left align for Upload New Banner section */
.upload-section .custom-file-input {
  text-align: left;
  padding-left: 0.75rem;
}

/* Smaller containers for Existing Banners table */
.existing-banners .custom-file-input {
  min-width: 100px;
  width: 100%;
  height: 38px;
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-file-input:hover {
  background: #f8fafc;
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.custom-file-input:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.custom-file-input input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  top: 0;
  left: 0;
}

.custom-file-input::before {
  content: "Upload File";
  display: block;
  font-weight: 600;
}

.custom-file-input.has-file::before {
  content: "File Selected";
  color: #059669;
  font-weight: 600;
}

/* Hide default file input styling */
/* .form-control[type="file"] {
  display: none;
} */

/* Ensure consistent table cell sizing for upload columns */
.existing-banners .banners-table tbody td:nth-child(8),
.existing-banners .banners-table tbody td:nth-child(9) {
  width: 15%;
  padding: 0.5rem;
  vertical-align: middle;
}

/* Responsive Design */
@media (max-width: 768px) {
  .banners-header {
      margin-bottom: 1rem;
  }
  
  .banners-title {
      font-size: 1.5rem;
  }
  
  .banners-subtitle {
      font-size: 0.95rem;
  }
  
  .banners-container {
      padding: 1.5rem;
  }
  
  .banners-table thead th {
      padding: 0.75rem 0.5rem;
      font-size: 0.8rem;
  }
  
  .banners-table tbody td {
      padding: 0.6rem 0.5rem;
      font-size: 0.8rem;
  }
  
  .banner-image {
      max-height: 80px;
  }
}

@media (max-width: 576px) {
  .banners-header {
      margin-bottom: 1rem;
  }
  
  .banners-title {
      font-size: 1.25rem;
  }
  
  .banners-subtitle {
      font-size: 0.875rem;
  }
  
  .banners-container {
      padding: 1rem;
  }
  
  .banners-table thead th {
      padding: 0.5rem 0.25rem;
      font-size: 0.75rem;
  }
  
  .banners-table tbody td {
      padding: 0.5rem 0.25rem;
      font-size: 0.75rem;
  }
  
  .form-control {
      font-size: 0.8rem;
      padding: 0.375rem 0.6rem;
      height: calc(1.5em + 0.75rem + 2px);
  }
  
  .banner-image {
      max-height: 60px;
  }
}
/* Trending Keywords Styling */

.keyword-item {
  transition: all 0.3s ease;
}
.keyword-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.keyword-badge {
  cursor: pointer;
}
.btn-close {
  font-size: 0.7rem;
}
.alert {
  border: none;
  border-radius: 8px;
  margin: 10px 20px !important;
}
.swal2-confirm.btn.btn-danger {
  margin-left: 5px;
}

.banners-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-top: 0.5rem;
  position: relative;
  z-index: 1;
}

.banners-header-text {
  flex: 1;
}

.homepage-sync-button {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
