/* 1) Container */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    cursor: pointer;             /* make entire area clickable */
  }
  
  /* 2) Hide the native checkbox */
  .switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
  }
  
  /* 3) The track */
  .switch .slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: background-color 0.4s;
    border-radius: 24px;
  }
  
  /* 4) The thumb */
  .switch .slider:before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;                   /* (24px–18px)/2 = 3px */
    bottom: 3px;                 /* same centering on vertical axis */
    background-color: #fff;
    transition: transform 0.4s;
    border-radius: 50%;
  }
  
  /* 5) Checked state */
  .switch input:checked + .slider {
    background-color: rgb(8, 84, 119);
  }
  .switch input:checked + .slider:before {
    transform: translateX(26px); /* 50–18–(2×3) = 26px */
  }
  
  /* 6) Focus state (keyboard access) */
  .switch input:focus + .slider {
    box-shadow: 0 0 2px rgb(8, 84, 119);
  }
  
  /* 7) Optional "round" modifier */
  .switch .slider.round {
    border-radius: 24px;
  }
  .switch .slider.round:before {
    border-radius: 50%;
  }
  
.updatepress-settings-container {
    display: flex;
    margin: 20px 0;
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.updatepress-tab-nav {
    width: 200px;
    background: #f9f9f9;
    border-right: 1px solid #ccd0d4;
    padding: 0;
    margin: 0;
}

.updatepress-tab-nav li {
    margin: 0;
    padding: 0;
    display: block;
}

.updatepress-tab-nav li a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #2271b1;
    border-bottom: 1px solid #ccd0d4;
    font-size: 14px;
    transition: all 0.2s ease;
}

.updatepress-tab-nav li a:hover {
    background: #fff;
    color: #1d2327;
}

.updatepress-tab-nav li a.active {
    background: #fff;
    color: #1d2327;
    font-weight: 600;
    margin-right: -1px;
    border-right: 2px solid #2271b1;
}

.updatepress-tab-content {
    flex: 1;
    padding: 20px;
    background: #fff;
}

.updatepress-tab-panel {
    display: none;
}

.updatepress-tab-panel.active {
    display: block;
}

.updatepress-tab-panel h2 {
    margin-top: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #ccd0d4;
}

/* Danger Zone Styles */
.updatepress-danger-zone {
    margin-top: 20px;
    padding: 15px;
    background: #fff5f5;
    border: 1px solid #dc3232;
    border-radius: 4px;
}

.updatepress-danger-zone h3 {
    color: #dc3232;
    margin-top: 0;
}

.updatepress-danger-zone p {
    color: #666;
    margin-bottom: 15px;
}

.updatepress-danger-button {
    background: #dc3232;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.updatepress-danger-button:hover {
    background: #c92424;
}

/* Import/Export Styles */
.updatepress-export-section,
.updatepress-import-section {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    margin-bottom: 20px;
}

.updatepress-export-list,
.updatepress-import-list {
    margin: 15px 0;
    padding-left: 20px;
}

.updatepress-export-list li,
.updatepress-import-list li {
    margin: 8px 0;
    padding-left: 25px;
    position: relative;
}

.updatepress-export-list li:before,
.updatepress-import-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2271b1;
    font-weight: bold;
}

.updatepress-import-notice {
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    padding: 12px 15px;
    margin: 20px 0;
}

.updatepress-import-notice p {
    margin: 0;
    color: #1d2327;
}

.updatepress-file-input-wrapper {
    margin: 15px 0;
}

.updatepress-file-input-wrapper input[type="file"] {
    padding: 10px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    width: 100%;
    max-width: 400px;
    background: #f9f9f9;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    .updatepress-export-section,
    .updatepress-import-section {
        padding: 15px;
    }

    .updatepress-file-input-wrapper input[type="file"] {
        max-width: 100%;
    }
}

/* Uninstall Settings Styles */
.updatepress-uninstall-section {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    margin-bottom: 30px;
}

.updatepress-uninstall-option {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e2e4e7;
    border-radius: 4px;
}

.updatepress-uninstall-option label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.updatepress-uninstall-option input[type="radio"] {
    margin-top: 3px;
}

.option-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.option-label strong {
    color: #1d2327;
}

.option-label .description {
    color: #646970;
    font-size: 13px;
}

/* Manual Cleanup Section */
.updatepress-cleanup-section {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
}

.updatepress-cleanup-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.updatepress-cleanup-option {
    background: #f8f9fa;
    padding: 15px;
    border: 1px solid #e2e4e7;
    border-radius: 4px;
}

.updatepress-cleanup-option h4 {
    margin: 0 0 10px 0;
    color: #1d2327;
}

.updatepress-cleanup-option p {
    margin: 0 0 15px 0;
    color: #646970;
    font-size: 13px;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    .updatepress-cleanup-options {
        grid-template-columns: 1fr;
    }
    
    .updatepress-uninstall-option label {
        gap: 8px;
    }
}

/* Floating Widget Settings */
.updatepress-toggle-field {
    display: flex;
    align-items: center;
    gap: 15px;
}

.updatepress-toggle-field .description {
    color: #646970;
}

