/* Mobile Layout Fix: Show settings content BEFORE navigation menu */
@media (max-width: 768px) {
    .woocommerce-MyAccount-content {
        order: 1;
    }
    .woocommerce-MyAccount-navigation {
        order: 2;
    }
    .woocommerce-account .woocommerce {
        display: flex;
        flex-direction: column;
    }
}

/* Aurora theme tokens */
:root {
    --bg-deep: #10131c;
    --bg-alt: #151a23;
    --surface-base: #1b2030;
    --surface-raised: #22293b;
    --surface-hover: #262c3f;
    --surface-tint: rgba(127, 90, 240, 0.08);

    --text-primary: #f8fbff;
    --text-secondary: rgba(248, 251, 255, 0.72);
    --text-muted: rgba(248, 251, 255, 0.48);
    --text-disabled: rgba(248, 251, 255, 0.32);

    --aurora-lime: #a1ff70;
    --aurora-green: #38ef7d;
    --aurora-cyan: #2ac7ff;
    --aurora-cyan-deep: #1b6ea6;
    --aurora-violet: #8c6efc;
    --aurora-magenta: #db2777;
    --accent-slate: #7f5af0;
    --accent-solar: #e9f50b;

    --border-soft: rgba(124, 136, 158, 0.24);
    --border-strong: rgba(255, 255, 255, 0.08);
    --border-aurora: rgba(140, 110, 252, 0.35);

    --probability-cool: #0f3b5a;
    --probability-mild: #2d3f79;
    --probability-warm: #7f5af0;
    --probability-hot: #c026d3;
    --probability-extreme: #fb277d;

    --alert-green: #3fd9a4;
    --alert-yellow: #f4d270;
    --alert-orange: #f39563;
    --alert-red: #ff6b81;

    --table-header-bg: #1d2230;
    --table-row-bg: #141823;
    --table-row-alt: #181d2b;

    --gradient-cta: linear-gradient(110deg, #6d28d9 0%, #c026d3 52%, #fb277d 100%);
    --gradient-ambient: radial-gradient(circle at 20% 20%, rgba(42, 199, 255, 0.12), transparent 60%);

    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 999px;

    --shadow-soft: 0 2px 12px rgba(10, 12, 20, 0.6);
    --shadow-raised: 0 8px 30px rgba(10, 12, 20, 0.45);

    --status-danger: #ff6b6b;
    --status-success: #38ef7d;
    --status-warning: #ffd400;
    --status-info: #2ac7ff;
}

/* Standardized Aurora Button Styles */
.aurora-button {
    background: var(--accent-slate);
    color: var(--text-primary);
    border: 1px solid transparent;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85em;
    letter-spacing: 0.03em;
    box-shadow: var(--shadow-soft);
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.aurora-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    box-shadow: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.aurora-refresh-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.aurora-refresh-btn.is-compact {
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
}

.aurora-button:hover {
    background: var(--gradient-cta);
    box-shadow: var(--shadow-raised);
}

.aurora-button:disabled {
    background: var(--border-strong);
    color: var(--text-disabled);
    border-color: transparent;
    cursor: not-allowed;
    box-shadow: none;
}

.aurora-widget {
    padding: 20px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    background: var(--surface-base);
    color: var(--text-primary);
    box-shadow: var(--shadow-soft);
}

/* Aurora Fixed Probability Styles */
.aurora-fixed-probability {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    padding: 1.5em;
    box-shadow: var(--shadow-soft);
    color: var(--text-primary);
    background: var(--surface-base);
    background-image: var(--gradient-ambient);
    transition: background 0.4s ease, color 0.4s ease, border 0.4s ease;
    position: relative;
    min-height: 200px;
    display: flex;
}

.aurora-fixed-probability .aurora-probability-content {
    width: 100%;
}

.aurora-probability-value span {
    font-size: 2.5em;
    font-weight: bold;
}

.aurora-probability-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.aurora-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: aurora-spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes aurora-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.aurora-probability-error {
    padding: 20px;
    text-align: center;
    color: var(--status-danger);
    background: rgba(255, 107, 107, 0.12);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 107, 107, 0.4);
}

.aurora-probability-result {
        padding: 1.5em;
    margin: 1em 0;
    color: var(--text-primary);
    transition: background 0.4s ease, color 0.4s ease;
    position: relative;
}

.aurora-probability-container.state-idle {
    background: var(--surface-base);
}

.aurora-probability-container.state-low {
    background: linear-gradient(135deg, #0f3b5a 0%, #1b4f73 100%);
}

.aurora-probability-container.state-moderate {
    background: linear-gradient(135deg, #203462 0%, #4f58a5 100%);
}

.aurora-probability-container.state-high {
    background: linear-gradient(135deg, #7f5af0 0%, #a83cd8 100%);
}

.aurora-probability-container.state-extreme {
    background: linear-gradient(135deg, #c026d3 0%, #fb277d 100%);
}

.aurora-probability-refresh {
    position: absolute;
    top: 10px;
    right: 10px;
}

.aurora-interactive-probability {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    padding: 1.5em;
    box-shadow: var(--shadow-soft);
    color: var(--text-primary);
    background: var(--surface-base);
    background-image: var(--gradient-ambient);
    transition: background 0.4s ease, color 0.4s ease;
}

.aurora-probability-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 15px;
}

.aurora-probability-form .aurora-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1 1 auto;
    min-width: 0;
}

.aurora-probability-form input[type="text"] {
    max-width: 100%;
    box-sizing: border-box;
}

.aurora-probability-form .aurora-form-actions {
    display: flex;
    gap: 10px;
}

@media (max-width: 600px) {
    .aurora-probability-form {
        flex-direction: column;
        align-items: stretch;
    }

    .aurora-probability-form .aurora-form-group {
        width: 100%;
    }

    .aurora-probability-form .aurora-form-actions {
        flex-direction: column;
        width: 100%;
    }

    .aurora-probability-form .aurora-form-actions button {
        width: 100%;
    }
}

#aurora-form .form-control label {
    display: inline-block;
    font-weight: bold;
    margin-right: 5px;
    margin: 0;
}

#aurora-form .form-control input {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    width: auto;
    background: var(--surface-raised);
    color: var(--text-primary);
}

#aurora-form button {
    font-size: 14px;
    white-space: nowrap; /* Ensure text doesn't wrap inside button */
}

