/* YouTube Channels Admin Styles */

/* Dashboard Stats */
.sdawchfo-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.sdawchfo-stat-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
}

.sdawchfo-stat-number {
    display: block;
    font-size: 32px;
    font-weight: 600;
    color: #1d2327;
    line-height: 1.2;
}

.sdawchfo-stat-label {
    display: block;
    font-size: 13px;
    color: #646970;
    margin-top: 4px;
}

/* Labels screen — internal key hint under each field name */
.sdawchfo-label-key {
    display: inline-block;
    margin-top: 4px;
    padding: 1px 6px;
    font-size: 11px;
    color: #646970;
    background: #f0f0f1;
    border-radius: 3px;
}

/* Status indicators */
.sdawchfo-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.sdawchfo-status-ok {
    background: #d4edda;
    color: #155724;
}

.sdawchfo-status-pending {
    background: #fff3cd;
    color: #856404;
}

.sdawchfo-status-refreshing {
    background: #cce5ff;
    color: #004085;
}

.sdawchfo-status-error {
    background: #f8d7da;
    color: #721c24;
}

.sdawchfo-error-msg {
    color: #721c24;
}

/* Status table */
.sdawchfo-status-table {
    margin-top: 16px;
}

.sdawchfo-status-table td {
    vertical-align: middle;
}

.sdawchfo-mini-avatar {
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 8px;
}

/* Add Channel Card */
.sdawchfo-add-channel-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 16px 20px;
    margin: 20px 0;
}

.sdawchfo-add-channel-card h2 {
    margin-top: 0;
    padding-top: 0;
}

.sdawchfo-add-form .sdawchfo-form-row {
    margin-bottom: 12px;
}

.sdawchfo-add-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.sdawchfo-add-form .regular-text {
    width: 100%;
    max-width: 400px;
}

.sdawchfo-add-status {
    margin-left: 8px;
    font-style: italic;
}

.sdawchfo-add-status.success {
    color: #00a32a;
}

.sdawchfo-add-status.error {
    color: #d63638;
}

/* Channel avatar in list */
.sdawchfo-channel-avatar {
    border-radius: 50%;
    vertical-align: middle;
}

.sdawchfo-handle {
    color: #646970;
    font-weight: 400;
}

/* List table action buttons */
.sdawchfo-channels-page .button-small {
    margin-right: 4px;
}

/* Channel edit page */
.sdawchfo-channel-info-card {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 16px 20px;
    margin: 20px 0;
    gap: 16px;
}

.sdawchfo-edit-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sdawchfo-channel-details h2 {
    margin: 0 0 4px;
}

.sdawchfo-channel-details .sdawchfo-handle {
    margin: 0 0 4px;
}

/* Sortable rows */
.sdawchfo-sortable-row.ui-sortable-helper {
    background: #f0f6fc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.sdawchfo-sortable-placeholder {
    background: #f0f6fc;
    height: 50px;
}

/* Shortcode examples */
.sdawchfo-shortcode-examples {
    background: #f6f7f7;
    padding: 12px 20px;
    border-radius: 4px;
}

.sdawchfo-shortcode-examples li {
    margin-bottom: 8px;
}

.sdawchfo-shortcode-examples code {
    background: #e0e0e0;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Loading spinner */
.spinner.is-active {
    visibility: visible;
}

/* Refresh all */
.sdawchfo-refresh-all-status {
    margin-left: 12px;
    font-style: italic;
}

/* ========================================
   Settings — Info Cards
   ======================================== */

.sdawchfo-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    margin: 24px 0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sdawchfo-card-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.sdawchfo-card-header:hover {
    background: #f9f9f9;
}

.sdawchfo-card-header.sdawchfo-open {
    border-bottom-color: #e0e0e0;
}

.sdawchfo-card-header h2 {
    margin: 0;
    padding: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
    flex: 1;
}

.sdawchfo-card-icon {
    color: #2271b1;
    margin-right: 10px;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.sdawchfo-toggle-icon {
    color: #8c8f94;
    font-size: 20px;
    width: 20px;
    height: 20px;
    transition: transform 0.25s ease;
}

.sdawchfo-card-header.sdawchfo-open .sdawchfo-toggle-icon {
    transform: rotate(180deg);
}

.sdawchfo-card-body {
    display: none;
    padding: 24px 24px 28px;
}

.sdawchfo-card-body.sdawchfo-visible {
    display: block;
}

.sdawchfo-intro {
    font-size: 14px;
    color: #3c434a;
    line-height: 1.6;
    margin: 0 0 20px;
    max-width: 720px;
}

/* Quick links bar */
.sdawchfo-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 16px;
}

.sdawchfo-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #2271b1;
    background: #f0f6fc;
    border: 1px solid #c5d9ed;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    line-height: 1;
}

