// Main Layout Styles
.arraysubs-admin-page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f0f0f1;
}

.arraysubs-route-overlay {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  inset: 0;
  // background: rgba(255, 255, 255, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  &.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    cursor: wait;
  }

  .spinner {
    float: none;
    margin: 0;
  }
}

.arraysubs-admin-loading {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: calc(100vh - 180px);
  padding: 48px 20px;
  color: #50575e;
  text-align: center;

  .spinner {
    float: none;
    margin: 0;
  }

  &__text {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
  }

  &--boot {
    min-height: calc(100vh - 120px);
  }
}

.arraysubs-loading{
  padding: 5px;
}

// Main Content Styles
.arraysubs-default-page-layout {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);

  // Page Content
  .arraysubs-page-content {
    width: 100%;
  }
}

.flex-button {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
}

// Top Header Styles
.arraysubs-top-header {
  margin: -10px -20px 20px -22px;
  padding: 20px 20px 10px 22px;
  background-color: #fff;
  position: sticky;
  top: 32px;
  z-index: 99;
  border-bottom: 1px solid #e1e1e1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  height: 76px;
  box-sizing: border-box;
}
// Subtitle
.arraysubs-page-subtitle {
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
// Tab Navigation Styles
.arraysubs-tabs,
.arraysubs-tab {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.arraysubs-bottom-fixed-actions {
  height: 50px;
  & > div {
    position: fixed;
    bottom: 0;
    left: calc(var(--arraysubs-actions-left) - 20px);
    right: calc(var(--arraysubs-actions-right) - 20px);
    border-radius: 8px;
    background-color: #fff;
    border-top: 1px solid #e1e1e1;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
    padding: 10px 20px;
    z-index: 100;
  }
}
.arraysubs-tab-link {
  display: block;
  font-weight: 500;
  margin-right: 26px;
  text-decoration: none;
  color: #2c3338;
  font-size: 16px;
  transition: color $transition-fast;
  background: transparent;
  position: relative;

  &::after {
    content: "";
    position: absolute;
    right: -13px;
    top: 2px;
    height: 14px;
    background-color: #c3c4c7;
    width: 2px;
  }

  &:hover {
    color: #0073aa;
  }

  &--active {
    color: #0073aa;
    -webkit-text-stroke: 0.7px currentColor;
    text-stroke: 0.7px currentColor;
  }
}

.arraysubs-tab:last-child .arraysubs-tab-link::after {
  display: none;
}

.arraysubs-go-back {
  display: flex;
  align-items: center;
  gap: 5px;
  // margin-top: 30px;
  justify-content: flex-start;
  width: 150px;
  text-decoration: none;
}

// Responsive Design
@media (max-width: 768px) {
  .arraysubs-admin-page {
    padding: 0;
  }

  .arraysubs-default-page-layout {
    padding: 15px;
  }

  .arraysubs-tabs {
    flex-wrap: wrap;
  }

  .arraysubs-tab-link {
    padding: 10px 12px;
    font-size: 14px;
  }
}
