@import "./inPipeTailwindDirectives.css";
@import "./inPipeGlobalColors.css";

/* Basic admin layout */
.inpipe-admin-wrapper {
	padding: 1.25rem;
	background-color: #fff;
	margin: 0.625rem;
}

.inpipe-admin-header {
	margin-bottom: 1.25rem;
	border-bottom: 1px solid #f3f4f6;
	padding-bottom: 0.625rem;
}

/* Enhanced component styles */
.inpipe-card {
	background-color: #fff;
	border-radius: 0.5rem;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	padding: 1.5rem;
	margin-bottom: 1rem;
}

.inpipe-heading {
	font-size: 1.25rem;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 1rem;
}

/* Button styles */
.inpipe-btn {
	padding: 0.5rem 1rem;
	border-radius: 0.375rem;
	transition: background-color 200ms;
}

.inpipe-btn-primary {
	background-color: #de3163;
	color: #fff;
}

.inpipe-btn-primary:hover {
	background-color: #fa0c64;
}

.inpipe-btn-secondary {
	background-color: #e5e7eb;
	color: #374151;
}

.inpipe-btn-secondary:hover {
	background-color: #d1d5db;
}

/* Form styles */
.inpipe-form-input {
	width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: 0.375rem;
}

.inpipe-form-input:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgba(222, 49, 99, 0.2);
	border-color: transparent;
}

.inpipe-form-label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	color: #374151;
	margin-bottom: 0.25rem;
}

/* Mobile responsiveness utilities */
.inpipe-mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 40;
	background-color: #fff;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	width: 16rem;
	transform: translateX(-100%);
	transition: transform 300ms ease;
}

.inpipe-mobile-menu.open {
	transform: translateX(0);
}

/* Loading states */
.inpipe-loading {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2.5px solid #f3f3f3;
	border-top-color: #de3163;
	border-radius: 50%;
	animation: spin 0.7s linear infinite;
}

@keyframes spin {

	to {
		transform: rotate(360deg);
	}
}

/* Animation utilities */
.inpipe-fade-enter-active,
.inpipe-fade-leave-active {
	transition: opacity 0.3s ease;
}

.inpipe-fade-enter-from,
.inpipe-fade-leave-to {
	opacity: 0;
}

/* Toast Styles for WordPress Admin */
.vue-toast-wp-admin {
	z-index: 999999 !important; /* Ensure toasts appear above WP admin UI */
}

/* WordPress admin theme integration */
.Vue-Toastification__toast {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

.Vue-Toastification__toast--success {
	background-color: #46b450 !important;
}

.Vue-Toastification__toast--error {
	background-color: #dc3232 !important;
}

.Vue-Toastification__toast--warning {
	background-color: #ffb900 !important;
}

.Vue-Toastification__toast--info {
	background-color: #00a0d2 !important;
}

/* NOTE: Premium placeholder styles removed - not needed in free version */

/* Component Error Styles */
.component-error {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	text-align: center;
	background-color: #fff5f5;
	border: 1px solid #fed7d7;
	border-radius: 8px;
	margin: 1rem;
}

.component-error h3 {
	color: #e53e3e;
	margin-bottom: 1rem;
}

.component-error p {
	color: #718096;
	margin-bottom: 1.5rem;
}

.error-retry-btn {
	background-color: #e53e3e;
	color: white;
	border: none;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	cursor: pointer;
}

.error-retry-btn:hover {
	background-color: #c53030;
}