#aurora-result {
    margin-top: 20px;
    padding: 12px;
    border-radius: var(--radius-sm);
    background-color: var(--surface-base);
    color: var(--text-secondary);
    border: 1px solid var(--border-soft);
    font-size: 16px;
}

/* Responsive: Stack on mobile */
@media (max-width: 600px) {
    #aurora-form {
        white-space: normal; /* Allow wrapping on small screens */
    }

    #aurora-form .form-control,
    #aurora-form button {
        display: block;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .form-control label,
    .form-control input {
        margin: 0 0 5px 0;
    }
}

/* Tooltip styles for dark theme */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  font-size: 1em;
  margin-left: 4px;
  color: var(--aurora-cyan);
  vertical-align: middle;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 320px;
  max-width: 90vw;
  background: rgba(23, 30, 47, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  text-align: left;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  position: absolute;
  z-index: 10;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 0.95em;
  box-shadow: 0 2px 14px rgba(10, 12, 20, 0.65);
  border: 1px solid var(--border-aurora);
}

.tooltip:hover .tooltiptext,
.tooltip:focus .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Min-by-Min Table Styles */
.min-by-min-table-wrapper {
    background: var(--surface-base);
    padding: 18px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}

.min-by-min-table-wrapper .table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.min-by-min-table-wrapper .timezone-info {
    color: var(--text-muted);
    font-size: 0.9em;
    margin: 0;
}

.min-by-min-table-wrapper .aurora-refresh-btn {
    font-size: 0.9em;
}

.min-by-min-table-wrapper .table-container {
    position: relative;
    width: 100%;
}

.min-by-min-table-wrapper .table-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.min-by-min-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.min-by-min-table th,
.min-by-min-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
}

.min-by-min-table thead th {
    background: var(--surface-raised);
    color: var(--text-secondary);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 2;
    white-space: nowrap;
}

.min-by-min-table tbody tr:nth-child(even) {
    background-color: var(--surface-raised);
}

.min-by-min-table tbody tr:hover {
    background-color: var(--surface-hover);
}

.min-by-min-table .bz-negative {
    color: var(--status-danger);
    font-weight: bold;
}

.min-by-min-table .interpolated-marker {
    color: var(--aurora-cyan);
    font-weight: bold;
}

.interpolated-note {
    font-size: 0.85em;
    color: var(--text-muted);
    margin-top: 10px;
    text-align: center;
}

/* Mobile responsive styles for min-by-min table */
@media (max-width: 768px) {
    .min-by-min-table-wrapper {
        padding: 10px;
    }

    .min-by-min-table-wrapper .table-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .min-by-min-table-wrapper .aurora-refresh-btn {
        width: 100%;
        padding: 10px;
    }

    .min-by-min-table {
        min-width: 500px;
        font-size: 0.9em;
    }

    .min-by-min-table th,
    .min-by-min-table td {
        padding: 8px 6px;
    }

    .min-by-min-table .mobile-abbr {
        display: none;
    }
}

@media (max-width: 576px) {
    .min-by-min-table {
        font-size: 0.85em;
    }

    .min-by-min-table th:first-child,
    .min-by-min-table td:first-child {
        min-width: 140px;
    }

    .interpolated-note {
        font-size: 0.8em;
    }
}

/* Aurora Probability Tooltip Styles */
.aurora-probability-display {
    position: relative;
}

.aurora-probability-updated-time {
	font-size: 14px;
}

/* Combined tooltip for aurora probability with info icon */
.aurora-probability-label .tooltip {
    margin-left: 6px;
}

.aurora-probability-combined-tooltip {
    width: 320px;
    max-width: 90vw;
    font-size: 0.9em;
    line-height: 1.5;
    text-align: left;
    white-space: pre-line;
}

/* Shared table styles */
.aurora-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    color: var(--text-primary);
    background: var(--surface-base);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    font-size: 0.95rem;
}

.aurora-table thead th {
    background: var(--table-header-bg);
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border-soft);
}

.aurora-table th,
.aurora-table td {
    padding: 0.85rem 1rem;
    text-align: left;
}

.aurora-table tbody tr {
    background: var(--table-row-bg);
    transition: background 0.2s ease;
}

.aurora-table tbody tr:nth-child(even) {
    background: var(--table-row-alt);
}

.aurora-table tbody tr:hover {
    background: var(--surface-hover);
}

.aurora-cell--quiet {
    background: #0f2741;
    color: #b8c7df;
}

.aurora-cell--active {
    background: #1f8b7a;
    color: #e9fff7;
}

