/**
 * Admin Sidebar & Notices Styles
 * Tailwind-inspired design — no framework dependency.
 * Scroll to Top Button
 */

/* =============================================
   Design tokens — duplicated here so variables are available
   on all admin pages, not just the plugin settings page
   ============================================= */
:root {
    --csttb-color-primary:       #8b5cf6;
    --csttb-color-primary-hover: #7c3aed;
    --csttb-color-success:       #16a34a;
    --csttb-color-success-hover: #15803d;
    --csttb-color-warning:       #d97706;
    --csttb-color-surface:       #ffffff;
    --csttb-color-bg:            #f8fafc;
    --csttb-color-border:        #e2e8f0;
    --csttb-color-border-strong: #cbd5e1;
    --csttb-color-text:          #0f172a;
    --csttb-color-text-muted:    #64748b;
    --csttb-color-text-subtle:   #94a3b8;
    --csttb-radius-sm:  4px;
    --csttb-radius-md:  8px;
    --csttb-radius-lg:  12px;
    --csttb-shadow-sm:  0 1px 2px 0 rgba(0,0,0,.05);
    --csttb-shadow-md:  0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
}

/* =============================================
   Settings page layout
   ============================================= */
.creative-scroll-to-top-button-settings-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 24px;
    align-items: flex-start;
}

.creative-scroll-to-top-button-settings-main {
    flex: 1;
    min-width: 0;
}

.creative-scroll-to-top-button-settings-sidebar {
    width: 280px;
    flex-shrink: 0;
    align-self: flex-start;
    position: sticky;
    top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* =============================================
   Sidebar boxes — card style
   ============================================= */
.creative-scroll-to-top-button-sidebar-box {
    background: var(--csttb-color-surface);
    border: 1px solid var(--csttb-color-border);
    border-radius: var(--csttb-radius-lg);
    padding: 20px;
    box-shadow: var(--csttb-shadow-md);
    text-align: center;
    margin-bottom: 0;
}

.creative-scroll-to-top-button-sidebar-box h3 {
    margin: 0 0 12px;
    font-size: .9375rem;
    font-weight: 700;
    color: var(--csttb-color-text);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--csttb-color-border);
}

.creative-scroll-to-top-button-sidebar-box p {
    font-size: .875rem;
    color: var(--csttb-color-text-muted);
    margin-bottom: 15px;
    line-height: 1.6;
}

.creative-scroll-to-top-button-sidebar-header {
    margin-bottom: 15px;
}

.creative-scroll-to-top-button-heart-icon {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--csttb-color-primary);
    display: block;
    margin: 0 auto 15px;
    line-height: 48px;
}

.creative-scroll-to-top-button-sidebar-footer-text {
    font-size: .75rem !important;
    color: var(--csttb-color-text-subtle) !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
}

.creative-scroll-to-top-button-sidebar-box.creative-scroll-to-top-button-box-highlight {
    border-top: 3px solid var(--csttb-color-primary);
}

/* =============================================
   Sidebar buttons
   ============================================= */
.creative-scroll-to-top-button-button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--csttb-color-primary);
    color: #fff;
    text-decoration: none;
    padding: 9px 20px;
    border-radius: var(--csttb-radius-md);
    font-weight: 600;
    width: 100%;
    box-sizing: border-box;
    transition: background .15s, box-shadow .15s;
    border: 1px solid var(--csttb-color-primary);
    cursor: pointer;
    font-size: .875rem;
    box-shadow: var(--csttb-shadow-sm);
}

.creative-scroll-to-top-button-button-primary:hover,
.creative-scroll-to-top-button-button-primary:focus {
    background: var(--csttb-color-primary-hover);
    border-color: var(--csttb-color-primary-hover);
    color: #fff;
    box-shadow: var(--csttb-shadow-md);
    text-decoration: none;
}

.creative-scroll-to-top-button-button-primary .dashicons {
    margin-right: 4px;
}

.creative-scroll-to-top-button-button-secondary {
    display: inline-block;
    background: var(--csttb-color-surface);
    color: var(--csttb-color-primary);
    text-decoration: none;
    padding: 8px 20px;
    border: 1px solid var(--csttb-color-border-strong);
    border-radius: var(--csttb-radius-md);
    font-weight: 600;
    width: 100%;
    box-sizing: border-box;
    transition: all .15s;
    font-size: .875rem;
    box-shadow: var(--csttb-shadow-sm);
}

.creative-scroll-to-top-button-button-secondary:hover,
.creative-scroll-to-top-button-button-secondary:focus {
    background: var(--csttb-color-bg);
    border-color: var(--csttb-color-primary);
    color: var(--csttb-color-primary);
    box-shadow: var(--csttb-shadow-md);
    text-decoration: none;
}

/* =============================================
   Site-wide admin notice (review request banner)
   ============================================= */
.creative-scroll-to-top-button-notice {
    background: var(--csttb-color-surface);
    border-left: 4px solid var(--csttb-color-success);
    box-shadow: var(--csttb-shadow-md);
    padding: 16px 20px;
    margin: 5px 0 25px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    border-radius: var(--csttb-radius-md);
    transition: box-shadow .15s;
}

