/**
 * Orbital Hub Admin - Additional Styles
 * Modern styling for the admin interface
 *
 * @package Dear_Sticky
 */

/* ============================================
   Main App Container
   ============================================ */

.drstk-modern-app {
  min-height: 100vh;
  background-color: #f9fafb;
  padding: 0;
  margin: 0 0 0 -20px;
}

.drstk-modern-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  padding: 24px 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 32px;
  z-index: 100;
}

.drstk-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.drstk-header-branding {
  display: flex;
  align-items: center;
  gap: 16px;
}

.drstk-header-icon {
  font-size: 32px;
  opacity: 0.9;
}

.drstk-page-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}

.drstk-page-description {
  margin: 4px 0 0 0;
  font-size: 14px;
  opacity: 0.9;
  color: #ffffff;
}

.drstk-save-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff !important;
  color: #667eea !important;
  border: none !important;
  padding: 10px 24px !important;
  height: auto !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.drstk-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.drstk-save-btn .components-spinner {
  margin: 0;
}

/* ============================================
   Content Area
   ============================================ */

.drstk-modern-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px;
}

.drstk-notice-wrapper {
  max-width: 1400px;
  margin: 24px auto 0;
  padding: 0 32px;
}

/* ============================================
   Loading State
   ============================================ */

.drstk-loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.drstk-loader {
  text-align: center;
  color: #ffffff;
}

.drstk-loader-icon {
  font-size: 48px;
  margin-bottom: 20px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.drstk-loader p {
  margin: 16px 0 0 0;
  font-size: 16px;
  font-weight: 500;
}

/* ============================================
   Cards
   ============================================ */

.drstk-card {
  margin-bottom: 24px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.drstk-card .components-card__header {
  background-color: #ffffff;
  border-bottom: 2px solid #f0f0f0;
  padding: 20px 24px;
}

.drstk-card .components-card__header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1e1e1e;
  display: flex;
  align-items: center;
  gap: 10px;
}

.drstk-card .components-card__header h3 i {
  color: #005a5b;
  font-size: 18px;
}

.drstk-card .components-card__body {
  padding: 24px;
  background-color: #ffffff;
}

/* ============================================
   Footer
   ============================================ */

.drstk-modern-footer {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 32px;
  text-align: center;
  color: #6b7280;
  font-size: 13px;
}

.drstk-modern-footer a {
  color: #005a5b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.drstk-modern-footer a:hover {
  color: #0087b8;
  text-decoration: underline;
}

/* ============================================
   WordPress Components Overrides
   ============================================ */

.components-notice {
  margin: 0;
}

.components-card {
  box-shadow: none;
  border: none;
}

.components-form-toggle.is-checked .components-form-toggle__track {
  background-color: #005a5b;
}

.components-button.is-primary {
  background-color: #005a5b;
  border-color: #005a5b;
  text-align: center;
}

.components-button.is-primary:hover:not(:disabled) {
  background-color: #0087b8;
  border-color: #0087b8;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 782px) {
  .drstk-modern-app {
    margin-left: 0;
  }

  .drstk-modern-header {
    top: 46px;
    padding: 16px 20px;
  }

  .drstk-header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .drstk-header-right {
    width: 100%;
  }

  .drstk-save-btn {
    width: 100%;
    justify-content: center;
  }

  .drstk-modern-content,
  .drstk-notice-wrapper,
  .drstk-modern-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .drstk-page-title {
    font-size: 20px;
  }

  .drstk-header-icon {
    font-size: 28px;
  }
}

@media (max-width: 600px) {
  .drstk-modern-header {
    top: 0;
  }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
  .drstk-modern-header,
  .drstk-modern-footer,
  .drstk-notice-wrapper {
    display: none !important;
  }

  .drstk-modern-content {
    max-width: 100%;
    padding: 0;
  }
}

/* ============================================
   Accessibility
   ============================================ */

.drstk-modern-app :focus-visible {
  outline: 2px solid #005a5b;
  outline-offset: 2px;
}

.drstk-modern-app button:focus-visible {
  outline: 2px solid #005a5b;
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .drstk-modern-header {
    background: #000000;
    border-bottom: 3px solid #ffffff;
  }

  .drstk-card {
    border: 2px solid #000000;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