.aurora-cell--storm {
    background: #f4c361;
    color: #241200;
}

.aurora-cell--severe {
    background: #ff6b6b;
    color: #2b0101;
}

.aurora-table tbody tr.aurora-row--active {
    background: rgba(63, 217, 164, 0.12);
}

.aurora-table tbody tr.aurora-row--storm {
    background: rgba(244, 210, 112, 0.15);
}

.aurora-table tbody tr.aurora-row--severe {
    background: rgba(255, 107, 129, 0.15);
}

.aurora-table tbody tr.aurora-row--quiet {
    background: rgba(248, 251, 255, 0.02);
}

/* Mobile tooltip adjustments */
@media (max-width: 600px) {
    .tooltip .tooltiptext {
        width: fit-content;
        min-width: 280px;
        max-width: 95vw;
        font-size: 0.9em;
        padding: 12px 16px;
        white-space: normal;
    }

    .aurora-probability-combined-tooltip {
        width: fit-content;
        min-width: 280px;
        max-width: 95vw;
        font-size: 0.9em;
        padding: 12px 16px;
        white-space: pre-line;
    }
}

/* Minimal UI for AI Substorm Detector */
.ai-substorm {
    background: var(--surface-base);
    color: var(--text-primary);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin: 12px 0;
    box-shadow: var(--shadow-soft);
}

.ai-substorm-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ai-substorm-city {
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: auto;
}

.ai-substorm-headline {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-weight: 700;
}

.ai-substorm-strength {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--status-warning);
}

.ai-substorm-units {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.ai-substorm-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}

.ai-chip {
    display: inline-block;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    line-height: 1;
    border: 1px solid transparent;
    background: var(--surface-raised);
    color: var(--text-primary);
}

.ai-phase-growth { background: var(--surface-raised); border-color: var(--aurora-green); color: var(--aurora-green); }
.ai-phase-expansion { background: var(--surface-raised); border-color: var(--status-warning); color: var(--status-warning); }
.ai-phase-recovery { background: var(--surface-raised); border-color: var(--aurora-cyan); color: var(--aurora-cyan); }

.ai-trend-falling { border-color: var(--aurora-green); color: var(--aurora-lime); }
.ai-trend-rising { border-color: var(--status-danger); color: #ff9b9b; }
.ai-trend-steady { border-color: var(--text-muted); color: var(--text-muted); }

.ai-confidence-low { border-color: var(--status-danger); color: #ff9b9b; }
.ai-confidence-medium { border-color: var(--status-warning); color: var(--status-warning); }
.ai-confidence-high { border-color: var(--aurora-green); color: var(--aurora-lime); }

.ai-substorm-meta {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 12px 18px;
    font-size: 0.9rem;
    color: #c9ced8;
}

.ai-substorm-chart {
    margin-top: 10px;
}

.ai-substorm-sparkline {
    display: block;
    width: 100%;
    height: auto;
}

/* Notification History Status Badges */
.notification-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notification-status.sent {
    background: rgba(56, 239, 125, 0.16);
    color: var(--aurora-green);
    border: 1px solid var(--aurora-green);
}

.notification-status.delivered {
    background: rgba(42, 199, 255, 0.18);
    color: var(--aurora-cyan);
    border: 1px solid var(--aurora-cyan);
}

.notification-status.failed {
    background: rgba(255, 107, 107, 0.18);
    color: var(--status-danger);
    border: 1px solid var(--status-danger);
}

.notification-status.unknown {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border: 1px solid var(--border-soft);
}

/* Notification Type Badges */
.notification-type {
    display: inline-block;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: rgba(255, 212, 0, 0.15);
    color: var(--status-warning);
    border: 1px solid rgba(255, 212, 0, 0.3);
}

/* Aurora Setup Redirect Notice (Thank You Page) */
.aurora-setup-redirect-notice {
    display: block !important;
    margin: 0 0 2em 0 !important;
    padding: 1.5em 2em !important;
    background-color: #f8d7da !important;
    border-left: 5px solid #dc3545 !important;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.aurora-setup-redirect-notice h3 {
    margin-top: 0 !important;
    color: #721c24 !important;
    font-size: 1.3em !important;
}

.aurora-setup-redirect-notice p {
    color: #721c24 !important;
    margin: 10px 0;
}

.aurora-setup-redirect-notice .button {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
    font-weight: bold;
    transition: background-color 0.3s ease;
    padding: 6px 10px !important;
    border-radius: 4px !important;
    border: none !important;
    opacity: 0.8 !important;
}

.aurora-setup-redirect-notice .button:hover {
    background: #c82333 !important;
    border-color: #bd2130 !important;
    opacity: 1 !important;
}

/* Notifications Log Table Styles */
.notifications-log-container {
    background: var(--surface-base);
    border-radius: var(--radius-md);
    padding: 18px;
    overflow-x: auto;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}

.notifications-log-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-primary);
    min-width: 600px;
}

.notifications-log-table thead th {
    background: var(--surface-raised);
    color: var(--text-secondary);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--aurora-cyan);
}

.notifications-log-table tbody td {
    padding: 12px;
    border-bottom: 1px solid var(--border-soft);
    vertical-align: middle;
}

.notifications-log-table tbody tr:nth-child(odd) {
    background-color: var(--surface-base);
}

.notifications-log-table tbody tr:nth-child(even) {
    background-color: var(--surface-raised);
}

.notifications-log-table tbody tr:hover {
    background-color: var(--surface-hover);
}

