/* Intercom Sync Admin Styles - Prefixed */
/* All classes and CSS variables are prefixed with rpplstp_iws- */
/* All styles are scoped to #wpbody-content to ensure proper containment within WordPress admin */

/* Hide WordPress admin notices on plugin pages */
#wpbody-content .notice,
#wpbody-content .notice-error,
#wpbody-content .notice-warning,
#wpbody-content .notice-success,
#wpbody-content .notice-info,
#wpbody-content .updated,
#wpbody-content .error {
    display: none !important;
}

/* Design System Variables */
:root {
    /* Prefixed CSS Variables */
    --rpplstp_iws-background: hsl(260, 40%, 98%);
    --rpplstp_iws-foreground: hsl(260, 10%, 10%);
    --rpplstp_iws-card: hsl(0, 0%, 100%);
    --rpplstp_iws-card-foreground: hsl(260, 10%, 10%);
    --rpplstp_iws-primary: hsl(262, 83%, 58%);
    --rpplstp_iws-primary-foreground: hsl(0, 0%, 100%);
    --rpplstp_iws-primary-glow: hsl(270, 100%, 75%);
    --rpplstp_iws-secondary: hsl(260, 60%, 96%);
    --rpplstp_iws-secondary-foreground: hsl(260, 10%, 10%);
    --rpplstp_iws-muted: hsl(260, 40%, 96%);
    --rpplstp_iws-muted-foreground: hsl(260, 5%, 45%);
    --rpplstp_iws-accent: hsl(270, 50%, 95%);
    --rpplstp_iws-accent-foreground: hsl(260, 10%, 10%);
    --rpplstp_iws-destructive: hsl(0, 84%, 60%);
    --rpplstp_iws-destructive-foreground: hsl(0, 0%, 100%);
    --rpplstp_iws-success: hsl(142, 71%, 45%);
    --rpplstp_iws-success-foreground: hsl(0, 0%, 100%);
    --rpplstp_iws-warning: hsl(38, 92%, 50%);
    --rpplstp_iws-warning-foreground: hsl(0, 0%, 100%);
    --rpplstp_iws-border: hsl(260, 30%, 92%);
    --rpplstp_iws-input: hsl(260, 30%, 94%);
    --rpplstp_iws-ring: hsl(262, 83%, 58%);
    --rpplstp_iws-sidebar-background: hsl(0, 0%, 100%);
    --rpplstp_iws-sidebar-foreground: hsl(260, 10%, 10%);
    --rpplstp_iws-radius: 0.75rem;
}

/* Reset & Base - Scoped to admin container and WordPress wpbody-content */
#wpbody-content .rpplstp_iws-app-container * {
    box-sizing: border-box;
}

#wpbody-content .rpplstp_iws-app-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--rpplstp_iws-background);
    color: var(--rpplstp_iws-foreground);
    line-height: 1.6;
}

/* Layout - Contained within wpbody-content */
#wpbody-content .rpplstp_iws-app-container {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    min-height: calc(100vh - 32px); /* Full height minus admin bar */
}

/* Sidebar - Fixed positioning relative to wpbody-content */
#wpbody-content {
    position: relative;
}

#wpbody-content .rpplstp_iws-sidebar {
    width: 200px;
    background-color: var(--rpplstp_iws-sidebar-background);
    border-right: 1px solid var(--rpplstp_iws-border);
    transition: width 0.3s ease;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 32px; /* WordPress admin bar height */
    left: 160px; /* WordPress admin sidebar width */
    height: calc(100vh - 32px);
    z-index: 100;
    overflow-y: auto;
}

#wpbody-content .rpplstp_iws-sidebar.rpplstp_iws-collapsed {
    width: 56px;
}

/* Adjust header and main content when sidebar is collapsed */
#wpbody-content .rpplstp_iws-sidebar.rpplstp_iws-collapsed ~ .rpplstp_iws-main-content,
#wpbody-content .rpplstp_iws-sidebar.rpplstp_iws-collapsed + .rpplstp_iws-main-content {
    left: 216px; /* WordPress admin sidebar (160px) + collapsed plugin sidebar (56px) */
}

#wpbody-content .rpplstp_iws-sidebar.rpplstp_iws-collapsed ~ .rpplstp_iws-main-content .rpplstp_iws-header,
#wpbody-content .rpplstp_iws-sidebar.rpplstp_iws-collapsed + .rpplstp_iws-main-content .rpplstp_iws-header {
    left: 216px; /* WordPress admin sidebar (160px) + collapsed plugin sidebar (56px) */
}

#wpbody-content .rpplstp_iws-sidebar-header {
    padding: 1rem 1rem 1rem;
    border-bottom: 1px solid var(--rpplstp_iws-border);
    transition: opacity 0.3s ease;
}

