.baads-ad-wrapper {
  display: inline-block;
  text-align: center;
  margin: 15px auto;
  max-width: 100%;
  width: auto;
  height: auto;
}

.baads-ad-wrapper img,
.baads-ad-wrapper video,
.baads-ad-wrapper iframe {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.baads-ad-wrapper a {
  text-decoration: none;
  border: none;
  outline: none;
  box-shadow: none;
}

.baads-ad-wrapper a:hover {
  opacity: 0.9;
}

.baads-sponsored-label {
  display: block;
  font-size: 10px;
  color: #999;
  text-transform: uppercase;
  font-family: sans-serif;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
  text-align: center;
  width: 100%;
}

.baads-zone {
  text-align: center;
  margin: 20px 0;
}

.baads-grid {
  display: grid;
  gap: 15px;
  margin: 20px 0;
  width: 100%;
}

.baads-grid-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.baads-grid-item img {
  max-width: 100%;
  height: auto;
}

.baads-grid-2x1 {
  grid-template-columns: 1fr 1fr;
}

.baads-grid-2x2 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
}

.baads-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.baads-grid-large-small {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: stretch;
  gap: 20px;

}

.baads-grid-item-large .baads-ad-wrapper img {
  max-height: 250px;
  width: auto;
}

.baads-grid-item-small .baads-ad-wrapper img {
  max-height: 120px;
  width: auto;
}

.baads-grid-vertical {
  grid-template-columns: 1fr;
  max-width: 300px;
  margin: 0 auto;
}

.baads-grid-vertical .baads-grid-item {
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .baads-grid-2x1,
  .baads-grid-2x2,
  .baads-grid-3,
  .baads-grid-large-small {
    grid-template-columns: 1fr;
  }

  .baads-grid-item-large .baads-ad-wrapper img,
  .baads-grid-item-small .baads-ad-wrapper img {
    max-height: none;
    width: 100%;
    height: auto;
  }
}

.baads-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 20px auto;
  overflow: hidden;
}

.baads-carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.baads-carousel-item {
  display: none;
  float: left;
  width: 100%;
  text-align: center;
  padding: 10px;
  transition: opacity 0.5s ease-in-out;
}

.baads-carousel-item.active,
.baads-carousel-item:first-child {
  display: block;
}

.baads-carousel-item img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.baads-carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  font-size: 20px;
  border-radius: 3px;
  transition: background 0.3s;
}

.baads-carousel-control:hover {
  background: rgba(0, 0, 0, 0.8);
}

.baads-carousel-prev {
  left: 10px;
}

.baads-carousel-next {
  right: 10px;
}

.baads-carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.baads-carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.baads-carousel-indicator.active {
  background: #fff;
}

.baads-carousel-indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
  .baads-carousel-control {
    padding: 8px 12px;
    font-size: 16px;
  }
}

.baads-zone-sidebar {
  margin: 20px 0;
}

.baads-zone-header {
  margin: 10px 0;
  text-align: center;
}

.baads-zone-footer {
  margin: 20px 0;
  text-align: center;
}

.baads-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
}

.baads-modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 20px;
  z-index: 10000;
  width: 80%;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: none;
}

.baads-modal-content.hidden,
.baads-modal-overlay.hidden {
  display: none !important;
}

.baads-modal-content.visible,
.baads-modal-overlay.visible {
  display: block !important;
}

.baads-stat-card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin-bottom: 20px;
}

.baads-stat-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #555;
}

.baads-stat-card .stat-number {
  font-size: 28px;
  font-weight: bold;
  color: #0073aa;
  margin: 0;
}

.baads-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.baads-dashboard-sections {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.baads-section {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .baads-dashboard-sections {
    grid-template-columns: 1fr;
  }
}

.status-active {
  color: #008000;
  font-weight: bold;
}

.status-inactive {
  color: #888;
}

.status-scheduled {
  color: #ff6600;
}

.shortcode-info {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 5px;
  border: 1px solid #ddd;
}

.shortcode-info code {
  background: #e0e0e0;
  padding: 2px 5px;
  border-radius: 3px;
  display: block;
  margin-bottom: 10px;
  word-break: break-all;
}