.sdawchfo-quick-link:hover {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
    box-shadow: 0 2px 6px rgba(34, 113, 177, 0.25);
}

.sdawchfo-quick-link:hover .dashicons {
    color: #fff;
}

.sdawchfo-quick-link .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    color: #2271b1;
    transition: color 0.15s ease;
}

/* Overview tabs */
.sdawchfo-ov-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0;
}

.sdawchfo-ov-tab {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #646970;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    border-radius: 4px 4px 0 0;
    white-space: nowrap;
}

.sdawchfo-ov-tab:hover {
    color: #2271b1;
    background: #f0f6fc;
}

.sdawchfo-ov-tab.sdawchfo-ov-tab-active {
    color: #2271b1;
    font-weight: 600;
    border-bottom-color: #2271b1;
}

.sdawchfo-ov-panel {
    display: none;
}

.sdawchfo-ov-panel.sdawchfo-ov-panel-active {
    display: block;
}

.sdawchfo-ov-intro {
    font-size: 13px;
    color: #646970;
    margin: 0 0 16px;
    font-style: italic;
}

/* Tooltip icon */
.sdawchfo-tip {
    display: inline-block;
    color: #8c8f94;
    cursor: help;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    position: relative;
    vertical-align: middle;
    margin-left: 2px;
}

.sdawchfo-tip:hover {
    color: #2271b1;
}

.sdawchfo-tip::after {
    content: attr(data-tip);
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    background: #1d2327;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: normal;
    width: 260px;
    max-width: 90vw;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sdawchfo-tip::before {
    content: '';
    position: absolute;
    left: 6px;
    bottom: calc(100% + 2px);
    border: 6px solid transparent;
    border-top-color: #1d2327;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 100;
}

.sdawchfo-tip:hover::after,
.sdawchfo-tip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Flip tooltip to the left when near right edge */
.sdawchfo-tip.sdawchfo-tip-left::after {
    left: auto;
    right: 0;
}

.sdawchfo-tip.sdawchfo-tip-left::before {
    left: auto;
    right: 6px;
}

/* Features grid */
.sdawchfo-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 8px 16px;
    margin: 0 0 28px;
}

.sdawchfo-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #3c434a;
    line-height: 1.4;
    background: #f6f7f7;
}

.sdawchfo-feature .dashicons {
    color: #2271b1;
    flex-shrink: 0;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Rich feature with title + description */
.sdawchfo-feature-rich {
    align-items: flex-start;
    padding: 12px 14px;
}

.sdawchfo-feature-rich .dashicons {
    margin-top: 2px;
}

.sdawchfo-feature-rich div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sdawchfo-feature-rich strong {
    font-size: 13px;
    color: #1d2327;
}

.sdawchfo-feature-rich div > span {
    font-size: 12px;
    color: #646970;
    line-height: 1.5;
}

/* Shortcode cards */
.sdawchfo-shortcode-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 12px 0 28px;
}

.sdawchfo-sc-card {
    background: #f0f6fc;
    border: 1px solid #c5d9ed;
    border-radius: 6px;
    padding: 16px;
}

.sdawchfo-sc-card .sdawchfo-sc-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #135e96;
    background: none;
    padding: 0;
    margin-bottom: 6px;
}

.sdawchfo-sc-card p {
    margin: 0;
    font-size: 13px;
    color: #3c434a;
    line-height: 1.4;
}

/* Reference table */
.sdawchfo-ref-table {
    width: 100%;
    max-width: 760px;
    border-collapse: collapse;
    margin: 12px 0 28px;
    font-size: 13px;
}

.sdawchfo-ref-table thead th {
    background: #f0f0f1;
    text-align: left;
    padding: 10px 12px;
    font-weight: 600;
    color: #1d2327;
    border-bottom: 2px solid #c3c4c7;
}

.sdawchfo-ref-table tbody td {
    padding: 8px 12px;
    border-bottom: 1px solid #e9e9e9;
    vertical-align: top;
    color: #3c434a;
}