#wpbody-content .rpplstp_iws-sidebar.rpplstp_iws-collapsed .rpplstp_iws-sidebar-header {
    opacity: 0;
    pointer-events: none;
}

#wpbody-content .rpplstp_iws-sidebar-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#wpbody-content .rpplstp_iws-sidebar-logo {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    object-fit: contain;
    align-self: center;
}

#wpbody-content .rpplstp_iws-sidebar-title-group {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}

#wpbody-content .rpplstp_iws-sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rpplstp_iws-foreground);
    margin: 0;
    line-height: 1.2;
}

#wpbody-content .rpplstp_iws-sidebar-subtitle {
    font-size: 0.75rem;
    color: var(--rpplstp_iws-muted-foreground);
    margin: 0 0 0.25rem 0;
}

#wpbody-content .rpplstp_iws-sidebar-attribution {
    font-size: 0.6rem;
    color: var(--rpplstp_iws-muted-foreground);
    margin: 0;
    font-style: italic;
    opacity: 0.8;
    white-space: nowrap;
}

#wpbody-content .rpplstp_iws-sidebar-nav {
    flex: 1;
    padding: 0.75rem 0.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

#wpbody-content .rpplstp_iws-nav-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.625rem;
    margin-bottom: 0.5rem;
    color: var(--rpplstp_iws-foreground);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-size: 0.8125rem;
    gap: 0.625rem;
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

/* Ensure buttons styled as nav items look identical to anchor tags */
#wpbody-content button.rpplstp_iws-nav-item {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-sizing: border-box;
    line-height: inherit;
    text-decoration: none;
    outline: none;
}

#wpbody-content .rpplstp_iws-nav-item:hover,
#wpbody-content button.rpplstp_iws-nav-item:hover {
    background-color: var(--rpplstp_iws-accent);
    color: var(--rpplstp_iws-accent-foreground);
}

#wpbody-content .rpplstp_iws-nav-item.rpplstp_iws-active {
    background-color: var(--rpplstp_iws-primary);
    color: var(--rpplstp_iws-primary-foreground);
}

#wpbody-content .rpplstp_iws-nav-icon {
    flex-shrink: 0;
}

#wpbody-content .rpplstp_iws-sidebar.rpplstp_iws-collapsed .rpplstp_iws-nav-text {
    display: none;
}

#wpbody-content .rpplstp_iws-sidebar.rpplstp_iws-collapsed .rpplstp_iws-nav-item {
    justify-content: center;
}

#wpbody-content .rpplstp_iws-sidebar.rpplstp_iws-collapsed button.rpplstp_iws-nav-item {
    justify-content: center;
}

/* Hide Support Email section when sidebar is collapsed */
#wpbody-content .rpplstp_iws-sidebar.rpplstp_iws-collapsed .rpplstp_iws-support-email-box {
    display: none;
}

/* Support Email Box - Smaller font sizes */
#wpbody-content .rpplstp_iws-support-email-box p:first-child {
    font-size: 0.6875rem !important;
    margin-bottom: 0.25rem !important;
}

#wpbody-content .rpplstp_iws-support-email-box p:last-child {
    font-size: 0.75rem !important;
}

#wpbody-content .rpplstp_iws-support-email-box a {
    font-size: 0.75rem !important;
}

/* Main Content */
#wpbody-content .rpplstp_iws-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: left 0.3s ease;
    min-width: 0; /* Prevent flex item from overflowing */
    position: fixed;
    top: 32px; /* WordPress admin bar height */
    left: 360px; /* WordPress admin sidebar (160px) + plugin sidebar (200px) */
    right: 0;
    height: calc(100vh - 32px);
    overflow: hidden;
}

#wpbody-content .rpplstp_iws-header {
    position: fixed;
    top: 32px; /* WordPress admin bar height */
    left: 360px; /* WordPress admin sidebar (160px) + plugin sidebar (200px) */
    right: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 4px -1px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

#wpbody-content .rpplstp_iws-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1rem 0.5rem;
    min-height: auto;
}

#wpbody-content .rpplstp_iws-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

#wpbody-content .rpplstp_iws-header-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--rpplstp_iws-foreground);
    margin: 0;
    line-height: 1.2;
}

#wpbody-content .rpplstp_iws-header-description {
    font-size: 0.8125rem;
    color: var(--rpplstp_iws-muted-foreground);
    margin: 0;
    line-height: 1.4;
}

#wpbody-content .rpplstp_iws-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    color: var(--rpplstp_iws-foreground);
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

