/* Custom styling for Cycle Responsive Slider edit screen */
body.post-type-wp_cycle_slider {
    background: #f6f8fb;
}

body.post-type-wp_cycle_slider #wpbody-content {
    padding-bottom: 60px;
}

/* Page Header & Title Section */
body.post-type-wp_cycle_slider .wp-heading-inline {
    font-size: 28px;
    font-weight: 700;
    color: #1d2327;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    margin-right: 15px;
}

body.post-type-wp_cycle_slider .page-title-action {
    border: 1px solid #3a50a6;
    background: #fff;
    color: #3a50a6;
    border-radius: 6px;
    padding: 6px 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

body.post-type-wp_cycle_slider .page-title-action:hover {
    background: #3a50a6;
    color: #fff;
    border-color: #3a50a6;
}

/* Title Input Modernization */
body.post-type-wp_cycle_slider #titlediv {
    margin-bottom: 25px;
    margin-top: 15px;
}

body.post-type-wp_cycle_slider #titlewrap {
    position: relative;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    padding: 2px 10px;
    display: flex;
    align-items: center;
}

body.post-type-wp_cycle_slider #titlewrap:focus-within {
    border-color: #3a50a6;
    box-shadow: 0 0 0 1px #3a50a6, 0 4px 12px rgba(58, 80, 166, 0.08);
}

body.post-type-wp_cycle_slider #title {
    font-size: 20px;
    font-weight: 600;
    color: #1d2327;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 8px 10px !important;
    flex-grow: 1;
    background: transparent;
}

body.post-type-wp_cycle_slider #titlewrap::after {
    display: none;
}

/* Hide Default Post Stuff */
body.post-type-wp_cycle_slider #postdivrich,
body.post-type-wp_cycle_slider #postimagediv,
body.post-type-wp_cycle_slider #postbox-container-2 .postbox-header {
    display: none !important;
}

/* Unified Postboxes (Cards) */
body.post-type-wp_cycle_slider .postbox {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    background: #fff !important;
    margin-bottom: 25px !important;
    overflow: hidden;
}

body.post-type-wp_cycle_slider .postbox .inside {
    padding: 0 !important;
    margin: 0 !important;
}

/* Tab System Styling */
.wp-cycle-tabs-container {
    display: flex;
    flex-direction: column;
}

.wp-cycle-tabs-nav {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #f0f0f1;
    padding: 0 20px;
}

.wp-cycle-tab-btn {
    padding: 18px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #646970;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.wp-cycle-tab-btn:hover {
    color: #3a50a6;
}

.wp-cycle-tab-btn.active {
    color: #3a50a6;
    border-bottom-color: #3a50a6;
}

.wp-cycle-tab-pane {
    display: none;
    padding: 30px;
}

.wp-cycle-tab-pane.active {
    display: block;
}

/* Workspaces Headers */
.wp-cycle-pane-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.wp-cycle-pane-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1d2327;
}

.wp-cycle-pane-header p {
    margin: 5px 0 0 0;
    color: #646970;
    font-size: 13px;
}

.wp-cycle-header-actions {
    display: flex;
    gap: 10px;
}

/* Premium Buttons */
.wp-cycle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.wp-cycle-btn-primary {
    background: #3a50a6;
    color: #fff;
}

.wp-cycle-btn-primary:hover {
    background: #2a3c85;
    color: #fff;
}

.wp-cycle-btn-secondary {
    background: #fff;
    color: #3a50a6;
    border-color: #3a50a6;
}

.wp-cycle-btn-secondary:hover {
    background: #f4f6fc;
    color: #3a50a6;
}

.wp-cycle-btn-danger {
    background: #fff;
    color: #d63638;
    border-color: #d63638;
}

.wp-cycle-btn-danger:hover {
    background: #fcf3f3;
    color: #d63638;
}

/* Slides Workspace Grid Layout */
.wp-cycle-slides-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wp-cycle-slide-row {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #f0f0f1;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.2s ease;
}