/* Mobile responsive - stacked card layout */
@media (max-width: 768px) {
    .notifications-log-container {
        padding: 10px;
        overflow-x: visible;
    }

    .notifications-log-table {
        min-width: 0;
        border: 0;
    }

    .notifications-log-table thead {
        display: none;
    }

    .notifications-log-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid var(--border-soft);
        border-radius: var(--radius-md);
        overflow: hidden;
        background: var(--surface-raised) !important;
    }

    .notifications-log-table tbody tr:hover {
        background: var(--surface-hover) !important;
    }

    .notifications-log-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        border: 0;
        border-bottom: 1px solid var(--border-soft);
        text-align: right;
    }

    .notifications-log-table tbody td:last-child {
        border-bottom: 0;
    }

    .notifications-log-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--aurora-cyan);
        margin-right: 10px;
        flex-shrink: 0;
        text-align: left;
    }

    .notifications-log-table tbody td[data-label="Message"] {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .notifications-log-table tbody td[data-label="Message"]::before {
        margin-bottom: 5px;
    }
}

/* Notifications Log Pagination - minimal styling to work with theme */
.notifications-log-pagination {
    margin-top: 20px;
    text-align: center;
}

.notifications-log-pagination ul.page-numbers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.notifications-log-pagination ul.page-numbers li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Style for all pagination items - minimal styling */
.notifications-log-pagination .page-numbers {
    display: inline-block;
    padding: 6px 10px;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: color 0.2s ease, background 0.2s ease;
}

/* Current/active page - simple highlight */
.notifications-log-pagination .page-numbers.current,
.notifications-log-pagination span.current {
    color: var(--aurora-cyan);
    font-weight: 600;
    text-decoration: underline;
}

/* Hover state - subtle */
.notifications-log-pagination a.page-numbers:hover {
    color: var(--aurora-cyan);
}

/* Dots/ellipsis */
.notifications-log-pagination .dots {
    color: var(--text-muted);
}

/* Dark theme adjustments for pagination if needed */
@media (max-width: 576px) {
    .notifications-log-pagination ul.page-numbers {
        gap: 5px;
    }

    .notifications-log-pagination .page-numbers {
        padding: 4px 8px;
        font-size: 0.9em;
    }
}

/* ============================================
   AURORA USER SETTINGS - SECTION CARDS
   ============================================ */

/* Card-style sections to match time schedule */
.aurora-settings-section {
    max-width: 800px;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--surface-base);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}

.aurora-settings-wrap {
    max-width: 980px;
}

.aurora-settings-wrap h2 {
    margin-bottom: 12px;
}

.aurora-settings-subtext {
    margin: 6px 0 16px;
    color: var(--text-secondary);
}

.premium-notice {
    background: var(--surface-raised);
    border-left: 4px solid var(--border-aurora);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.premium-feature {
    position: relative;
}

.premium-feature.is-dimmed {
    opacity: 0.75;
}

.premium-feature.is-dimmed::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    background: rgba(16, 19, 28, 0.25);
    pointer-events: none;
}

/* ============================================
   UX IMPROVEMENTS - Sticky Save, Hero CTA, Radio Buttons, etc.
   ============================================ */

/* Sticky Save Button - Always Visible */
.aurora-sticky-save-wrapper {
    position: -webkit-sticky;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, var(--bg-deep) 80%, transparent);
    padding: 20px 0 20px;
    margin-top: 30px;
    z-index: 999;
    text-align: center;
}

.aurora-sticky-save-wrapper .aurora-button {
    padding: 12px 32px;
    font-size: 1.1em;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(127, 90, 240, 0.4);
}

/* Mobile optimization for sticky save button */
@media (max-width: 768px) {
    .aurora-sticky-save-wrapper {
        background: var(--bg-deep);
        padding: 16px 20px;
        border-top: 2px solid var(--aurora-violet);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    }

    .aurora-sticky-save-wrapper .aurora-button {
        width: 100%;
        max-width: 400px;
        min-height: 48px;
        padding: 14px 24px;
        font-size: 1.15em;
        box-shadow: 0 6px 24px rgba(127, 90, 240, 0.5);
    }
}

/* Enable Notifications Hero CTA */
.aurora-enable-notifications-cta {
    background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 100%);
    border: 2px solid var(--aurora-violet);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-raised);
    position: relative;
}

.aurora-enable-notifications-cta h3 {
    color: var(--text-primary) !important;
    font-size: 20px !important;
    margin: 0 0 8px 0 !important;
}

.aurora-enable-notifications-cta p {
    margin: 0 0 16px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Modern Toggle Switch for Enable Notifications */
.aurora-toggle-switch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    user-select: none;
}

.aurora-toggle-switch:hover {
    background: rgba(255, 255, 255, 0.15);
}

.aurora-toggle-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.aurora-toggle-slider {
    position: relative;
    width: 60px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.aurora-toggle-slider::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.aurora-toggle-switch input[type="checkbox"]:checked + .aurora-toggle-slider {
    background: var(--aurora-green);
}

.aurora-toggle-switch input[type="checkbox"]:checked + .aurora-toggle-slider::before {
    transform: translateX(30px);
}

.aurora-toggle-label {
    font-weight: 600;
    font-size: 16px;
    color: white;
}

/* Visible Radio Buttons in Mode Toggles */
.aurora-forecast-mode-btn input[type="radio"],
.aurora-location-mode-btn input[type="radio"] {
    position: relative !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 8px 0 0 !important;
    accent-color: var(--aurora-cyan);
    cursor: pointer;
}

.aurora-forecast-mode-btn,
.aurora-location-mode-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Timezone Required Styling */
#aurora_timezone.timezone-unverified {
    border: 2px solid var(--status-danger) !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2) !important;
}