#wpbody-content .rpplstp_iws-sidebar-toggle:hover {
    background-color: rgba(124, 58, 237, 0.1);
    color: var(--rpplstp_iws-primary);
}

#wpbody-content .rpplstp_iws-content {
    flex: 1;
    padding: 1rem;
    background: linear-gradient(to bottom right, var(--rpplstp_iws-background), var(--rpplstp_iws-background), rgba(270, 50%, 95%, 0.2));
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: calc(1rem + 60px); /* Account for fixed header height (~60px) */
}

/* Pages */
#wpbody-content .rpplstp_iws-page {
    display: none;
}

#wpbody-content .rpplstp_iws-page.rpplstp_iws-active {
    display: block;
}

/* Page titles and descriptions are now in the header, so hide them in page content */
#wpbody-content .rpplstp_iws-page-title {
    display: none;
}

#wpbody-content .rpplstp_iws-page-description {
    display: none;
}

/* Cards */
#wpbody-content .rpplstp_iws-card {
    background-color: var(--rpplstp_iws-card);
    border: 1px solid var(--rpplstp_iws-border);
    border-radius: var(--rpplstp_iws-radius);
    box-shadow: 0 2px 8px -2px rgba(124, 58, 237, 0.1);
    margin-bottom: 1rem;
}

#wpbody-content .rpplstp_iws-card-header {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

#wpbody-content .rpplstp_iws-card-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#wpbody-content .rpplstp_iws-card-icon {
    flex-shrink: 0;
    color: var(--rpplstp_iws-primary);
    width: 20px;
    height: 20px;
}

#wpbody-content .rpplstp_iws-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rpplstp_iws-foreground);
    line-height: 1.2;
    margin: 0;
}

#wpbody-content .rpplstp_iws-card-description {
    font-size: 0.8125rem;
    color: var(--rpplstp_iws-muted-foreground);
    line-height: 1.6;
    margin-bottom: 0;
    margin-top: 0.25rem;
}

/* Reduce gap between card description and content */
#wpbody-content .rpplstp_iws-card-header {
    padding: 1rem 1rem 1rem 1rem;
}

#wpbody-content .rpplstp_iws-card-content {
    padding: 0 1rem 1rem;
}

/* Forms */
#wpbody-content .rpplstp_iws-form-group {
    margin-bottom: 1rem;
}

#wpbody-content .rpplstp_iws-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--rpplstp_iws-foreground);
    margin-bottom: 0.375rem;
}

#wpbody-content .rpplstp_iws-form-input,
#wpbody-content .rpplstp_iws-form-select,
textarea.rpplstp_iws-form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    background-color: var(--rpplstp_iws-background);
    border: 1px solid var(--rpplstp_iws-input);
    border-radius: 0.5rem;
    color: var(--rpplstp_iws-foreground);
    transition: all 0.2s ease;
    font-family: inherit;
}

textarea.rpplstp_iws-form-input {
    line-height: 1.5;
}

#wpbody-content .rpplstp_iws-form-input:focus,
#wpbody-content .rpplstp_iws-form-select:focus {
    outline: none;
    border-color: var(--rpplstp_iws-ring);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1);
}

#wpbody-content .rpplstp_iws-form-input::placeholder {
    color: var(--rpplstp_iws-muted-foreground);
}

#wpbody-content .rpplstp_iws-form-hint {
    font-size: 0.6875rem;
    color: var(--rpplstp_iws-muted-foreground);
    margin-top: 0.375rem;
    line-height: 1.5;
}

#wpbody-content .rpplstp_iws-instruction-box {
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(124, 58, 237, 0.02));
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 0.5rem;
    animation: slideDown 0.3s ease-out;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

#wpbody-content .rpplstp_iws-instruction-box ol {
    margin: 0;
}

#wpbody-content .rpplstp_iws-instruction-box li {
    margin-bottom: 0.25rem;
}

#wpbody-content .rpplstp_iws-instruction-box li:last-child {
    margin-bottom: 0;
}

#wpbody-content .rpplstp_iws-instruction-box a {
    color: var(--rpplstp_iws-primary);
    text-decoration: none;
    font-weight: 500;
}

#wpbody-content .rpplstp_iws-instruction-box a:hover {
    text-decoration: underline;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#wpbody-content .rpplstp_iws-sync-stats {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 0.75rem;
    background-color: var(--rpplstp_iws-muted);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

#wpbody-content .rpplstp_iws-stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

#wpbody-content .rpplstp_iws-stat-label {
    font-size: 0.8125rem;
    color: var(--rpplstp_iws-muted-foreground);
    font-weight: 500;
}

#wpbody-content .rpplstp_iws-stat-value {
    font-size: 0.8125rem;
    color: var(--rpplstp_iws-foreground);
    font-weight: 600;
}

