.suretriggers-nobase {
    position: fixed;
    top: 50px;
    height: calc(100% - 50px);
    width: -webkit-fill-available;
}

.suretriggers-nobase > div {
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    width: 100%; 
    height: 100%;
}

.suretriggers-nobase > div > div {
    width: 550px; 
    max-width: 800px; 
    margin: 0 auto; 
    background: white; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    border-radius: 8px; 
    padding: 40px; 
    text-align: center;
}

.suretriggers-info-title {
    text-align: center; font-size: 1.5rem; font-weight: 600; color: #111827; margin-bottom: 16px;
}

.suretriggers-info-content {
    font-size: 0.875rem; color: #6b7280; margin-bottom: 16px;
}

.suretriggers-info-link {
    --primary: #145485;--primary-foreground: #f8fafc;color: var(--primary-foreground);background-color: var(--primary);display: inline-block; padding: 10px 20px; border-radius: 6px; font-size: 1rem; text-decoration: none; margin-bottom: 16px;
}

.suretriggers-info-link:active, .suretriggers-info-link:hover, .suretriggers-info-link:focus {
    --primary: #145485;--primary-foreground: #f8fafc;color: var(--primary-foreground);background-color: var(--primary);
}

/* General Admin Page Styling */
.admin-page {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
}

.suretriggers-nav-tab {
    margin: 1.5em 0 1em;
}

.suretriggers-system-table {
    margin-bottom: 1em;
}

.suretriggers-system-table h2 {
    font-size: 14px;
    font-weight: 600;
}

.suretriggers-system-table h5 {
    display: inline-block;
    font-size: 14px;
    font-weight: 800;
}

.suretriggers-system-table td svg {
    display: inline;
}

.suretriggers-system-table-trigger tbody tr {
    background-color: #f9f9f9;
}
.suretriggers-system-table-trigger tbody tr.odd-row {
    background-color: #ffffff;
}

table.suretriggers-system-table-trigger th, table.suretriggers-system-table-trigger td {
    border: 1px solid #e0dede;
}

table.suretriggers-system-table-trigger tr.integration-row {
    border-top: 1px solid #e0dede;
}

.st-permalink-warning-wrapper {
	display: flex;
	justify-content: center;
	margin-top: 24px;
}

.st-permalink-warning-card {
	background-color: #fffbeb;
	border: 1px solid #f4aa28;
	border-radius: 8px;
	padding: 20px 24px;
	width: 550px;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	color: #a14800;
}

.st-permalink-warning-icon {
	background-color: #fff9e8;
	border: 1.5px solid #a14800;
	border-radius: 50%;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-top: 3px;
}

.st-permalink-warning-icon-text {
	color: #a14800;
	font-size: 14px;
	font-weight: bold;
}

.st-permalink-warning-content {
	color: #a14800;
}

.st-permalink-warning-title {
	margin: 0 0 6px 0;
	font-weight: 600;
	font-size: 16px;
}

.st-permalink-warning-message {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.6;
}

.st-permalink-warning-link {
	color: #a14800;
	text-decoration: underline;
	font-weight: 500;
}

/* OttoKit Upgrade Button Styling - Enhanced Green Theme */
.ottokit-upgrade-btn {
	background: linear-gradient(135deg, #28a745 0%, #20a848 100%) !important;
	color: #fff !important;
	font-weight: 600 !important;
	padding: 6px 12px !important;
	border-radius: 6px !important;
	font-size: 12px !important;
	line-height: 1.3 !important;
	transition: all .3s ease !important;
	border: none !important;
	outline: none !important;
	text-decoration: none !important;
	display: inline-block !important;
	margin: 0 !important;
	box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3) !important;
	letter-spacing: 0.5px !important;
	white-space: nowrap !important;
	min-width: max-content !important;
}

.ottokit-upgrade-btn:hover {
	background: linear-gradient(135deg, #218838 0%, #1e7e34 100%) !important;
	color: #fff !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4) !important;
}

.ottokit-upgrade-btn:active {
	background: linear-gradient(135deg, #1e7e34 0%, #1c7430 100%) !important;
	transform: translateY(0) !important;
	box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3) !important;
}

/* Plugin action links styling */
.plugin-action-links .ottokit-upgrade-btn {
	margin: 0 !important;
}

/* Admin menu styling */
#adminmenu .ottokit-upgrade-btn {
	margin: 0 !important;
	vertical-align: baseline !important;
}


/* Reset Tailwind @tailwindcss/forms checkbox overrides on WP admin list tables */
#suretriggers-requests-table-form .check-column input[type="checkbox"]:checked,
#suretriggers-requests-table-form .check-column input[type="checkbox"]:checked:hover,
#suretriggers-requests-table-form .check-column input[type="checkbox"]:checked:focus {
    background-color: #fff;
    border-color: #8c8f94;
    background-image: none;
}

/* Date filter inputs */
.st-date-input {
    padding: 4px 8px;
    height: 30px;
    vertical-align: middle;
    margin: 0 4px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 13px;
}

.st-filters-row {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

/* View Response Modal */
.st-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100050;
    display: flex;
    justify-content: center;
    align-items: center;
}

.st-modal-content {
    background: #fff;
    width: 700px;
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.st-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #ddd;
}

.st-modal-header h3 { margin: 0; font-size: 16px; }

.st-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0 4px;
    line-height: 1;
}

.st-modal-close:hover { color: #d63638; }

.st-modal-body { padding: 20px; overflow-y: auto; }

.st-modal-section { margin-bottom: 16px; }

.st-modal-section h4 { margin: 0 0 4px 0; font-size: 13px; color: #1d2327; font-weight: 600; }

.st-modal-section p { margin: 0; color: #50575e; }

.st-json-display {
    background: #f0f0f1;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 12px;
    font-size: 12px;
    line-height: 1.5;
    max-height: 300px;
    overflow: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Troubleshooting Page */
.st-troubleshooting-wrap { max-width: 800px; }
.st-troubleshooting-header { margin-bottom: 24px; }
.st-troubleshooting-desc { font-size: 14px; color: #50575e; margin: 8px 0 16px; }
.st-troubleshooting-scenarios { margin-bottom: 24px; }
.st-troubleshooting-scenarios h3 { font-size: 15px; margin-bottom: 12px; }

.st-scenario-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 12px;
}

.st-scenario-card h4 { margin: 0 0 8px 0; font-size: 14px; color: #1d2327; }
.st-scenario-card p { margin: 0; font-size: 13px; color: #50575e; line-height: 1.6; }

.st-troubleshooting-note {
    background: #fcf9e8;
    border: 1px solid #dba617;
    border-radius: 4px;
    padding: 12px 16px;
}

.st-troubleshooting-note p { margin: 0; font-size: 13px; color: #50575e; line-height: 1.5; }

@media screen and (max-width: 782px) {
    .suretriggers-nobase > div {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        height: 100%;
    }

    #suretriggers-requests-table-form .tablenav.top .actions {
        display: block;
        margin-bottom: 5px;
        width: 100%;
        text-align: center;
    }

    #suretriggers-requests-table-form .tablenav .actions select {
        float: none;
    }

    #suretriggers_filter_request { margin: 0; }
    .st-filters-row { flex-direction: column; align-items: stretch; }
    .st-date-input { margin: 4px 0; width: 100%; }
    .st-modal-content { width: 95vw; max-height: 90vh; }
}