.aether-wrap {
  box-sizing: border-box;
}
.aether-wrap *,
.aether-wrap *::before,
.aether-wrap *::after {
  box-sizing: inherit;
}
.aether-wrap h1, .aether-wrap h2, .aether-wrap h3, .aether-wrap h4, .aether-wrap h5, .aether-wrap h6,
.aether-wrap p, .aether-wrap ul, .aether-wrap ol, .aether-wrap dl {
  margin: 0;
  padding: 0;
}

.aether-wrap {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #455a64;
}
.aether-wrap h1, .aether-wrap h2, .aether-wrap h3, .aether-wrap h4, .aether-wrap h5, .aether-wrap h6 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #455a64;
}
.aether-wrap h1 {
  font-size: 8;
}
.aether-wrap h2 {
  font-size: 4;
}
.aether-wrap h3 {
  font-size: 2;
}
.aether-wrap h4 {
  font-size: 0;
}
.aether-wrap h5 {
  font-size: 14;
}
.aether-wrap h6 {
  font-size: 12;
}

body {
  color: #007bff;
}

.aether-mt-0 {
  margin-top: 0 !important;
}
.aether-mb-0 {
  margin-bottom: 0 !important;
}
.aether-ml-0 {
  margin-left: 0 !important;
}
.aether-mr-0 {
  margin-right: 0 !important;
}

.aether-pt-0 {
  padding-top: 0 !important;
}
.aether-pb-0 {
  padding-bottom: 0 !important;
}
.aether-pl-0 {
  padding-left: 0 !important;
}
.aether-pr-0 {
  padding-right: 0 !important;
}

.aether-d-none {
  display: none !important;
}
.aether-d-block {
  display: block !important;
}
.aether-d-flex {
  display: flex !important;
}

.aether-text-center {
  text-align: center !important;
}
.aether-text-left {
  text-align: left !important;
}
.aether-text-right {
  text-align: right !important;
}

.aether-grid {
  display: grid;
  gap: 24px;
}
.aether-grid--2-cols {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .aether-grid--2-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}
.aether-grid--3-cols {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .aether-grid--3-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .aether-grid--3-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

.aether-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.aether-dashboard {
  padding: 24px;
}
.aether-dashboard__header {
  margin-bottom: 36px;
}
.aether-dashboard__header h1 {
  color: #2271b1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 24px;
}

.aether-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 36px;
  margin: 36px 0;
  padding: 0 24px;
}

.aether-statistic-card,
.aether-component-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 36px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: 0.2s ease-in-out;
  border: 1px solid #ddd;
}
.aether-statistic-card:hover,
.aether-component-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.aether-statistic-card h2,
.aether-component-card h2 {
  margin: 0 0 24px;
  font-size: 16px;
  font-weight: 500;
  color: #333333;
  letter-spacing: -0.02em;
}
.aether-statistic-card p,
.aether-component-card p {
  color: #6c757d;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.aether-statistic-card {
  text-align: center;
}
.aether-statistic-card .aether-statistic-count {
  font-size: 28px;
  font-weight: 600;
  color: #333333;
  margin: 24px 0;
  line-height: 1;
}
.aether-statistic-card .button {
  width: 100%;
  text-align: center;
  background: #2271b1;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  transition: 0.15s ease;
  letter-spacing: 0.02em;
}
.aether-statistic-card .button:hover {
  background: rgb(25.7819905213, 85.6872037915, 134.2180094787);
  transform: translateY(-1px);
}