/* Switch */
#wpbody-content .rpplstp_iws-switch-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#wpbody-content .rpplstp_iws-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

#wpbody-content .rpplstp_iws-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

#wpbody-content .rpplstp_iws-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--rpplstp_iws-input);
    transition: 0.3s;
    border-radius: 24px;
}

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

#wpbody-content input:checked + .rpplstp_iws-slider {
    background-color: var(--rpplstp_iws-primary);
}

#wpbody-content input:checked + .rpplstp_iws-slider:before {
    transform: translateX(20px);
}

/* Checkbox */
#wpbody-content .rpplstp_iws-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

/* Roles checkbox group - grid layout for 2-3 columns */
#wpbody-content .rpplstp_iws-roles-container .rpplstp_iws-checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.375rem;
}

@media (min-width: 768px) {
    #wpbody-content .rpplstp_iws-roles-container .rpplstp_iws-checkbox-group {
        grid-template-columns: repeat(3, 1fr);
    }
}

#wpbody-content .rpplstp_iws-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--rpplstp_iws-foreground);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
}

#wpbody-content .rpplstp_iws-checkbox-label:hover {
    background-color: var(--rpplstp_iws-muted);
}

#wpbody-content .rpplstp_iws-checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    accent-color: var(--rpplstp_iws-primary);
}

/* Roles Container - Scrollable for many roles */
#wpbody-content .rpplstp_iws-roles-container {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.75rem;
    border: 1px solid var(--rpplstp_iws-border);
    border-radius: 0.5rem;
    background-color: var(--rpplstp_iws-background);
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

/* Smaller font size for role names in roles container */
#wpbody-content .rpplstp_iws-roles-container .rpplstp_iws-checkbox-label {
    font-size: 0.75rem;
}

/* Roles count styling */
#wpbody-content .rpplstp_iws-roles-count {
    font-size: 0.8125rem;
    color: var(--rpplstp_iws-muted-foreground);
    text-align: right;
    margin-top: 0.5rem;
}

#wpbody-content .rpplstp_iws-roles-count span {
    font-weight: 600;
    color: var(--rpplstp_iws-foreground);
}

/* Buttons */
#wpbody-content .rpplstp_iws-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

#wpbody-content .rpplstp_iws-btn-primary {
    background-color: var(--rpplstp_iws-primary);
    color: var(--rpplstp_iws-primary-foreground);
}

#wpbody-content .rpplstp_iws-btn-primary:hover {
    background-color: hsl(262, 83%, 52%);
}

#wpbody-content .rpplstp_iws-btn-secondary {
    background-color: var(--rpplstp_iws-secondary);
    color: var(--rpplstp_iws-secondary-foreground);
}

#wpbody-content .rpplstp_iws-btn-secondary:hover {
    background-color: hsl(260, 60%, 90%);
}

#wpbody-content .rpplstp_iws-btn-outline {
    background-color: var(--rpplstp_iws-background);
    color: var(--rpplstp_iws-foreground);
    border: 1px solid var(--rpplstp_iws-input);
}

#wpbody-content .rpplstp_iws-btn-outline:hover {
    background-color: var(--rpplstp_iws-accent);
    color: var(--rpplstp_iws-accent-foreground);
}

#wpbody-content .rpplstp_iws-btn-text {
    background: transparent;
    padding: 0.25rem 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#wpbody-content .rpplstp_iws-btn-text:hover {
    background-color: var(--rpplstp_iws-accent);
}

#wpbody-content .rpplstp_iws-btn-link {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 0.75rem;
    color: var(--rpplstp_iws-primary);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    transition: color 0.2s ease;
}

#wpbody-content .rpplstp_iws-btn-link:hover {
    color: var(--rpplstp_iws-primary);
    text-decoration: underline;
}

#wpbody-content .rpplstp_iws-btn-link:focus {
    outline: none;
    text-decoration: underline;
}

#wpbody-content .rpplstp_iws-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--rpplstp_iws-muted-foreground);
}

#wpbody-content .rpplstp_iws-btn-icon:hover {
    background-color: var(--rpplstp_iws-accent);
    color: var(--rpplstp_iws-foreground);
}

#wpbody-content .rpplstp_iws-btn-delete {
    color: var(--rpplstp_iws-destructive);
}

#wpbody-content .rpplstp_iws-btn-delete:hover {
    background-color: hsl(0, 84%, 95%);
    color: var(--rpplstp_iws-destructive);
}

#wpbody-content .rpplstp_iws-btn-delete svg {
    display: block;
    width: 18px;
    height: 18px;
}

