.ah-slider {
  width: 100%;
  height: 500px;
  position: relative;
  overflow: hidden;
}

.ah-slider .slide {
  width: 100%;
  height: 100%;
  position: absolute;
  display: none;
}

.ah-slider .slide:first-child {
  display: block;
}

.ah-slider .slide-picture {
  width: 100%;
  height: 100%;
  display: block;
}

.ah-slider .slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ah-slider .slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}

.ah-slider .slide-text {
  display: block;
  margin-bottom: 20px;
  text-transform: uppercase;
  text-shadow: rgba(0, 0, 0, 0.5) 0px 0px 80px;
  color: #fff;
  font-size: 80px;
  line-height: 80px;
  letter-spacing: 2px;
  font-weight: 700;
}

.ah-slider .slide-button {
  display: inline-block;
  padding: 17px 50px;
  margin-top: 20px;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  font-family: Roboto;
  font-size: 16px;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 30px;
  transition: background-color 0.3s;
}

.ah-slider .slide-button:hover {
  background: rgba(255, 255, 255, 0.95);
  color: black;
}

.ah-slider-navigation span {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
  z-index: 3;
}

.ah-slider-prev {
  left: 0;
  border-radius: 0 3px 3px 0;
}

.ah-slider-next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.ah-slider-indicators {
  text-align: center;
  position: absolute;
  bottom: 20px;
  width: 100%;
  z-index: 3;
}

.ah-slider-dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.ah-slider-dot.active {
  background-color: #717171;
}

@media (max-width: 768px) {
  .ah-slider {
    height: 400px;
  }
  .ah-slider .slide-text {
    font-size: 40px;
    line-height: 40px;
  }
  .ah-slider .slide-button {
    padding: 8px 16px;
    font-size: 14px;
  }
  .ah-slider-navigation span {
    font-size: 18px;
    padding: 10px;
  }
}

/* New card-based admin panel styles inspired by WordPress patterns */

/* Main admin card container */
.ah-admin-card {
  background: #fff;
  border: 1px solid #c3c4c7;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  margin: 20px 0;
}

.ah-admin-card > h2 {
  margin: 0;
  padding: 15px 20px;
  border-bottom: 1px solid #c3c4c7;
  background: #f6f7f7;
  font-size: 14px;
  font-weight: 600;
  color: #1d2327;
}

.ah-admin-card > form {
  padding: 20px;
}

/* Form layout: images left, inputs right */
.ah-form-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  background: #fff;
}

@media (max-width: 782px) {
  .ah-form-layout {
    grid-template-columns: 1fr;
  }
}

/* Images column */
.ah-form-images {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ah-image-item {
  background: #f6f7f7;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  padding: 12px;
}

.ah-image-item label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: #1d2327;
  font-weight: 600;
}

.ah-image-item .required {
  color: #d63638;
}

.ah-image-item .optional {
  color: #646970;
  font-weight: normal;
  font-size: 11px;
}

/* Image preview box - very small */
.ah-image-preview {
  position: relative;
  width: 100%;
  height: 100px;
  border: 2px dashed #c3c4c7;
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 8px;
}

.ah-image-preview img {
  max-width: 100%;
  max-height: 96px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.ah-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #a7aaad;
}

.ah-image-placeholder .dashicons {
  font-size: 36px;
  width: 36px;
  height: 36px;
  opacity: 0.4;
}

/* Remove image button */
.ah-remove-image {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #d63638;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  transition: background 0.2s;
  padding: 0;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.ah-remove-image:hover {
  background: #b32d2e;
}

/* Upload button */
.ah-upload-btn {
  width: 100%;
  font-size: 11px;
  padding: 4px 8px;
  height: auto;
  line-height: 1.4;
}

/* Inputs column */
.ah-form-inputs {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #f6f7f7;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  padding: 20px;
}

.ah-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ah-input-group label {
  font-size: 13px;
  font-weight: 600;
  color: #1d2327;
}

.ah-input-group input {
  width: 100%;
  max-width: 100%;
}

/* Submit area */
.ah-submit-area {
  margin-top: 10px;
  padding-top: 15px;
  border-top: 1px solid #c3c4c7;
  display: flex;
  gap: 10px;
}

/* Empty state */
.ah-empty-state {
  text-align: center;
  padding: 50px 20px;
  color: #646970;
}

.ah-empty-state .dashicons {
  font-size: 60px;
  width: 60px;
  height: 60px;
  color: #c3c4c7;
  margin-bottom: 15px;
}

.ah-empty-state p {
  font-size: 15px;
  margin: 8px 0;
}

.ah-empty-state .description {
  font-size: 13px;
  color: #a7aaad;
}