.aether-component-card .aether-component-status {
  margin-top: 24px;
}
.aether-component-card .aether-component-status span {
  display: inline-block;
  padding: 4px 24px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.aether-component-card .aether-component-status span.enabled {
  background: rgb(233.04, 246.46, 234.26);
  color: #2271b1;
}
.aether-component-card .aether-component-status span.disabled {
  background: #f8f9fa;
  color: #6c757d;
}

.aether-wrap {
  padding: 32px;
}
.aether-wrap > h1 {
  font-size: 36px;
  font-weight: 600;
  color: #333333;
  margin: 0 0 32px;
  letter-spacing: -0.03em;
}
.aether-wrap > h2 {
  font-size: 28px;
  font-weight: 500;
  color: #333333;
  margin: 48px 0 36px;
  letter-spacing: -0.02em;
}

.dashboard {
  background-color: #6c757d;
}

.aether-notes__container {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), inset 0 0 0 0.5px rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(209, 213, 219, 0.3);
}
.aether-notes__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-weight: 500;
  color: #1d1d1f;
}
.aether-notes__header input {
  width: 100%;
  border: none;
  background: transparent;
  font-weight: 500;
  color: #1d1d1f;
}
.aether-notes__header input:focus {
  outline: none;
}
.aether-notes__content {
  margin-bottom: 24px;
  color: #424245;
  line-height: 1.5;
  font-size: 0.95rem;
}
.aether-notes__content textarea {
  width: 100%;
  border: none;
  background: transparent;
  color: #424245;
  line-height: 1.5;
  font-size: 0.95rem;
  resize: vertical;
}
.aether-notes__content textarea:focus {
  outline: none;
}
.aether-notes__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  color: #86868b;
  font-size: 0.9rem;
}

.aether-todo__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.aether-todo__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.aether-todo__item:last-child {
  border-bottom: none;
}
.aether-todo__checkbox {
  margin-right: 12px;
}
.aether-todo__text {
  flex: 1;
}
.aether-todo__text--completed {
  text-decoration: line-through;
  color: rgba(69, 90, 100, 0.6);
}

#add-environment, .aether-section-header h2, .aether-header h1 {
  display: flex;
  align-items: center;
}

.form-table td, .aether-section-header h2, .aether-header h1, .aether-settings {
  margin: 0;
  padding: 0;
}

.aether-settings {
  max-width: 960px;
  padding-top: 24px;
}
.aether-header {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
}
.aether-header h1 {
  color: #1d2327;
  font-size: 20px;
  font-weight: 500;
  gap: 12px;
}
.aether-content {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  border: 1px solid #dcdcde;
  padding: 24px;
}
.aether-sections {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}
.aether-section {
  border-bottom: 1px solid #dcdcde;
  padding-bottom: 24px;
}
.aether-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.aether-section-header {
  padding-bottom: 12px;
}
.aether-section-header h2 {
  font-size: 15px;
  font-weight: 500;
  gap: 6px;
}
.aether-environments {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}
.aether-color-picker {
  width: 40px;
  height: 32px;
  padding: 0;
  border: 1px solid #dcdcde;
  border-radius: 4px;
}
.aether-enable-media {
  display: flex;
  gap: 10px;
}
.aether-toggle {
  position: relative;
  display: flex;
  width: 44px;
  height: 22px;
}
.aether-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.aether-toggle input:checked + .aether-toggle-slider {
  background-color: #2271b1;
}
.aether-toggle input:checked + .aether-toggle-slider:before {
  transform: translateX(22px);
}
.aether-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #dcdcde;
  transition: 0.3s;
  border-radius: 22px;
  width: 44px;
  height: 22px;
}
.aether-toggle-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 4px;
  bottom: 4px;
  background-color: #fff;
  transition: 0.3s;
  border-radius: 50%;
}
.aether-submit {
  margin-top: 24px !important;
}

.environment-entry {
  background: #f6f7f7;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #dcdcde;
}
.environment-inputs {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
}
.environment-inputs .aether-environment-input {
  flex: 1;
}
.environment-inputs .aether-environment-input input {
  width: 200px;
}

.description {
  color: #646970;
  font-style: italic;
  margin: 0 0 12px;
  font-size: 13px;
}

#add-environment {
  gap: 4px;
  font-size: 14px;
}

.remove-environment {
  padding: 0 !important;
  width: 32px;
  height: 32px;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.dashicons {
  width: 18px;
  height: 18px;
  font-size: 18px;
}

.form-table th {
  display: block;
  padding-bottom: 12px;
  font-size: 14px;
}
.form-table td {
  display: block;
}

.aether-overlay-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  pointer-events: none;
  z-index: 9999;
}