#wpbody-content .rpplstp_iws-button-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Tables */
#wpbody-content .rpplstp_iws-table-container {
    overflow-x: auto;
    margin-bottom: 1rem;
    border: 1px solid var(--rpplstp_iws-border);
    border-radius: 0.5rem;
}

#wpbody-content .rpplstp_iws-table {
    width: 100%;
    border-collapse: collapse;
}

#wpbody-content .rpplstp_iws-table thead {
    background-color: var(--rpplstp_iws-muted);
}

#wpbody-content .rpplstp_iws-table th {
    padding: 0.625rem 0.75rem;
    text-align: left;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--rpplstp_iws-foreground);
}

#wpbody-content .rpplstp_iws-table td {
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--rpplstp_iws-foreground);
    border-top: 1px solid var(--rpplstp_iws-border);
}

/* Empty State */
#wpbody-content .rpplstp_iws-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--rpplstp_iws-muted-foreground);
}

#wpbody-content .rpplstp_iws-empty-state p {
    margin: 0.5rem 0;
}

#wpbody-content .rpplstp_iws-empty-state-description {
    font-size: 0.875rem;
    color: var(--rpplstp_iws-muted-foreground);
}

/* Log Context Details */
#wpbody-content .rpplstp_iws-log-context {
    margin-top: 0.5rem;
}

#wpbody-content .rpplstp_iws-log-context-toggle {
    cursor: pointer;
    color: var(--rpplstp_iws-primary);
    font-size: 0.75rem;
    text-decoration: underline;
    user-select: none;
}

#wpbody-content .rpplstp_iws-log-context-toggle:hover {
    color: var(--rpplstp_iws-primary-glow);
}

#wpbody-content .rpplstp_iws-log-context-content {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background-color: var(--rpplstp_iws-muted);
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
}

/* Logs Actions */
#wpbody-content .rpplstp_iws-logs-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

#wpbody-content .rpplstp_iws-btn-danger {
    background-color: var(--rpplstp_iws-destructive);
    color: var(--rpplstp_iws-destructive-foreground);
}

#wpbody-content .rpplstp_iws-btn-danger:hover {
    background-color: hsl(0, 84%, 55%);
}

/* Badges */
#wpbody-content .rpplstp_iws-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    white-space: nowrap;
}

#wpbody-content .rpplstp_iws-badge-default {
    background-color: var(--rpplstp_iws-secondary);
    color: var(--rpplstp_iws-secondary-foreground);
}

#wpbody-content .rpplstp_iws-badge-primary {
    background-color: var(--rpplstp_iws-primary);
    color: var(--rpplstp_iws-primary-foreground);
}

#wpbody-content .rpplstp_iws-badge-success {
    background-color: var(--rpplstp_iws-success);
    color: var(--rpplstp_iws-success-foreground);
}

#wpbody-content .rpplstp_iws-badge-warning {
    background-color: var(--rpplstp_iws-warning);
    color: var(--rpplstp_iws-warning-foreground);
}

#wpbody-content .rpplstp_iws-badge-destructive {
    background-color: var(--rpplstp_iws-destructive);
    color: var(--rpplstp_iws-destructive-foreground);
}

#wpbody-content .rpplstp_iws-badge-premium {
    background: rgba(124, 58, 237, 0.1);
    color: var(--rpplstp_iws-primary);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    white-space: nowrap;
    transition: all 0.2s ease;
}

#wpbody-content .rpplstp_iws-badge-premium:hover {
    background: rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.3);
}

#wpbody-content .rpplstp_iws-card-premium {
    position: relative;
}

#wpbody-content .rpplstp_iws-card-premium .rpplstp_iws-card-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#wpbody-content .rpplstp_iws-premium-notice {
    padding: 0.75rem 0.875rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

#wpbody-content .rpplstp_iws-premium-notice p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--rpplstp_iws-foreground);
    line-height: 1.5;
}

#wpbody-content .rpplstp_iws-premium-notice strong {
    color: #667eea;
    font-weight: 600;
}

#wpbody-content .rpplstp_iws-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#wpbody-content .rpplstp_iws-field-pill {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background-color: var(--rpplstp_iws-muted);
    color: var(--rpplstp_iws-foreground);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

#wpbody-content .rpplstp_iws-pricing-features {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

#wpbody-content .rpplstp_iws-pricing-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--rpplstp_iws-foreground);
    line-height: 1.5;
}

#wpbody-content .rpplstp_iws-pricing-feature svg {
    flex-shrink: 0;
}

#wpbody-content .rpplstp_iws-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#wpbody-content .rpplstp_iws-faq-item {
    border: 1px solid var(--rpplstp_iws-border);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.2s ease;
}