.creative-scroll-to-top-button-notice-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #f0f8f1;
    border-radius: var(--csttb-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--csttb-color-success);
}

.creative-scroll-to-top-button-notice-icon svg {
    width: 28px;
    height: 28px;
}

.creative-scroll-to-top-button-notice-content {
    flex-grow: 1;
}

.creative-scroll-to-top-button-notice-content h3 {
    margin: 0 0 5px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--csttb-color-text);
}

.creative-scroll-to-top-button-notice-content p {
    margin: 0 0 12px;
    font-size: .875rem;
    color: var(--csttb-color-text-muted);
}

.creative-scroll-to-top-button-notice-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Notice-level buttons */
.creative-scroll-to-top-button-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    font-size: .8125rem;
    font-weight: 600;
    padding: 7px 14px;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    border-radius: var(--csttb-radius-md);
    white-space: nowrap;
    box-sizing: border-box;
    transition: background .15s, box-shadow .15s, opacity .15s;
    line-height: 1;
}

.creative-scroll-to-top-button-btn:hover {
    opacity: .9;
    text-decoration: none;
}

.creative-scroll-to-top-button-btn-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff !important;
    box-shadow: var(--csttb-shadow-sm);
}

.creative-scroll-to-top-button-btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    box-shadow: var(--csttb-shadow-md);
}

.creative-scroll-to-top-button-btn-secondary {
    background: var(--csttb-color-surface);
    color: var(--csttb-color-text) !important;
    border-color: var(--csttb-color-border-strong);
    box-shadow: var(--csttb-shadow-sm);
}

.creative-scroll-to-top-button-btn-secondary:hover {
    background: var(--csttb-color-bg);
    box-shadow: var(--csttb-shadow-md);
}

.creative-scroll-to-top-button-btn-green {
    background: var(--csttb-color-success);
    color: #fff !important;
    border-color: var(--csttb-color-success);
    box-shadow: var(--csttb-shadow-sm);
}

.creative-scroll-to-top-button-btn-green:hover {
    background: var(--csttb-color-success-hover);
    border-color: var(--csttb-color-success-hover);
    box-shadow: var(--csttb-shadow-md);
}

.creative-scroll-to-top-button-notice-dismiss {
    position: absolute;
    top: 10px;
    right: 15px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--csttb-color-text-subtle);
    padding: 5px;
    transition: color .15s;
}

.creative-scroll-to-top-button-notice-dismiss:hover {
    color: #d63638;
}

/* =============================================
   Sidebar review box
   ============================================= */
.creative-scroll-to-top-button-sidebar-box-review {
    background: var(--csttb-color-surface);
    border: 1px solid var(--csttb-color-border);
    border-top: 3px solid var(--csttb-color-warning);
    border-radius: var(--csttb-radius-lg);
    padding: 20px;
    box-shadow: var(--csttb-shadow-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.creative-scroll-to-top-button-sidebar-box-review .creative-scroll-to-top-button-stars {
    color: #f59e0b;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 3px;
}

.creative-scroll-to-top-button-sidebar-box-review .creative-scroll-to-top-button-stars svg {
    width: 20px;
    height: 20px;
}

.creative-scroll-to-top-button-sidebar-box-review h3 {
    margin: 0 0 8px;
    font-size: .9375rem;
    font-weight: 700;
    color: var(--csttb-color-text);
    border: none;
    padding: 0;
}

.creative-scroll-to-top-button-sidebar-box-review p {
    margin: 0 0 14px;
    font-size: .8125rem;
    color: var(--csttb-color-text-muted);
    line-height: 1.55;
}

.creative-scroll-to-top-button-sidebar-box-review .creative-scroll-to-top-button-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.creative-scroll-to-top-button-sidebar-box-review .creative-scroll-to-top-button-btn {
    width: 100%;
    justify-content: center;
}

/* State headings inside review box */
.creative-scroll-to-top-button-state-initial h3,
.creative-scroll-to-top-button-state-review h3,
.creative-scroll-to-top-button-state-support h3 {
    font-size: .9375rem;
    font-weight: 700;
    color: var(--csttb-color-text);
    margin: 0 0 8px;
    border: none;
    padding: 0;
}

.creative-scroll-to-top-button-state-initial p,
.creative-scroll-to-top-button-state-review p,
.creative-scroll-to-top-button-state-support p {
    font-size: .8125rem;
    color: var(--csttb-color-text-muted);
    line-height: 1.55;
    margin-bottom: 14px;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1100px) {
    .creative-scroll-to-top-button-settings-wrapper {
        flex-direction: column;
    }

    .creative-scroll-to-top-button-settings-sidebar {
        width: 100%;
        position: static;
    }
}

@media (max-width: 782px) {
    .creative-scroll-to-top-button-settings-wrapper {
        gap: 16px;
        margin-top: 16px;
    }

    .creative-scroll-to-top-button-notice-actions {
        flex-direction: column;
    }
}