.aether-overlay {
  position: absolute;
  border: 2px solid transparent;
  background-color: transparent;
  pointer-events: none;
  transition: all 0.3s ease;
}
.aether-overlay--highlighted.aether-overlay--action {
  border-color: #4CAF50;
  background-color: rgba(76, 175, 80, 0.1);
}
.aether-overlay--highlighted.aether-overlay--filter {
  border-color: #2196F3;
  background-color: rgba(33, 150, 243, 0.1);
}
.aether-overlay--highlighted.aether-overlay--unused {
  border-color: #616161;
  background-color: rgba(97, 97, 97, 0.1);
}
.aether-overlay--zero-size {
  height: 20px;
  width: 20px;
}

.aether-icon {
  position: absolute;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  background-color: rgba(33, 33, 33, 0.9);
  transition: transform 0.2s ease;
  z-index: 10000;
}
.aether-icon:hover {
  transform: scale(1.1);
}
.aether-icon--action {
  background-color: #4CAF50;
}
.aether-icon--filter {
  background-color: #2196F3;
}
.aether-icon--unused {
  background-color: #616161;
}

.aether-label {
  position: absolute;
  top: 0;
  background-color: rgba(33, 33, 33, 0.9);
  color: #fff;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 0 0 4px 4px;
  min-width: 200px;
  max-width: 400px;
  overflow: visible;
  opacity: 0;
  transition: opacity 0.5s ease;
  white-space: normal;
  word-break: break-word;
  pointer-events: none;
  z-index: 10001;
}
.aether-label--visible {
  opacity: 1;
  pointer-events: auto;
}
.aether-label__title {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 4px;
}
.aether-label__status {
  font-size: 12px;
  margin-bottom: 4px;
}
.aether-label__callbacks {
  font-size: 12px;
  color: #ddd;
  line-height: 1.4;
}
.aether-label__unused {
  color: #616161;
}
.aether-label__metrics {
  font-size: 11px;
  color: #bbb;
  margin-bottom: 4px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.aether-zero-size-icon {
  position: fixed;
  top: 10px;
  right: 10px;
  background-color: rgba(33, 33, 33, 0.9);
  color: #fff;
  padding: 5px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 100000;
  pointer-events: auto;
  transition: transform 0.2s ease;
}
.aether-zero-size-icon:hover {
  transform: scale(1.1);
}

.aether-zero-size-popup {
  display: none;
  position: fixed;
  top: 40px;
  right: 10px;
  background-color: rgba(33, 33, 33, 0.9);
  color: #fff;
  padding: 10px;
  border-radius: 4px;
  max-width: 300px;
  z-index: 100001;
  pointer-events: auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.aether-zero-size-popup__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.aether-zero-size-popup__header h4 {
  margin: 0;
  font-size: 14px;
}
.aether-zero-size-popup__close {
  cursor: pointer;
  font-size: 20px;
  line-height: 20px;
  width: 20px;
  height: 20px;
  text-align: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}
.aether-zero-size-popup__close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.aether-zero-size-hook {
  margin-bottom: 10px;
  font-size: 12px;
}
.aether-zero-size-hook strong {
  color: #2196F3;
}
.aether-zero-size-hook hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 8px 0;
}

.aether-tooltip {
  position: absolute;
  left: 25px;
  top: 0;
  background-color: rgba(33, 33, 33, 0.9);
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  white-space: nowrap;
  display: none;
  z-index: 10001;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aether-switch-env {
  display: block;
  padding: 0 0.625rem !important;
}

#wpadminbar .ab-top-menu > li.hover > .ab-item, #wpadminbar .ab-top-menu > li:not(.mobile):hover > .ab-item {
  background: none !important;
}

#wp-admin-bar-aether-switch > .ab-item {
  background-color: var(--wp-admin-theme-color, #007cba) !important;
}
#wp-admin-bar-aether-switch .current-env {
  font-weight: 600;
}