#wpbody-content .rpplstp_iws-faq-item:hover {
    border-color: var(--rpplstp_iws-primary);
}

#wpbody-content .rpplstp_iws-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--rpplstp_iws-foreground);
    transition: all 0.2s ease;
}

#wpbody-content .rpplstp_iws-faq-question:hover {
    background-color: var(--rpplstp_iws-muted);
}

#wpbody-content .rpplstp_iws-faq-icon {
    flex-shrink: 0;
    color: var(--rpplstp_iws-muted-foreground);
    transition: transform 0.3s ease;
}

#wpbody-content .rpplstp_iws-faq-item.rpplstp_iws-active .rpplstp_iws-faq-icon {
    transform: rotate(180deg);
    color: var(--rpplstp_iws-primary);
}

#wpbody-content .rpplstp_iws-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1rem;
}

#wpbody-content .rpplstp_iws-faq-item.rpplstp_iws-active .rpplstp_iws-faq-answer {
    max-height: 500px;
    padding: 0 1rem 0.75rem;
}

#wpbody-content .rpplstp_iws-faq-answer p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--rpplstp_iws-muted-foreground);
    line-height: 1.6;
}

/* Events Grid */
#wpbody-content .rpplstp_iws-events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

#wpbody-content .rpplstp_iws-events-grid .rpplstp_iws-card {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .rpplstp_iws-events-grid {
        grid-template-columns: 1fr;
    }
}

/* Event List */
#wpbody-content .rpplstp_iws-event-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

#wpbody-content .rpplstp_iws-event-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: var(--rpplstp_iws-muted);
    border-radius: 0.5rem;
}

#wpbody-content .rpplstp_iws-event-name {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--rpplstp_iws-foreground);
    margin-bottom: 0.25rem;
}

#wpbody-content .rpplstp_iws-event-desc {
    font-size: 0.8125rem;
    color: var(--rpplstp_iws-muted-foreground);
}

/* Metric List */
#wpbody-content .rpplstp_iws-metric-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

#wpbody-content .rpplstp_iws-metric-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0;
    height: 100%;
}

#wpbody-content .rpplstp_iws-metric-icon {
    flex-shrink: 0;
    color: var(--rpplstp_iws-primary);
    width: 20px;
    height: 20px;
    margin-top: 0.125rem;
    padding: 0.375rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(124, 58, 237, 0.05));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wpbody-content .rpplstp_iws-metric-icon svg {
    width: 20px;
    height: 20px;
}

#wpbody-content .rpplstp_iws-metric-info {
    flex: 1;
    min-width: 0;
}

#wpbody-content .rpplstp_iws-metric-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

#wpbody-content .rpplstp_iws-metric-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--rpplstp_iws-foreground);
    line-height: 1.3;
}

#wpbody-content .rpplstp_iws-metric-desc {
    font-size: 0.75rem;
    color: var(--rpplstp_iws-muted-foreground);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

#wpbody-content .rpplstp_iws-metric-field {
    display: inline-block;
    padding: 0.375rem 0.625rem;
    background-color: var(--rpplstp_iws-muted);
    color: var(--rpplstp_iws-foreground);
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    border-radius: 0.375rem;
    font-weight: 500;
    border: 1px solid var(--rpplstp_iws-border);
}

#wpbody-content .rpplstp_iws-metric-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

#wpbody-content .rpplstp_iws-events-grid .rpplstp_iws-card .rpplstp_iws-card-content {
    padding: 1rem;
}

#wpbody-content .rpplstp_iws-events-grid .rpplstp_iws-card {
    border: 1px solid var(--rpplstp_iws-border);
    transition: all 0.2s ease;
}

#wpbody-content .rpplstp_iws-events-grid .rpplstp_iws-card:hover {
    box-shadow: 0 4px 12px -2px rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateY(-2px);
}

/* Pricing Cards */
#wpbody-content .rpplstp_iws-pricing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#wpbody-content .rpplstp_iws-pricing-card .rpplstp_iws-card-header {
    flex-shrink: 0;
}

#wpbody-content .rpplstp_iws-pricing-card .rpplstp_iws-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#wpbody-content .rpplstp_iws-pricing-card .rpplstp_iws-pricing-features {
    flex: 1;
}

#wpbody-content .rpplstp_iws-pricing-card-pro {
    background: linear-gradient(to bottom, rgba(124, 58, 237, 0.02) 0%, transparent 100%);
    overflow: visible !important;
}

#wpbody-content .rpplstp_iws-events-grid {
    overflow: visible;
}

#wpbody-content .rpplstp_iws-pricing-card-pro:hover {
    box-shadow: 0 8px 24px -4px rgba(124, 58, 237, 0.25);
    transform: translateY(-4px);
}