.updatepress-delay-field-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.updatepress-delay-field-wrapper input[type="number"] {
    width: 80px;
}

.updatepress-delay-field-wrapper .description {
    color: #646970;
}

/* Hide arrows from number input */
.updatepress-delay-field-wrapper input[type="number"]::-webkit-inner-spin-button,
.updatepress-delay-field-wrapper input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.updatepress-delay-field-wrapper input[type="number"] {
    -moz-appearance: textfield;
}

.updatepress-display-rule-wrapper {
    margin-top: 10px;
}

.updatepress-display-rule-select {
    min-width: 200px;
}

.updatepress-pages-selector {
    margin-top: 15px;
    max-width: 500px;
}

.updatepress-pages-search {
    position: relative;
    margin-bottom: 20px;
}

.updatepress-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.search-result {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.search-result:hover {
    background: #f5f5f5;
}

.no-results {
    padding: 8px 12px;
    color: #666;
    font-style: italic;
}

.updatepress-selected-pages {
    margin-top: 20px;
}

.updatepress-selected-pages h4 {
    margin: 0 0 10px;
}

#updatepress_selected_pages_list {
    margin: 0;
    padding: 0;
    list-style: none;
}

#updatepress_selected_pages_list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    margin-bottom: 5px;
    border-radius: 3px;
}

.remove-page {
    background: none;
    border: none;
    color: #cc0000;
    cursor: pointer;
    padding: 0 5px;
    font-size: 18px;
    line-height: 1;
}

.remove-page:hover {
    color: #990000;
}

.updatepress-recent-days-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.updatepress-recent-days-wrapper input[type="number"] {
    width: 80px;
}

.updatepress-recent-days-wrapper .description {
    color: #646970;
}

/* Hide arrows from number input */
.updatepress-recent-days-wrapper input[type="number"]::-webkit-inner-spin-button,
.updatepress-recent-days-wrapper input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.updatepress-recent-days-wrapper input[type="number"] {
    -moz-appearance: textfield;
}

.updatepress-display-count-wrapper {
    margin-top: 15px;
}

.updatepress-radio-group {
    margin-bottom: 10px;
}

.updatepress-radio-group label {
    display: block;
    margin-bottom: 8px;
    color: #1d2327;
}

.updatepress-radio-group input[type="radio"] {
    margin-right: 8px;
}

.updatepress-custom-count-wrapper {
    margin: 10px 0 10px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.updatepress-custom-count-wrapper input[type="number"] {
    width: 60px;
}

.updatepress-custom-count-wrapper .description {
    color: #646970;
}

/* UpdatePress Admin List Table Columns */
.updatepress-views-count {
    display: flex;
    align-items: center;
    font-size: 13px;
}

.updatepress-feedback-display {
    display: flex;
    align-items: center;
    font-size: 13px;
}

.updatepress-likes-count,
.updatepress-dislikes-count {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.updatepress-likes-count {
    color: #4CAF50 !important;
}

.updatepress-dislikes-count {
    color: #f44336 !important;
}

/* Column width adjustments */
.wp-list-table .column-views {
    width: 80px;
}

.wp-list-table .column-feedback {
    width: 120px;
}

/* Private Mode Settings */
.updatepress-private-mode-wrapper {
    margin-top: 15px;
}

.updatepress-private-mode-info {
    margin-top: 15px;
}

.updatepress-private-mode-info .notice {
    margin: 0;
    padding: 12px 15px;
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
}

.updatepress-private-mode-info .notice p {
    margin: 0;
    color: #1d2327;
    font-size: 13px;
    line-height: 1.4;
}

.updatepress-private-mode-info .notice strong {
    color: #2271b1;
    display: block;
    margin-bottom: 8px;
}

/* Responsive adjustments for admin columns */
@media screen and (max-width: 782px) {
    .wp-list-table .column-views,
    .wp-list-table .column-feedback {
        display: none;
    }
}

.updatepress-sort-order-wrapper {
    margin-top: 15px;
}

.updatepress-sort-order-select {
    min-width: 200px;
    margin-bottom: 8px;
}

.updatepress-sort-order-wrapper .description {
    color: #646970;
    display: block;
}

.updatepress-content-types-wrapper {
    margin-top: 18px;
    display: grid;
    gap: 16px;
}

.updatepress-content-types-section {
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e2e4e7;
    border-radius: 4px;
}

.updatepress-content-types-section h4 {
    margin: 0 0 8px;
}

.updatepress-content-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px 12px;
    margin-top: 8px;
}

.updatepress-content-type-option {
    display: flex;
    gap: 8px;
    align-items: center;
}

.updatepress-tag-colors-wrapper {
    display: grid;
    gap: 12px;
}

.updatepress-tag-default-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.updatepress-tag-default-colors label {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.updatepress-tag-colors-grid {
    display: grid;
    gap: 8px;
}

.updatepress-tag-color-row {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid #e2e4e7;
    border-radius: 4px;
}

.updatepress-tag-color-row label {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.updatepress-drawer-footer-options {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.updatepress-drawer-footer-button,
.updatepress-drawer-footer-text {
    display: grid;
    gap: 8px;
}

.updatepress-custom-trigger-options {
    margin-top: 8px;
}
  