.sdawchfo-ref-table tbody tr:last-child td {
    border-bottom: none;
}

.sdawchfo-ref-table tbody tr:hover {
    background: #f9f9f9;
}

.sdawchfo-ref-table code {
    background: #e8e8e8;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
}

.sdawchfo-ref-table .sdawchfo-na {
    color: #a7aaad;
}

/* Examples */
.sdawchfo-examples {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0 4px;
}

.sdawchfo-example {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 14px;
    background: #f6f7f7;
    border-radius: 6px;
    flex-wrap: wrap;
}

.sdawchfo-example code {
    background: #dcdcde;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    color: #1d2327;
    flex-shrink: 0;
}

.sdawchfo-example span {
    font-size: 13px;
    color: #646970;
}

/* ========================================
   Settings — API Key Guide Steps
   ======================================== */

.sdawchfo-steps {
    position: relative;
    margin: 20px 0 28px;
    padding-left: 40px;
}

.sdawchfo-steps::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
    border-radius: 1px;
}

.sdawchfo-step {
    position: relative;
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.sdawchfo-step:last-child {
    margin-bottom: 0;
}

.sdawchfo-step-number {
    position: absolute;
    left: -40px;
    top: 0;
    width: 32px;
    height: 32px;
    background: #2271b1;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    z-index: 1;
}

.sdawchfo-step-body {
    flex: 1;
    min-width: 0;
}

.sdawchfo-step-body h4 {
    margin: 4px 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}

.sdawchfo-step-body ol {
    margin: 0;
    padding-left: 20px;
}

.sdawchfo-step-body ol li {
    margin-bottom: 4px;
    font-size: 13px;
    color: #3c434a;
    line-height: 1.5;
}

.sdawchfo-step-body ol li a {
    color: #2271b1;
}

.sdawchfo-step-note {
    margin: 0 0 8px;
    font-size: 13px;
    color: #646970;
    font-style: italic;
}

/* Quota box */
.sdawchfo-quota-box {
    background: linear-gradient(135deg, #f0f6fc 0%, #f6f7f7 100%);
    border: 1px solid #c5d9ed;
    border-radius: 8px;
    padding: 20px 24px;
    margin-top: 4px;
}

.sdawchfo-quota-box h4 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #135e96;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sdawchfo-quota-box h4 .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.sdawchfo-quota-box ul {
    margin: 0;
    padding-left: 18px;
}

.sdawchfo-quota-box ul li {
    margin-bottom: 4px;
    font-size: 13px;
    color: #3c434a;
    line-height: 1.5;
}

.sdawchfo-quota-box ul li strong {
    color: #1d2327;
}

/* ========================================
   Dashboard — Shortcode Builder
   ======================================== */

.sdawchfo-builder-step {
    margin-bottom: 24px;
}

.sdawchfo-builder-step:last-child {
    margin-bottom: 0;
}

/* Type selector cards */
.sdawchfo-type-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.sdawchfo-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 12px;
    background: #f6f7f7;
    border: 2px solid #dcdcde;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    text-align: center;
}

.sdawchfo-type-card:hover {
    border-color: #b4b9be;
    background: #f0f0f1;
}

.sdawchfo-type-card.sdawchfo-active {
    border-color: #2271b1;
    background: #f0f6fc;
    box-shadow: 0 0 0 1px #2271b1;
}

.sdawchfo-type-card .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #646970;
}

.sdawchfo-type-card.sdawchfo-active .dashicons {
    color: #2271b1;
}

.sdawchfo-type-card strong {
    font-size: 13px;
    color: #1d2327;
}

.sdawchfo-type-card > span {
    font-size: 12px;
    color: #646970;
}

.sdawchfo-type-desc {
    font-size: 11px;
    color: #8c8f94;
    font-style: italic;
    line-height: 1.4;
    margin-top: 2px;
    text-align: center;
}

/* Options grid */
.sdawchfo-builder-options {
    margin-top: 8px;
}

.sdawchfo-opt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px 16px;
    margin-bottom: 16px;
}

.sdawchfo-opt-row {
    margin-bottom: 12px;
}

.sdawchfo-opt-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 4px;
}

.sdawchfo-opt-row select {
    width: 100%;
    max-width: 240px;
}

.sdawchfo-opt-grid .sdawchfo-opt-row {
    margin-bottom: 0;
}

.sdawchfo-opt-desc {
    margin: 4px 0 0 !important;
    font-size: 12px !important;
    color: #646970;
    font-style: italic;
    line-height: 1.4;
}

