/* This file contains the styles used in the Popup Builder Pro Admin Page Elements */

/* Columns Styling ------------------- Start */


/* Style for all the Headings in the Admin Table */
/* stylelint-disable selector-id-pattern */
.post-type-spectra-popup .wp-list-table #spectra_popup_details {
	width: 150px;
}

/* stylelint-enable selector-id-pattern */

/* Style for the Switch and Quick-view Column and Row in the Admin Table */
th.column-spectra_popup_details,
td.column-spectra_popup_details {
	text-align: center;
}

/* Style for the Quick-view Element in the Admin Table */
td.spectra_popup_details.column-spectra_popup_details .spectra-popup-builder__button {
	background: transparent;
	border: none;
	cursor: pointer;
}

/* Style for the Quick-view Dashicon in the Admin Table */
td.spectra_popup_details.column-spectra_popup_details .spectra-popup-builder__button {
	color: #50575e;
}

/* Style for everything inside the Quick View Button in the Admin Table */
td.spectra_popup_details.column-spectra_popup_details .spectra-popup-builder__button * {
	pointer-events: none;
}

/* Columns Styling --------------------- End */

/* Modal Styling --------------------- Start */

/* Style for the Modal Overlay */
.spectra-popup-builder__modal--overlay {
	display: none; /* Hidden by default */
	align-items: center;
	justify-content: center;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 99999;
	backdrop-filter: blur(4px);
	background-color: rgba(107, 114, 128, 0.75);
	opacity: 0;
	transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Style for the Modal */
.spectra-popup-builder__modal {
	position: relative;
	width: 100%;
	max-width: 32rem;
	border-radius: 8px;
	background-color: white;
	box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
	opacity: 0;
	transition-property: all;
    transition-timing-function: ease;
    transition-duration: 250ms;
}

/* Style for all the padded elements in the Modal */
.spectra-popup-builder__modal--padded {
	padding: 16px 32px;
}

/* Style for the Modal Header */
.spectra-popup-builder__modal--header {
	border-bottom: 1px solid #e6e7e9;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* Style for the Modal Title */
.spectra-popup-builder__modal--title {
	font-size: 20px;
	line-height: 24px;
	font-weight: 600;
	margin: 0;
}

/* Style for the Modal Type Badge */
.spectra-popup-builder__modal--type {
	background-color: #f5f3ff;
	color: #4f46e5;
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 12px;
	line-height: 16px;
	font-weight: 600;
	text-transform: capitalize;
}

/* Style for the Modal Body */
.spectra-popup-builder__modal--body {
	display: grid;
	grid-template-columns: repeat( 2, 1fr );
	grid-gap: 1px;
	width: 100%;
	background-color: #e6e7e9;
}

/* Style for each cell in the Modal Body */
.spectra-popup-builder__modal--body div {
	background-color: white;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

/* Style for the lists in the Modal Body */
.spectra-popup-builder__modal--body ul {
	list-style-type: disc;
	text-align: left;
	padding-left: 12px;
}

/* Style for the Modal Footer */
.spectra-popup-builder__modal--footer {
	border-top: 1px solid #e6e7e9;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* Style for the Modal Status */
.spectra-popup-builder__modal--status {
	text-transform: capitalize;
}

/* Style for the Modal Close Button */
.spectra-popup-builder__modal--close {
	background: transparent;
	border: none;
	cursor: pointer;
	position: absolute;
	color: white;
	top: 0;
	right: -32px;
	padding: 0;
}
/* Style for the Modal Close Button Dashicon */
.spectra-popup-builder__modal--close .dashicons {
	width: 24px;
	height: 24px;
	font-size: 24px;
	line-height: 14px;
}

/* Style for the admin page scroll lock */
.spectra-popup-builder__modal--scroll-lock {
	overflow: hidden;
}

/* Modal Styling ----------------------- End */

/* Focus Management Styles - WCAG 2.1 Compliance */
/* Added for keyboard accessibility and screen reader support */

/* Button Focus Styles */
.hvac-button:focus,
.hvac-content .button:focus,
.hvac-content button:focus,
.hvac-content input[type="submit"]:focus,
.hvac-email-submit:focus,
.hvac-filter-submit:focus,
.hvac-certificate-actions button:focus,
.hvac-certificate-actions a:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.2);
    border-radius: 4px;
}

/* Input Focus Styles */
.hvac-form-input:focus,
.hvac-content input[type="text"]:focus,
.hvac-content input[type="email"]:focus,
.hvac-content input[type="password"]:focus,
.hvac-content input[type="url"]:focus,
.hvac-content textarea:focus,
.hvac-content select:focus,
.hvac-email-form-row input:focus,
.hvac-email-form-row textarea:focus,
.hvac-filter-group input:focus,
.hvac-filter-group select:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
    border-color: #005fcc;
    box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.2);
}

/* Link Focus Styles */
.hvac-content a:focus,
.hvac-event-link:focus,
.hvac-certificate-link:focus,
.hvac-attendee-profile-icon:focus,
.hvac-dashboard-nav a:focus,
.hvac-email-navigation a:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
    text-decoration: underline;
    background-color: rgba(0, 95, 204, 0.1);
    border-radius: 2px;
}

/* Interactive Element Focus Styles */
.hvac-attendee-checkbox:focus,
.hvac-select-all-container input[type="checkbox"]:focus,
.hvac-modal-close:focus,
.hvac-certificate-table tr:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.2);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .hvac-content *:focus {
        outline: 3px solid #000000;
        outline-offset: 2px;
        background-color: #ffff00;
        color: #000000;
    }
}

/* Focus-visible polyfill support */

/* Reset focus for mouse users while preserving keyboard accessibility */
.js-focus-visible :focus:not(.focus-visible) {
    outline: none;
    box-shadow: none;
}

/* Ensure focus is visible for keyboard users */
.js-focus-visible .focus-visible {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
}