.aurora-tz-unverified {
    color: var(--status-danger) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.aurora-tz-unverified::before {
    content: '⚠️';
}

.aurora-timezone-required-label {
    color: var(--status-danger);
    font-weight: bold;
    margin-left: 6px;
}

/* Collapsible Sections */
.aurora-settings-section.is-collapsible {
    cursor: pointer;
}

.aurora-settings-section.is-collapsible h3 {
    position: relative;
    padding-right: 30px;
    cursor: pointer;
}

.aurora-settings-section.is-collapsible h3::after {
    content: '▼';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.aurora-settings-section.is-collapsed h3::after {
    transform: translateY(-50%) rotate(-90deg);
}

.aurora-settings-section.is-collapsed .aurora-section-content {
    display: none;
}

.aurora-section-content {
    margin-top: 12px;
}

/* Visual Hierarchy - Priority Levels */
.aurora-settings-section.priority-critical {
    background: linear-gradient(135deg, rgba(127, 90, 240, 0.1) 0%, rgba(140, 110, 252, 0.05) 100%);
    border: 2px solid var(--aurora-violet);
    box-shadow: var(--shadow-raised);
}

.aurora-settings-section.priority-high {
    border-left: 4px solid var(--aurora-cyan);
    box-shadow: var(--shadow-soft);
}

.aurora-settings-section.priority-medium {
    border-left: 2px solid var(--border-soft);
}

/* Phone Number Required Label */
.aurora-phone-required-label {
    color: var(--status-danger);
    font-weight: bold;
    margin-left: 6px;
    font-size: 12px;
}

/* Enhanced Phone Confirmation Box */
.aurora-phone-confirmation {
    margin-top: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(56, 239, 125, 0.08) 0%, rgba(42, 199, 255, 0.08) 100%);
    border-left: 4px solid var(--aurora-green);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.aurora-phone-confirmation-header {
    margin-bottom: 8px;
}

.aurora-phone-confirmation-header strong {
    color: var(--aurora-green);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.aurora-phone-display-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 8px 0 12px 0;
    letter-spacing: 0.5px;
}

.aurora-phone-confirmation-prompt {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-soft);
}

.aurora-phone-confirm-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.aurora-phone-confirm-checkbox:hover {
    background: rgba(255, 255, 255, 0.05);
}

.aurora-phone-confirm-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--aurora-green);
    margin: 0;
}

.aurora-phone-confirm-checkbox span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Enhanced Quick Presets Styling */
.aurora-schedule-presets {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--surface-raised);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
}

.aurora-schedule-presets label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aurora-preset-btn {
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-soft);
    color: var(--text-primary);
    background: var(--surface-base);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.25s ease;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.aurora-preset-btn:hover {
    background: var(--accent-slate);
    color: var(--text-primary);
    border-color: var(--accent-slate);
    transform: translateY(-2px);
    box-shadow: var(--shadow-raised);
}

.aurora-preset-btn:active {
    transform: translateY(0);
}

/* Phone validation error state */
#aurora_phone_number.phone-invalid {
    border: 2px solid var(--status-danger) !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2) !important;
}

/* Mobile responsiveness for new components */
@media (max-width: 600px) {
    .aurora-sticky-save-wrapper .aurora-button {
        width: 100%;
        max-width: 300px;
    }

    .aurora-enable-notifications-cta {
        padding: 20px;
    }

    .aurora-toggle-switch {
        width: 100%;
        justify-content: center;
    }

    .aurora-forecast-mode-toggle,
    .aurora-location-mode-toggle {
        flex-direction: column;
        gap: 10px;
    }

    .aurora-forecast-mode-btn,
    .aurora-location-mode-btn {
        width: 100%;
    }

    .aurora-preset-btn {
        width: 100%;
        margin-right: 0;
    }
}

.aurora-phone-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 900px) {
    .aurora-phone-row {
        grid-template-columns: 1fr;
    }
}

.aurora-country-wrap select,
.aurora-phone-wrap input {
    height: 44px;
    line-height: 44px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-soft);
    background: var(--surface-base);
    color: var(--text-primary);
    width: 100%;
    box-sizing: border-box;
}

.aurora-country-wrap,
.aurora-phone-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.aurora-country-wrap {
    min-width: 220px;
}

.aurora-phone-wrap {
    min-width: 280px;
    justify-content: flex-end;
}

@media (max-width: 900px) {
    .aurora-country-wrap,
    .aurora-phone-wrap {
        min-width: auto;
    }
}

.aurora-field-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-primary);
}

.aurora-phone-input {
    position: relative;
}

#aurora_phone_prefix {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-weight: 600;
}

#aurora_phone_number {
    padding-left: 55px !important;
}

#phone_format_hint {
    font-style: italic;
    margin-top: 6px;
    display: block;
    color: var(--text-muted);
}

#phone_validation_message {
    font-size: 12px;
    margin-top: 6px;
}

#phone_validation_message.error {
    color: var(--status-danger);
}

#phone_validation_message.success {
    color: var(--status-success);
}

.aurora-schedule-notice {
    background: var(--surface-raised);
    border-left: 4px solid var(--aurora-cyan);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    margin-bottom: 16px;
}