/* Channel checkboxes */
.sdawchfo-channel-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 10px 14px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 6px;
}

.sdawchfo-check-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #3c434a;
    cursor: pointer;
}

.sdawchfo-check-label input[disabled] + * {
    opacity: 0.5;
}

/* Toggle checkboxes row */
.sdawchfo-opt-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

/* Output area */
.sdawchfo-builder-output {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0f0f1;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 12px 16px;
}

.sdawchfo-builder-output code {
    flex: 1;
    font-size: 14px;
    color: #1d2327;
    background: none;
    padding: 0;
    word-break: break-all;
    line-height: 1.5;
}

.sdawchfo-copy-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.sdawchfo-copy-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Section headings inside card body */
.sdawchfo-card-body h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}

/* ========================================
   Channels page — Method cards
   ======================================== */

.sdawchfo-method-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 0 0 24px;
}

.sdawchfo-method-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sdawchfo-method-card:hover {
    border-color: #b4b9be;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sdawchfo-method-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: #f6f7f7;
    border-bottom: 1px solid #e9e9e9;
}

.sdawchfo-method-header .dashicons {
    color: #2271b1;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.sdawchfo-method-header h3 {
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    flex: 1;
    border: none;
}

.sdawchfo-method-tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 3px 8px;
    border-radius: 10px;
    line-height: 1;
}

.sdawchfo-tag-easiest {
    background: #d4edda;
    color: #155724;
}

.sdawchfo-tag-quick {
    background: #cce5ff;
    color: #004085;
}

.sdawchfo-tag-advanced {
    background: #fff3cd;
    color: #856404;
}

.sdawchfo-method-body {
    padding: 16px;
}

.sdawchfo-method-body p {
    margin: 0 0 12px;
    font-size: 13px;
    color: #3c434a;
    line-height: 1.5;
}

.sdawchfo-method-body ol {
    margin: 0 0 14px;
    padding-left: 20px;
}

.sdawchfo-method-body ol li {
    margin-bottom: 4px;
    font-size: 13px;
    color: #3c434a;
    line-height: 1.5;
}

.sdawchfo-method-body ol li a {
    color: #2271b1;
}

.sdawchfo-accepted-formats {
    background: #f9f9f9;
    border: 1px solid #e9e9e9;
    border-radius: 6px;
    padding: 10px 12px;
}

.sdawchfo-format-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #8c8f94;
    margin-bottom: 6px;
}

.sdawchfo-accepted-formats code {
    display: block;
    background: #e8e8e8;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #1d2327;
    margin-bottom: 4px;
    word-break: break-all;
}

.sdawchfo-accepted-formats code:last-child {
    margin-bottom: 0;
}

/* Tip box */
.sdawchfo-tip-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: linear-gradient(135deg, #fef9e7 0%, #fefce8 100%);
    border: 1px solid #f0d78c;
    border-radius: 8px;
    padding: 14px 18px;
}

.sdawchfo-tip-box .dashicons {
    color: #b88c1a;
    font-size: 20px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.sdawchfo-tip-box p {
    margin: 0;
    font-size: 13px;
    color: #5c4a13;
    line-height: 1.5;
}

/* ========================================
   Settings — Appearance Section
   ======================================== */

.sdawchfo-appearance-table th {
    vertical-align: top;
    padding-top: 24px;
}

.sdawchfo-appearance-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sdawchfo-color-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.sdawchfo-color-field label,
.sdawchfo-style-field label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
    color: #1d2327;
}

/* Style option cards */
.sdawchfo-style-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sdawchfo-style-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 14px 10px;
    background: #f6f7f7;
    border: 2px solid #dcdcde;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    min-width: 90px;
    text-align: center;
}

.sdawchfo-style-option:hover {
    border-color: #b4b9be;
    background: #f0f0f1;
}

.sdawchfo-style-option.selected {
    border-color: #2271b1;
    background: #f0f6fc;
    box-shadow: 0 0 0 1px #2271b1;
}

.sdawchfo-style-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sdawchfo-style-label {
    font-size: 11px;
    color: #646970;
    font-weight: 500;
}

.sdawchfo-style-option.selected .sdawchfo-style-label {
    color: #2271b1;
    font-weight: 600;
}

/* Button style previews */
.sdawchfo-style-preview {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1;
}