/* Info List */
#wpbody-content .rpplstp_iws-info-list {
    list-style: disc;
    padding-left: 1.5rem;
}

#wpbody-content .rpplstp_iws-info-list li {
    font-size: 0.875rem;
    color: var(--rpplstp_iws-foreground);
    margin-bottom: 0.5rem;
}

/* Tag Examples */
#wpbody-content .rpplstp_iws-tag-examples {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#wpbody-content .rpplstp_iws-tag-category h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--rpplstp_iws-foreground);
    margin-bottom: 0.75rem;
}

#wpbody-content .rpplstp_iws-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    #wpbody-content .rpplstp_iws-sidebar {
        width: 56px;
    }
    
    #wpbody-content .rpplstp_iws-sidebar-header {
        opacity: 0;
        pointer-events: none;
    }
    
    #wpbody-content .rpplstp_iws-nav-text {
        display: none;
    }
    
    #wpbody-content .rpplstp_iws-nav-item {
        justify-content: center;
    }
    
    #wpbody-content .rpplstp_iws-main-content {
        margin-left: 56px;
    }
    
    #wpbody-content .rpplstp_iws-content {
        padding: 0.75rem;
    }
    
    #wpbody-content .rpplstp_iws-header-content {
        padding: 0.75rem;
        flex-wrap: wrap;
    }
    
    #wpbody-content .rpplstp_iws-header-title {
        font-size: 0.9375rem;
    }
    
    #wpbody-content .rpplstp_iws-header-description {
        font-size: 0.75rem;
    }
    
    #wpbody-content .rpplstp_iws-card-header,
    #wpbody-content .rpplstp_iws-card-content {
        padding: 0.75rem;
    }
    
    /* Stack connection card columns on mobile */
    #wpbody-content .rpplstp_iws-card-content[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* Connection Status Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Spin Animation for Loading States */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--rpplstp_iws-background);
}

::-webkit-scrollbar-thumb {
    background: var(--rpplstp_iws-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--rpplstp_iws-muted-foreground);
}

/* Toast Notifications */
#wpbody-content .rpplstp_iws-toast-container {
    position: fixed;
    top: 80px; /* Position below admin bar and page header */
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    pointer-events: none;
}

#wpbody-content .rpplstp_iws-toast {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    background-color: var(--rpplstp_iws-card);
    border: 1px solid var(--rpplstp_iws-border);
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    pointer-events: all;
    opacity: 0;
    transform: translateX(120%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

#wpbody-content .rpplstp_iws-toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--rpplstp_iws-primary);
}

#wpbody-content .rpplstp_iws-toast-show {
    opacity: 1;
    transform: translateX(0);
}

#wpbody-content .rpplstp_iws-toast-hide {
    opacity: 0;
    transform: translateX(120%);
}

#wpbody-content .rpplstp_iws-toast-success::before {
    background-color: var(--rpplstp_iws-success);
}

#wpbody-content .rpplstp_iws-toast-error::before {
    background-color: var(--rpplstp_iws-destructive);
}

#wpbody-content .rpplstp_iws-toast-warning::before {
    background-color: var(--rpplstp_iws-warning);
}

#wpbody-content .rpplstp_iws-toast-info::before {
    background-color: var(--rpplstp_iws-primary);
}

#wpbody-content .rpplstp_iws-toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0.25rem;
}

#wpbody-content .rpplstp_iws-toast-success .rpplstp_iws-toast-icon {
    color: var(--rpplstp_iws-success);
    background-color: rgba(34, 197, 94, 0.1);
}

#wpbody-content .rpplstp_iws-toast-error .rpplstp_iws-toast-icon {
    color: var(--rpplstp_iws-destructive);
    background-color: rgba(239, 68, 68, 0.1);
}

#wpbody-content .rpplstp_iws-toast-warning .rpplstp_iws-toast-icon {
    color: var(--rpplstp_iws-warning);
    background-color: rgba(245, 158, 11, 0.1);
}

#wpbody-content .rpplstp_iws-toast-info .rpplstp_iws-toast-icon {
    color: var(--rpplstp_iws-primary);
    background-color: rgba(124, 58, 237, 0.1);
}

#wpbody-content .rpplstp_iws-toast-content {
    flex: 1;
    min-width: 0;
}

#wpbody-content .rpplstp_iws-toast-message {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--rpplstp_iws-foreground);
    line-height: 1.5;
}

#wpbody-content .rpplstp_iws-toast-close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 0.375rem;
    color: var(--rpplstp_iws-muted-foreground);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