.aurora-schedule-presets {
    margin-bottom: 16px;
}

.aurora-schedule-presets label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.aurora-preset-btn {
    margin-right: 8px;
    margin-bottom: 8px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-soft);
    color: var(--text-secondary);
    background: var(--surface-raised);
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.aurora-preset-btn:hover {
    background: var(--accent-slate);
    color: var(--text-primary);
    border-color: var(--accent-slate);
}

/* Location & alert mode toggle buttons */
.aurora-location-mode-toggle,
.aurora-forecast-mode-toggle {
    display: flex;
    gap: 8px;
}

.aurora-location-mode-btn,
.aurora-forecast-mode-btn {
    position: relative;
    padding: 8px 16px;
    border: 1px solid var(--border-soft);
    background: var(--surface-raised);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.aurora-location-mode-btn:hover,
.aurora-forecast-mode-btn:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
}

.aurora-location-mode-btn.active,
.aurora-forecast-mode-btn.active {
    background: var(--accent-slate);
    color: var(--text-primary);
    border-color: var(--accent-slate);
}

.aurora-forecast-mode-btn input[type="radio"],
.aurora-location-mode-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Use My Current Location button */
#use_browser_location {
    font-size: 14px;
}

/* Timezone verification status */
.aurora-tz-status {
    display: block;
    margin-top: 6px;
}

.aurora-tz-verified {
    color: var(--status-success);
    font-weight: 500;
}

.aurora-tz-unverified {
    color: var(--status-danger);
    font-weight: 500;
}

.aurora-nearby-city {
    margin-top: 10px;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(23, 36, 64, 0.85);
    border: 1px solid rgba(112, 240, 255, 0.3);
    color: var(--text-primary, #f5f7fb);
    box-shadow: inset 0 0 20px rgba(0, 158, 255, 0.08);
}

.aurora-nearby-city-title {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11px;
    color: var(--text-secondary, #8892b0);
    margin-bottom: 6px;
}

.aurora-nearby-city-distance {
    margin-top: 4px;
    font-size: 13px;
    color: var(--text-secondary, #c7d0e0);
}

/* Phone confirmation display */
.aurora-phone-confirmation {
    margin-top: 10px;
    padding: 12px;
    background: var(--surface-raised);
    border-left: 4px solid var(--status-info);
    border-radius: var(--radius-sm);
}

.aurora-phone-confirmation strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.aurora-phone-display-number {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Timezone modal */
.aurora-tz-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 12, 20, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.aurora-tz-modal-content {
    background: var(--surface-base);
    border: 1px solid var(--border-aurora);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-raised);
}

.aurora-tz-modal-content h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.aurora-tz-modal-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.aurora-tz-modal-content .aurora-detected-tz {
    font-weight: 700;
    color: var(--aurora-cyan);
}

.aurora-tz-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.aurora-tz-modal-actions button {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.aurora-tz-modal-actions button.aurora-tz-confirm {
    background: var(--accent-slate);
    color: var(--text-primary);
}

.aurora-tz-modal-actions button.aurora-tz-confirm:hover {
    background: var(--gradient-cta);
}

.aurora-tz-modal-actions button.aurora-tz-manual {
    background: var(--surface-raised);
    color: var(--text-secondary);
    border: 1px solid var(--border-soft);
}

.aurora-tz-modal-actions button.aurora-tz-manual:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
}

/* Leaflet map lighter navy blue theme - Option 1: Good Contrast */
.aurora-map-tiles {
    filter:
        saturate(0.35)
        hue-rotate(190deg)
        brightness(0.5)
        contrast(1.2);
}

/* Deep navy canvas */
.leaflet-container {
    background: #0b1424 !important;
}

/* Subtle nebula overlay for cohesion */
.leaflet-tile-pane::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(31, 112, 255, 0.08), transparent 45%),
                radial-gradient(circle at 80% 30%, rgba(137, 46, 255, 0.08), transparent 50%);
    pointer-events: none;
}

/* Improve readability of built-in controls without overexposing other UI */
.leaflet-marker-icon,
.leaflet-popup-content,
.leaflet-control {
    filter: drop-shadow(0 4px 12px rgba(5, 8, 15, 0.45));
}

.leaflet-control-zoom a {
    background: rgba(8, 14, 24, 0.85) !important;
    color: #e2ecff !important;
    border: 1px solid rgba(146, 199, 255, 0.18) !important;
}

.leaflet-control-zoom a:hover {
    background: rgba(25, 43, 78, 0.95) !important;
    color: #ffffff !important;
}

.leaflet-container a {
    color: #4dd8ff !important;
    text-shadow: none;
}

.leaflet-container .leaflet-control-attribution {
    background: rgba(5, 9, 16, 0.85) !important;
    color: rgba(218, 231, 255, 0.95) !important;
    font-size: 11px;
    border-radius: 4px;
    filter: none;
}

.leaflet-marker-icon.aurora-map-pin-wrapper {
    background: transparent !important;
    border: none !important;
    width: 38px !important;
    height: 38px !important;
    pointer-events: none;
}

.leaflet-marker-icon.aurora-map-pin-wrapper .aurora-map-pin {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
    margin: 10px auto;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #1f9cff 0%, #0a5dff 55%, #031b48 100%);
    border: 2px solid rgba(173, 241, 255, 0.75);
    box-shadow: 0 0 24px rgba(54, 198, 255, 0.7);
}

.leaflet-marker-icon.aurora-map-pin-wrapper .aurora-map-pin::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid rgba(77, 216, 255, 0.25);
}