.sdawchfo-preview-btn-outline {
    color: #6366f1;
    border: 1px solid #6366f1;
    background: transparent;
    padding: 5px 14px;
    border-radius: 14px;
}

.sdawchfo-preview-btn-filled {
    color: #fff;
    background: #6366f1;
    border: 1px solid #6366f1;
    padding: 5px 14px;
    border-radius: 6px;
}

.sdawchfo-preview-btn-rounded {
    color: #fff;
    background: #6366f1;
    border: 1px solid #6366f1;
    padding: 5px 14px;
    border-radius: 20px;
}

.sdawchfo-preview-btn-minimal {
    color: #6366f1;
    background: transparent;
    border: none;
    padding: 5px 14px;
    border-bottom: 1px dashed #6366f1;
}

/* Play button shape/size previews */
.sdawchfo-preview-play-rounded,
.sdawchfo-preview-play-circle,
.sdawchfo-preview-play-sm,
.sdawchfo-preview-play-md,
.sdawchfo-preview-play-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
}

.sdawchfo-preview-play-rounded {
    width: 42px;
    height: 30px;
    border-radius: 8px;
}

.sdawchfo-preview-play-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.sdawchfo-preview-play-sm {
    width: 34px;
    height: 24px;
    border-radius: 6px;
}

.sdawchfo-preview-play-md {
    width: 42px;
    height: 30px;
    border-radius: 8px;
}

.sdawchfo-preview-play-lg {
    width: 52px;
    height: 38px;
    border-radius: 10px;
}

/* Badge style previews */
.sdawchfo-preview-badge-pill {
    color: #fff;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sdawchfo-preview-badge-square {
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sdawchfo-preview-badge-outline {
    background: transparent !important;
    padding: 2px 7px;
    border-radius: 10px;
    border: 2px solid currentColor;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sdawchfo-preview-badge-dot {
    background: transparent !important;
    padding: 3px 0;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sdawchfo-preview-badge-dot .sdawchfo-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

/* Live preview colors */
.sdawchfo-preview-live.sdawchfo-preview-badge-pill,
.sdawchfo-preview-live.sdawchfo-preview-badge-square {
    background: #e53e3e;
}

.sdawchfo-preview-live.sdawchfo-preview-badge-outline {
    color: #e53e3e;
}

.sdawchfo-preview-live.sdawchfo-preview-badge-dot {
    color: #e53e3e;
}

.sdawchfo-preview-live .sdawchfo-dot {
    background: #e53e3e;
}

/* Upcoming preview colors */
.sdawchfo-preview-upcoming.sdawchfo-preview-badge-pill,
.sdawchfo-preview-upcoming.sdawchfo-preview-badge-square {
    background: #3182ce;
}

.sdawchfo-preview-upcoming.sdawchfo-preview-badge-outline {
    color: #3182ce;
}

.sdawchfo-preview-upcoming.sdawchfo-preview-badge-dot {
    color: #3182ce;
}

.sdawchfo-preview-upcoming .sdawchfo-dot {
    background: #3182ce;
}

/* Tab style previews */
.sdawchfo-preview-tab-subtle,
.sdawchfo-preview-tab-pill,
.sdawchfo-preview-tab-card {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1;
    padding: 6px 12px;
}

.sdawchfo-preview-tab-subtle {
    background: #f0f0f1;
    border-bottom: 3px solid #6366f1;
    color: #1d2327;
    border-radius: 4px 4px 0 0;
}

.sdawchfo-preview-tab-pill {
    background: #6366f1;
    color: #fff;
    border-radius: 20px;
}

.sdawchfo-preview-tab-card {
    background: #fff;
    color: #1d2327;
    border-top: 3px solid #6366f1;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

/* Icon picker for upcoming badge */
.sdawchfo-icon-picker-row {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e5e5e5;
}

.sdawchfo-icon-picker-row > label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
    color: #1d2327;
}

.sdawchfo-icon-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sdawchfo-icon-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 12px 8px;
    background: #f6f7f7;
    border: 2px solid #dcdcde;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    min-width: 56px;
}

.sdawchfo-icon-option:hover {
    border-color: #b4b9be;
    background: #f0f0f1;
}

.sdawchfo-icon-option.selected {
    border-color: #2271b1;
    background: #f0f6fc;
    box-shadow: 0 0 0 1px #2271b1;
}

.sdawchfo-icon-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sdawchfo-icon-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #3182ce;
}

.sdawchfo-icon-option.selected .sdawchfo-icon-preview {
    color: #2271b1;
}

.sdawchfo-icon-preview svg {
    width: 22px;
    height: 22px;
}

.sdawchfo-icon-label {
    font-size: 10px;
    color: #646970;
    font-weight: 500;
}

.sdawchfo-icon-option.selected .sdawchfo-icon-label {
    color: #2271b1;
    font-weight: 600;
}

/* Desktop Navigation previews */
.sdawchfo-preview-nav-scroll,
.sdawchfo-preview-nav-wrapping,
.sdawchfo-preview-nav-sections,
.sdawchfo-preview-nav-avatars {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 8px;
    min-height: 44px;
    justify-content: center;
}

.sdawchfo-nav-preview-bar,
.sdawchfo-nav-preview-wrap {
    display: flex;
    gap: 4px;
    align-items: center;
}

.sdawchfo-nav-preview-wrap {
    flex-wrap: wrap;
    max-width: 100px;
}

.sdawchfo-nav-pill {
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 8px;
    background: #e5e5e5;
    color: #666;
    white-space: nowrap;
    line-height: 1.3;
}

.sdawchfo-nav-pill.active {
    background: #6366f1;
    color: #fff;
}

.sdawchfo-nav-arrow {
    font-size: 12px;
    color: #999;
    margin-left: 2px;
}

.sdawchfo-nav-avatar {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ccc;
    flex-shrink: 0;
}

.sdawchfo-nav-avatar.active {
    background: #6366f1;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #6366f1;
}

/* Truncation direction preview */
.sdawchfo-trunc-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.sdawchfo-trunc-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #d1d5db;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #d1d5db;
}