#wpbody-content .rpplstp_iws-toast-close:hover {
    background-color: var(--rpplstp_iws-muted);
    color: var(--rpplstp_iws-foreground);
}

@media (max-width: 768px) {
    .rpplstp_iws-toast-container {
        top: 70px; /* Position below admin bar on mobile */
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .rpplstp_iws-toast {
        transform: translateY(-100%);
    }
    
    .rpplstp_iws-toast-show {
        transform: translateY(0);
    }
    
    .rpplstp_iws-toast-hide {
        transform: translateY(-100%);
    }
}

/* Modal Styles - Positioned relative to wpbody-content, only covers plugin area */
#wpbody-content .rpplstp_iws-modal {
    display: none;
    position: fixed;
    top: 32px; /* Below WordPress admin bar */
    left: 160px; /* After WordPress admin sidebar */
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#wpbody-content .rpplstp_iws-modal.rpplstp_iws-modal-open {
    display: flex;
}

#wpbody-content .rpplstp_iws-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease-out;
}

#wpbody-content .rpplstp_iws-modal-content {
    position: relative;
    background-color: var(--rpplstp_iws-card);
    border-radius: var(--rpplstp_iws-radius);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
    overflow: visible;
    max-height: none;
}

#wpbody-content .rpplstp_iws-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--rpplstp_iws-border);
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.03) 0%, rgba(124, 58, 237, 0.01) 100%);
}

#wpbody-content .rpplstp_iws-modal-header-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

#wpbody-content .rpplstp_iws-modal-header-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
    border-radius: 0.75rem;
    color: var(--rpplstp_iws-primary);
    border: 1px solid rgba(124, 58, 237, 0.15);
}

#wpbody-content .rpplstp_iws-modal-header-text {
    flex: 1;
    min-width: 0;
}

#wpbody-content .rpplstp_iws-modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--rpplstp_iws-foreground);
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

#wpbody-content .rpplstp_iws-modal-subtitle {
    font-size: 0.8125rem;
    color: var(--rpplstp_iws-muted-foreground);
    margin: 0;
    line-height: 1.5;
}

#wpbody-content .rpplstp_iws-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    color: var(--rpplstp_iws-muted-foreground);
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    padding: 0;
}

#wpbody-content .rpplstp_iws-modal-close:hover {
    background-color: var(--rpplstp_iws-muted);
    color: var(--rpplstp_iws-foreground);
}

#wpbody-content .rpplstp_iws-modal-body {
    padding: 1rem;
    overflow: visible;
    flex: 0 1 auto;
}

#wpbody-content .rpplstp_iws-modal-description {
    font-size: 0.8125rem;
    color: var(--rpplstp_iws-muted-foreground);
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

/* Modal body with form (description now in header) */
#wpbody-content .rpplstp_iws-modal-body .rpplstp_iws-modal-form {
    margin-top: 0;
}

#wpbody-content .rpplstp_iws-modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Reduce spacing for form groups in modals */
#wpbody-content .rpplstp_iws-modal-form .rpplstp_iws-form-group {
    margin-bottom: 0;
}

#wpbody-content .rpplstp_iws-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.625rem;
    padding: 0;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rpplstp_iws-border);
    flex-shrink: 0;
}

/* Ensure buttons in modal footer are properly styled */
#wpbody-content .rpplstp_iws-modal-footer .rpplstp_iws-btn {
    min-width: auto;
    white-space: nowrap;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

/* When modal footer is inside the form, it's already in modal-body which has padding */
#wpbody-content .rpplstp_iws-modal-form .rpplstp_iws-modal-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rpplstp_iws-border);
}

/* Modal Navigation Item Styles - Ensure buttons match anchor tag styling */
/* Button styles are inherited from .rpplstp_iws-nav-item */

#wpbody-content button.rpplstp_iws-nav-item.rpplstp_iws-modal-trigger:hover {
    background-color: var(--rpplstp_iws-accent);
    color: var(--rpplstp_iws-accent-foreground);
}

#wpbody-content button.rpplstp_iws-nav-item.rpplstp_iws-modal-trigger:focus {
    outline: 2px solid var(--rpplstp_iws-primary);
    outline-offset: 2px;
    border-radius: 0.5rem;
}

#wpbody-content button.rpplstp_iws-nav-item.rpplstp_iws-modal-trigger:active {
    transform: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    #wpbody-content .rpplstp_iws-modal-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    #wpbody-content .rpplstp_iws-modal {
        padding: 0;
    }
    
    #wpbody-content .rpplstp_iws-modal-header,
    #wpbody-content .rpplstp_iws-modal-body,
    #wpbody-content .rpplstp_iws-modal-footer {
        padding: 0.75rem;
    }
}