/* CSS for navigation tabs */
.MGBA-tabs-container {
    display: flex;
    min-height: 300px;
}

.MGBA-tabs-sidebar {
    width: 200px;
    border-right: 1px solid #d0d7e2;
    background: #f3f6fb;
}

.MGBA-tab-button {
    display: block;
    padding: 16px;
    cursor: pointer;
    border: none;
    background: #f3f6fb;
    width: 100%;
    text-align: left;
    color: #1e293b;
    transition: background 0.3s, color 0.3s;
    font-size: 14px;
}

.MGBA-tab-button.active {
    background: #0f172a;
    color: #ffffff;
    font-weight: bold;
}

.MGBA-tab-content {
    flex: 1;
    padding: 5px 20px 20px;
    display: none;
    background: #ffffff;
}

.MGBA-tab-content.active {
    display: block;
}

.MGBA-tab-button .dashicons {
    margin-right: 6px;
    vertical-align: middle;
    font-size: 20px;
}

/* End tab nav */

.MGBA-tabs-panel {
    width: 100%;
}

.MGBA-preview-wrapper {
    position: relative;
    display: inline-block;
    width: 20%;
}

.MGBA-preview-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #cbd5e1;
}

.MGBA-remove-preview {
    position: absolute;
    top: -6px;
    right: -11px;
    background: #0f172a;
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
}

.img-method-heading {
    margin-bottom: 3px;
    font-weight: 600;
    font-size: 16px;
    color: #0f172a;
    margin: 0px;
}

.img-before-heading,
.img-after-heading,
.slide-info-heading,
.slider-head-style {
    padding: 16px 24px;
    margin: 20px -20px;
    background-color: #e2e8f0;
    margin-bottom: 3px;
    font-weight: 600;
    font-size: 16px;
    color: #0f172a;
}

.img-before label,
.img-after label,
.slide-info label,
.MGBA-slider-info-style label,
.MGBA-slider-color-group label,
.syle-setting,
.MGBA-read-more-color label,
.MGBA-read-more-input label,
.ba_slider_orientation label {
    font-weight: 600;
    font-size: 16px;
    color: #0f172a;
}

/* Before image section */

.MGBA-upload-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.MGBA-upload-input {
    width: 90%;
    padding: 12px 8px 12px 12px;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    height: 48px;
    color: #1e293b;
    font-size: 14px;
    white-space: nowrap;
}

.MGBA-upload-button {
    color: #fff;
    height: 48px;
    width: 100px !important;
    text-align: center;
    text-transform: capitalize;
    background-color: #0f172a;
    border-radius: 5px;
}

.MGBA-upload-button:hover {
    background-color: #1e293b;
}

.MGBA-alt-wrapper {
    margin-top: 20px;
}

.img-before-alt-text,
#ba_slide_description {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    margin-bottom: 4px;
}

.alt-label {
    display: block;
    font-size: 13px;
    color: #334155;
}

.img-before-alt-text,
.ba_slide_title {
    width: 90%;
    padding: 12px 8px 12px 12px;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    height: 48px;
    color: #1e293b;
    font-size: 14px;
    white-space: nowrap;
}

.alt-label {
    margin-bottom: 3px;
    font-weight: 600;
    font-size: 16px;
    color: #0f172a;
    padding-bottom: 5px;
}
/* End before image */

.ba_slide_title-label {
    display: block;
}

.MGBA-slide-title,
.MGBA-slide-description {
    padding-top: 14px;
}

.ba_slide_title {
    margin-top: 10px;
}

.ba_font_size,
.ba_text_alignment,
.ba_slider_offset,
.ba_slider_label {
    width: 30% !important;
    padding: 12px 8px 12px 12px;
    border: 1px solid #cbd5e1;
    background-color: #f8fafc;
    border-radius: 4px;
    height: 48px;
    color: #1e293b;
    font-size: 14px;
}

.MGBA-slider-info-style {
    margin-top: 16px;
}

.ba_font_color,
.ba_text_alignment,
.ba_font_size,
.ba_slider_offset,
.ba_slider_label {
    margin-top: 6px;
}

.MGBA-slider-color-group,
.MGBA-read-more-color {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-top: 14px;
}

.MGBA-read-more-color label {
    padding-right: 15px;
}

.MGBA-slider-color-group label {
    width: 220px;
    font-weight: 600;
}

.MGBA-slider-field {
    margin-bottom: 15px;
}

.MGBA-slider-field label {
    display: block;
    margin-bottom: 5px;
}

.read-more {
    padding-top: 10px;
}

.tf-image-radio-group {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    list-style: none;
    padding-left: 0;
}

.tf-image-checkbox input[type="radio"] {
    display: none;
}

.tf-image-checkbox img {
    width: 80px;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s ease;
}

.tf-image-checkbox input[type="radio"]:checked + img {
    border-color: #0f172a;
    box-shadow: 0 0 0 2px #0f172a;
}
.MGBA-radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.MGBA-radio-group input[type="radio"] {
    accent-color: #003c79;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    cursor: pointer;
}

.MGBA-radio-group label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.MGBA-radio-group label:hover {
    color: #003c79;
}

/* ... existing CSS remains unchanged ... */

/* RESPONSIVE STYLES */
@media (max-width: 1024px) {
  .MGBA-tabs-container {
    flex-direction: column;
    min-height: auto;
  }

  .MGBA-tabs-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #d0d7e2;
    display: flex;
    overflow-x: auto;
  }

  .MGBA-tab-button {
    flex: 1 0 auto;
    padding: 14px;
    text-align: center;
    font-size: 13px;
    white-space: nowrap;
  }

  .MGBA-tab-button .dashicons {
    font-size: 18px;
  }

  .MGBA-preview-wrapper {
    width: 48%;
    margin-bottom: 12px;
  }

  .MGBA-upload-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .MGBA-upload-input,
  .img-before-alt-text,
  .ba_slide_title,
  .ba_text_alignment,
  .ba_font_size,
  .ba_slider_offset,
  .ba_slider_label {
    width: 100% !important;
  }

  .MGBA-slider-color-group,
  .MGBA-read-more-color {
    flex-direction: column;
    align-items: flex-start;
  }

  .MGBA-slider-color-group label,
  .MGBA-read-more-color label {
    width: 100%;
    padding-bottom: 6px;
  }

  .tf-image-radio-group {
    flex-wrap: wrap;
    gap: 12px;
  }

  .tf-image-checkbox img {
    width: 72px;
  }

  .MGBA-radio-group {
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .MGBA-radio-group label {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .MGBA-preview-wrapper {
    width: 100%;
  }

  .MGBA-tab-button {
    font-size: 12px;
    padding: 12px 8px;
  }

  .MGBA-tab-button .dashicons {
    font-size: 16px;
  }

  .img-before-heading,
  .img-after-heading,
  .slide-info-heading,
  .slider-head-style {
    font-size: 15px;
    padding: 12px 16px;
  }

  .alt-label,
  .MGBA-slider-info-style label {
    font-size: 14px;
  }

  .MGBA-upload-button {
    width: 100% !important;
  }
}