.sdawchfo-trunc-name {
    font-size: 10px;
    color: #9ca3af;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.sdawchfo-style-option.selected .sdawchfo-trunc-avatar {
    background: #6366f1;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #6366f1;
}

.sdawchfo-style-option.selected .sdawchfo-trunc-name {
    color: #6366f1;
    font-weight: 700;
}

/* Cron info box */
.sdawchfo-cron-status {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
}

.sdawchfo-cron-status .dashicons {
    flex-shrink: 0;
    margin-top: 1px;
}

.sdawchfo-cron-ok {
    background: #edf7ed;
    color: #1e4620;
    border: 1px solid #c6e1c6;
}

.sdawchfo-cron-ok .dashicons {
    color: #00a32a;
}

.sdawchfo-cron-warn {
    background: #fef8ee;
    color: #6e4b00;
    border: 1px solid #f0d8a8;
}

.sdawchfo-cron-warn .dashicons {
    color: #dba617;
}

.sdawchfo-cron-steps {
    margin-top: 10px;
    padding: 12px 16px;
    background: #f6f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.sdawchfo-cron-steps p {
    margin: 6px 0;
}

.sdawchfo-cron-steps p:first-child {
    margin-top: 0;
}

.sdawchfo-cron-code {
    display: block;
    padding: 8px 12px;
    background: #2c3338;
    color: #a7d3a7;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    margin: 6px 0 12px;
    word-break: break-all;
    user-select: all;
}

/* Live Broadcast Boost */
.sdawchfo-boost-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #1d2327;
    cursor: pointer;
}

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

.sdawchfo-boost-config {
    margin-top: 14px;
    padding: 16px 18px;
    background: #f6f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.sdawchfo-boost-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
}

.sdawchfo-boost-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #3c434a;
    margin-bottom: 4px;
}

.sdawchfo-boost-field select,
.sdawchfo-boost-field input[type="time"] {
    min-width: 120px;
}

.sdawchfo-boost-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 12px;
    padding: 10px 12px;
    background: #f0f6fc;
    border: 1px solid #c5d9ed;
    border-radius: 4px;
    font-size: 12px;
    color: #2271b1;
    line-height: 1.5;
}

.sdawchfo-boost-note .dashicons {
    flex-shrink: 0;
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    color: #2271b1;
}

@media (max-width: 782px) {
    .sdawchfo-style-options {
        gap: 8px;
    }

    .sdawchfo-style-option {
        min-width: 70px;
        padding: 10px 10px 8px;
    }

    .sdawchfo-ov-tabs {
        gap: 2px;
    }

    .sdawchfo-ov-tab {
        padding: 6px 10px;
        font-size: 12px;
    }

    .sdawchfo-tip::after {
        width: 220px;
    }
}