.leaflet-marker-icon.aurora-map-pin-wrapper .aurora-map-pin::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(77, 216, 255, 0.28) 0%, rgba(3, 27, 72, 0) 80%);
    animation: aurora-pin-pulse 2.6s ease-out infinite;
}

.leaflet-marker-icon.aurora-map-pin-wrapper::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    width: 26px;
    height: 10px;
    background: radial-gradient(circle, rgba(1, 5, 12, 0.45) 0%, rgba(1,5,12,0) 70%);
}

@keyframes aurora-pin-pulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    60% { transform: scale(1.8); opacity: 0; }
    100% { opacity: 0; }
}

.aurora-settings-section h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--aurora-green);
    font-size: 18px;
    font-weight: 600;
}

.aurora-settings-section p {
    margin: 0 0 16px 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* ============================================
   AURORA USER SETTINGS - ADVANCED METRIC TOGGLES
   ============================================ */

/* Container for each metric row */
.aurora-metric-row {
    display: grid;
    grid-template-columns: 180px 140px 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px;
    background: var(--surface-base);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
}

.aurora-metric-row label:first-child {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin: 0;
}

.aurora-metric-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.aurora-metric-toggle input[type="checkbox"] {
    margin: 0;
}

.aurora-metric-toggle span {
    font-size: 13px;
    color: var(--text-secondary);
}

.aurora-metric-row input[type="number"] {
    max-width: 180px;
    height: 38px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-soft);
    background: var(--surface-raised);
    color: var(--text-primary);
    font-size: 14px;
}

.aurora-metric-row input[type="number"]:focus {
    outline: none;
    border-color: var(--aurora-violet);
    box-shadow: 0 0 0 2px rgba(140, 110, 252, 0.25);
}

/* Mobile: Stack vertically */
@media (max-width: 600px) {
    .aurora-metric-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .aurora-metric-row label:first-child {
        font-size: 15px;
        padding-bottom: 4px;
    }

    .aurora-metric-row input[type="number"] {
        max-width: 100%;
    }
}

/* Experimental feature notice */
.aurora-experimental-notice {
    padding: 12px 16px;
    background: rgba(255, 212, 0, 0.1);
    border-left: 4px solid var(--status-warning);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.5;
}

.aurora-experimental-notice strong {
    color: var(--status-warning);
    font-weight: 600;
}

/* ============================================
   AURORA USER SETTINGS - TIME SCHEDULE
   ============================================ */

/* Grid container */
.aurora-schedule-grid {
    max-width: 800px;
    margin-bottom: 16px;
}

/* Individual day container */
.aurora-schedule-day {
    display: grid;
    grid-template-columns: 110px auto 140px 140px;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px;
    background: var(--surface-base);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
}

/* Day label (Monday, Tuesday, etc.) */
.aurora-schedule-day-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.aurora-schedule-day-label label {
    margin: 0;
    cursor: default;
}