.wp-cycle-slide-row:hover {
    border-color: #ccd0d4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

/* Drag Handle and Order Number */
.wp-cycle-slide-drag-handle {
    cursor: move;
    color: #ccd0d4;
    padding: 0 10px;
    font-size: 20px;
    display: flex;
    align-items: center;
}

.wp-cycle-slide-index {
    font-weight: 700;
    font-size: 14px;
    color: #1d2327;
    width: 30px;
    text-align: center;
    margin-right: 15px;
}

/* Circular Checkbox Positioned on Top-Left of Thumbnail */
.wp-cycle-checkbox-wrapper {
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-cycle-slide-checkbox {
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    border: 2px solid #fff !important;
    background-color: rgba(15, 23, 42, 0.4) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    margin: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.wp-cycle-slide-checkbox:hover {
    background-color: rgba(15, 23, 42, 0.6) !important;
    transform: scale(1.08);
}

.wp-cycle-slide-checkbox:checked {
    border-color: #3a50a6 !important;
    background-color: #3a50a6 !important;
}

.wp-cycle-slide-checkbox:checked::before {
    content: "\f147" !important;
    font-family: dashicons !important;
    color: #fff !important;
    font-size: 11px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}

/* Slide Thumbnail Card */
.wp-cycle-slide-thumb {
    width: 120px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #cbd5e1;
    margin-right: 20px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wp-cycle-slide-thumb:hover {
    border-color: #3a50a6;
    background: #f8fafc;
}

.wp-cycle-slide-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wp-cycle-slide-thumb .wp-cycle-thumb-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #64748b;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px;
    text-align: center;
}

.wp-cycle-slide-thumb .wp-cycle-thumb-placeholder span.dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #94a3b8;
}

.wp-cycle-slide-thumb .wp-cycle-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(58, 80, 166, 0.9);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.wp-cycle-slide-thumb:hover .wp-cycle-thumb-overlay {
    opacity: 1;
}

.wp-cycle-slide-thumb .wp-cycle-thumb-overlay span.dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #fff;
}

/* Inputs styling */
.wp-cycle-slide-inputs {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-right: 20px;
}

.wp-cycle-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #ccd0d4;
    border-radius: 6px;
    background: #fff;
    padding: 0 10px;
    transition: border-color 0.2s ease;
}

.wp-cycle-input-wrapper:focus-within {
    border-color: #3a50a6;
}

.wp-cycle-input-wrapper input[type="text"] {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 6px 0 !important;
    font-size: 13px !important;
    color: #1d2327 !important;
    width: 100% !important;
    background: transparent !important;
}

.wp-cycle-input-wrapper::after {
    display: none;
}

.wp-cycle-input-icon {
    font-family: dashicons !important;
    font-size: 16px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    transition: color 0.2s ease;
    margin-left: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.wp-cycle-input-icon.tick {
    color: #3a50a6;
}

.wp-cycle-input-icon.tick:hover {
    color: #00a32a;
}

.wp-cycle-input-icon.close {
    color: #8c8f94;
}

.wp-cycle-input-icon.close:hover {
    color: #d63638;
}

/* Inline actions icons */
.wp-cycle-slide-actions {
    display: flex;
    gap: 15px;
    padding-right: 10px;
}

.wp-cycle-action-icon {
    font-family: dashicons;
    font-size: 18px;
    color: #646970;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #f0f0f1;
    background: #fff;
}

.wp-cycle-action-icon:hover {
    color: #3a50a6;
    background: #f4f6fc;
    border-color: #3a50a6;
}

.wp-cycle-action-icon.delete:hover {
    color: #d63638;
    background: #fcf3f3;
    border-color: #d63638;
}

/* Bulk Footer Styling */
.wp-cycle-pane-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    border-top: 1px solid #f0f0f1;
    padding-top: 20px;
}

