.generator-container {
  padding: 20px;
}
.generator-container .settings-panel {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.editor-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  background: #e9ecef;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  overflow: scroll;
}
.editor-container #canvas {
  border: 2px solid #6c757d;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.background-item {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 10px;
  transition: all 0.3s ease;
  text-align: center;
}
.background-item:hover {
  border-color: #007bff;
  transform: scale(1.05);
}
.background-item.selected {
  border-color: #28a745;
  background-color: #d4edda;
}
.background-item img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.offer-item {
  position: relative;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}
.offer-item:hover {
  border-color: #007bff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.offer-item.selected {
  border-color: #28a745;
  background-color: #d4edda;
}
.offer-item .offer-image {
  width: 100%;
  margin-bottom: 10px;
}
.offer-item .offer-title {
  font-weight: 600;
  margin-bottom: 5px;
}
.offer-item .offer-price {
  color: #28a745;
  font-size: 18px;
  font-weight: bold;
}

.canvas-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
}
.canvas-controls .btn {
  margin-left: 5px;
  padding: 5px 10px;
  font-size: 12px;
}

.text-controls,
.offer-group-controls {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #dee2e6;
}
.text-controls input[type=color],
.offer-group-controls input[type=color] {
  position: relative;
  top: 12px;
  width: 40px;
  height: 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#background-darkness {
  margin-bottom: 5px;
}

.modal-dialog {
  max-width: 90%;
}

.pagination-wrapper {
  margin-top: 2rem;
}

.pagination {
  gap: 4px;
  border-top: 0 !important;
}

.page-link {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #374151;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.875rem;
  min-width: 40px;
  text-align: center;
  transition: all 0.2s ease;
}
.page-link:hover {
  background: #f9fafb;
  color: #111827;
  text-decoration: none;
  border-color: #d1d5db;
}

.page-item.active .page-link {
  background: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
}
.page-item.disabled .page-link {
  background: #f9fafb;
  color: #9ca3af;
  cursor: not-allowed;
  border-color: #e5e7eb;
}
.page-item.disabled .page-link:hover {
  background: #f9fafb;
  color: #9ca3af;
  border-color: #e5e7eb;
}

@media (max-width: 768px) {
  .generator-container {
    padding: 10px;
  }
  .generator-container .settings-panel {
    padding: 15px;
  }
  .generator-container .settings-panel .row > div {
    margin-bottom: 15px;
  }
  .generator-container .editor-container {
    padding: 10px;
    height: 70vh;
    overflow: auto;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #ccc;
    position: relative;
  }
  .generator-container .editor-container #canvas {
    max-width: none;
    height: auto;
    display: block;
  }
  .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }
  .page-link {
    padding: 8px 8px;
    font-size: 0.75rem;
    min-width: 36px;
  }
}