/* Enable checkbox container */
.aurora-schedule-enable {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.aurora-schedule-enable input[type="checkbox"] {
    margin: 0;
}

.aurora-schedule-enable span {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Time input wrapper (Start/End) */
.aurora-schedule-time-input {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.aurora-schedule-time-input span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aurora-schedule-time-input input[type="time"] {
    width: 100%;
    height: 38px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-soft);
    background: var(--surface-raised);
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.2s;
}

.aurora-schedule-time-input input[type="time"]:focus {
    outline: none;
    border-color: var(--aurora-violet);
    box-shadow: 0 0 0 2px rgba(140, 110, 252, 0.25);
}

/* Hide controls container since we're using direct grid on .aurora-schedule-day */
.aurora-schedule-controls {
    display: contents;
}

/* Tablet: Adjust spacing */
@media (max-width: 768px) {
    .aurora-schedule-day {
        grid-template-columns: 100px auto 130px 130px;
        gap: 10px;
        padding: 10px;
    }

    .aurora-schedule-day-label {
        font-size: 13px;
    }
}

/* Mobile: Stack everything vertically */
@media (max-width: 600px) {
    .aurora-schedule-day {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
    }

    .aurora-schedule-day-label {
        font-size: 15px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--border-soft);
    }

    .aurora-schedule-enable {
        padding: 4px 0;
    }

    .aurora-schedule-enable span {
        font-size: 14px;
    }

    .aurora-schedule-time-input {
        width: 100%;
    }

    .aurora-schedule-time-input span {
        font-size: 12px;
    }

    .aurora-schedule-time-input input[type="time"] {
        height: 44px;
        font-size: 16px;
    }
}

/* ========================================
   Pathway Insight Messages
   ======================================== */
/* Dashboard & legacy layout classes (from style.css) */
/* Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-right: 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider.round {
    border-radius: 24px;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background-color: #26c6da;
}

.switch input:checked + .slider:before {
    transform: translateX(26px);
}

/* Flash Message */
.satellite_flash_msg {
    color: var(--aurora-green);
    margin-bottom: 15px;
}

/* AP Calendar Table */
.ap-calendar-table {
    width: 100%;
    border-collapse: collapse;
}

.ap-calendar-table th,
.ap-calendar-table td {
    border: 1px solid #44444;
    padding: 8px;
    text-align: left;
}

.ap-calendar-table th {
    background-color: #f2f2f2;
}

.ap-calendar-error {
    color: #ff0000;
    font-weight: bold;
}

/* Responsive Styles */
@media only screen and (max-width: 768px) {
    .card-group-summary {
        flex-direction: column;
    }

    .card {
        flex: 1 1 100%;
    }

    .topbar {
        position: relative;
    }
}
/* Combined Overview */
.sat_combined_overview .full-width-container {
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

.combined-dashboard {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background-color: transparent;
    padding: 0;
    border-radius: .25rem;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

.combined-dashboard .card {
    flex: 1 1 calc(16.666% - 15px);
    max-width: calc(16.666% - 15px);
    min-width: 150px;
    background-color: var(--surface-base);
    color: var(--text-primary);
    border: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.combined-dashboard .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    text-align: left;
}

.combined-dashboard .card-body .card-value {
    font-family: var(--h3-font-family, inherit);
    font-weight: var(--h3-font-weight, inherit);
    font-size: var(--h3-font-size, inherit);
    font-style: var(--h3-font-style, inherit);
    line-height: var(--h3-line-height, 1.4);
    letter-spacing: var(--h3-letter-spacing, inherit);
    margin: 0 0 4px 0;
    color: var(--text-primary);
    padding-bottom: 10px;
}

.combined-dashboard .card-body .card-title {
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.combined-dashboard .progress {
    height: 10px;
    background-color: var(--border-strong);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-top: auto;
}

.combined-dashboard .progress-bar {
    height: 100%;
    transition: width 0.6s ease;
    border-radius: .25rem;
}

.combined-dashboard .bg-power {
    background-color: #26c6da;
}

.combined-dashboard .bg-bz {
    background-color: #f62d51;
}

.combined-dashboard .bg-bt {
    background-color: #eceff1;
}

.combined-dashboard .bg-wind-speed {
    background-color: #dbeb24;
}

.combined-dashboard .bg-density {
    background-color: #dd9517;
}

@media (max-width: 1200px) {
    .combined-dashboard .card {
        flex: 1 1 calc(25% - 15px);
        max-width: calc(25% - 15px);
    }
}

@media (max-width: 992px) {
    .combined-dashboard .card {
        flex: 1 1 calc(33.333% - 15px);
        max-width: calc(33.333% - 15px);
    }
}

@media (max-width: 768px) {
    .combined-dashboard .card {
        flex: 1 1 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

@media (max-width: 576px) {
    .combined-dashboard .card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
/* Bz/Bt Chart */
.sat_bz_bt_chart .custom-container.chart-container {
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
    background-color: var(--surface-base);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}

.sat_bz_bt_chart canvas {
    width: 100% !important;
    height: 400px !important;
}

@media (max-width: 768px) {
    .sat_bz_bt_chart canvas {
        height: 300px !important;
    }
}

@media (max-width: 576px) {
    .sat_bz_bt_chart canvas {
        height: 250px !important;
    }
}

/* Min by Min */
.sat_min_by_min .table-responsive {
    /* Natural flow - no overflow constraints */
}

.sat_min_by_min .sate_tbl_head {
    font-weight: bold;
    margin-bottom: 10px;
    text-align: left;
}

.sat_min_by_min .table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--surface-base);
    color: var(--text-primary);
}

.sat_min_by_min .table th,
.sat_min_by_min .table td {
    border: 1px solid var(--border-soft);
    padding: 8px;
    text-align: left;
}

.sat_min_by_min .table th {
    background-color: var(--surface-raised);
}

.sat_min_by_min .table tr:nth-child(even) {
    background-color: var(--surface-raised);
}

.sat_min_by_min .table tr:hover {
    background-color: var(--surface-hover);
}

/* AP Forecast Table */
.sat_ap_forecast .ap-calendar-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--surface-base);
    color: var(--text-primary);
}

.sat_ap_forecast .ap-calendar-table th,
.sat_ap_forecast .ap-calendar-table td {
    border: 1px solid var(--border-soft);
    padding: 8px;
    text-align: left;
}

.sat_ap_forecast .ap-calendar-table th {
    background-color: var(--surface-raised);
}

.sat_ap_forecast .ap-calendar-table tr:nth-child(even) {
    background-color: var(--surface-raised);
}

.sat_ap_forecast .ap-calendar-table tr:hover {
    background-color: var(--surface-hover);
}

.sat_ap_forecast .card-body h3 {
    margin-bottom: 15px;
}

.ap-calendar-error {
    color: #ff0000;
    font-weight: bold;
}

/* Aurora Oval Image Styles */
.sat_oval_img .northen,
.sat_oval_img .southen {
    margin-bottom: 15px;
}

.sat_oval_img .card-body h3 {
    margin-bottom: 15px;
}

.sat_oval_img .card-body p {
    font-weight: bold;
    margin-bottom: 5px;
}

.aurora-bz-bt-chart-container {
    width: 100%;
    margin: 0 auto;
    background: var(--surface-base);
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    height: 400px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
}

.aurora-chart-heading {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.2em;
    text-align: center;
}

.aurora-chart-legend {
    text-align: center;
    margin-bottom: 10px;
}

.aurora-chart-legend span {
    display: inline-block;
    margin: 0 10px;
    color: var(--text-primary);
    font-weight: bold;
}

.aurora-legend-bz::before {
    content: "● ";
    color: #f62d51;
}

.aurora-legend-bt::before {
    content: "● ";
    color: #26C6DA;
}

.aurora-chart-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}
.aurora-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 0.75rem;
}