.wp-cycle-pane-footer-tip {
    font-size: 13px;
    color: #646970;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wp-cycle-pane-footer-tip::before {
    content: "\f339";
    font-family: dashicons;
    color: #3a50a6;
    font-size: 16px;
}

.wp-cycle-footer-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.wp-cycle-select {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #ccd0d4;
    font-size: 13px;
    color: #1d2327;
    background: #fff;
}

/* Styled Table for Settings Tab */
.wp-cycle-modern-table {
    width: 100%;
    border-collapse: collapse;
}

.wp-cycle-modern-table tr {
    border-bottom: 1px solid #f0f0f1;
}

.wp-cycle-modern-table tr:last-child {
    border-bottom: none;
}

.wp-cycle-modern-table th {
    text-align: left;
    padding: 20px 0;
    width: 250px;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    vertical-align: top;
}

.wp-cycle-modern-table td {
    padding: 20px 0;
    font-size: 13px;
    color: #646970;
}

.wp-cycle-modern-table input[type="text"],
.wp-cycle-modern-table input[type="number"],
.wp-cycle-modern-table select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ccd0d4;
    font-size: 13px;
    color: #1d2327;
    width: 100%;
    max-width: 320px;
    transition: border-color 0.2s ease;
}

.wp-cycle-modern-table input[type="number"].small-text {
    width: 90px !important;
}

.wp-cycle-modern-table input[type="text"]:focus,
.wp-cycle-modern-table input[type="number"]:focus,
.wp-cycle-modern-table select:focus {
    border-color: #3a50a6;
    box-shadow: 0 0 0 1px #3a50a6;
}

.wp-cycle-modern-table label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #1d2327;
    cursor: pointer;
}

.wp-cycle-modern-table .description {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #8c8f94;
}

/* Sidebar Custom Styling */
body.post-type-wp_cycle_slider #postbox-container-1 .postbox {
    margin-bottom: 20px !important;
}

body.post-type-wp_cycle_slider #postbox-container-1 .postbox-header {
    display: block !important;
    background: #fff;
    border-bottom: 1px solid #f0f0f1;
    padding: 15px 20px;
}

body.post-type-wp_cycle_slider #postbox-container-1 .postbox-header h2 {
    font-size: 14px;
    font-weight: 700;
    color: #1d2327;
    margin: 0;
    padding: 0;
}

body.post-type-wp_cycle_slider #postbox-container-1 .inside {
    padding: 20px !important;
}

/* Modern Shortcode Sidebar Box */
.wp-cycle-sidebar-shortcode {
    background: #f6f8fb;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    font-family: monospace;
    font-size: 13px;
    color: #334155;
    text-align: center;
    margin-bottom: 12px;
    user-select: all;
}

.wp-cycle-sidebar-copy-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* Modern Publish Sidebar Box */
.wp-cycle-sidebar-publish-status {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.wp-cycle-sidebar-status-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #646970;
}

.wp-cycle-sidebar-status-item span.dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    color: #646970;
}

.wp-cycle-sidebar-status-item strong {
    color: #1d2327;
}

.wp-cycle-sidebar-status-item a {
    margin-left: auto;
    color: #3a50a6;
    text-decoration: none;
    font-weight: 600;
}

.wp-cycle-sidebar-status-item a:hover {
    text-decoration: underline;
}

.wp-cycle-sidebar-publish-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f1;
    padding-top: 15px;
    margin-top: 15px;
}

.wp-cycle-sidebar-publish-actions a.submitdelete {
    color: #d63638;
    text-decoration: none;
}

.wp-cycle-sidebar-publish-actions a.submitdelete:hover {
    text-decoration: underline;
}

/* Modern Help Box */
.wp-cycle-sidebar-help {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wp-cycle-sidebar-help-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #3a50a6;
    text-decoration: none;
    transition: all 0.2s ease;
}

.wp-cycle-sidebar-help-btn:hover {
    background: #f4f6fc;
    border-color: #3a50a6;
    color: #3a50a6;
}

.wp-cycle-sidebar-help-btn span.dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #3a50a6;
}