/**
 * Voice Logica AI for WooCommerce – Admin styles
 * Aligns with https://www.voicelogica.ai/ branding
 */

.voicelogica-settings {
	--voicelogica-primary: #051721;
	--voicelogica-accent: #3366ff;
	--voicelogica-text: #16213e;
	--voicelogica-border: #e2e8f0;
	--voicelogica-bg: #f8fafc;
	--voicelogica-success: #10b981;
	--voicelogica-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Main wrapper with subtle background */
.voicelogica-settings {
	background: #fff;
	padding: 2rem;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	max-width: 900px;
	margin: 2rem auto;
}

/* Branded header – logo centered, description on next line */
.voicelogica-settings .voicelogica-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1rem;
	margin: 0 0 2.5rem 0;
	padding-bottom: 2rem;
	border-bottom: 2px solid var(--voicelogica-bg);
}

.voicelogica-settings .voicelogica-header__logo-link {
	display: block;
	line-height: 0;
	transition: transform 0.2s ease;
}

.voicelogica-settings .voicelogica-header__logo-link:hover {
	transform: scale(1.02);
}

.voicelogica-settings .voicelogica-header__logo {
	height: 88px;
	width: auto;
	max-width: 360px;
	object-fit: contain;
	display: block;
}

/* Fallback title when no logo */
.voicelogica-settings .voicelogica-header__title {
	margin: 0;
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--voicelogica-primary);
	letter-spacing: -0.02em;
	line-height: 1.3;
}

.voicelogica-settings .voicelogica-header__brand {
	text-align: center;
}

.voicelogica-settings .voicelogica-header__tagline {
	margin: 0;
	font-size: 1rem;
	color: #64748b;
	line-height: 1.5;
	font-weight: 400;
}

/* Connect section – no extra container, flows with page */
.voicelogica-settings .voicelogica-connect-section {
	padding: 0;
	margin: 0;
	text-align: left;
}

.voicelogica-settings .voicelogica-connect-section h3 {
	margin: 0 0 1rem 0;
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--voicelogica-primary);
	text-align: center;
}

.voicelogica-settings .voicelogica-connect-section p {
	font-size: 1.05rem;
	color: var(--voicelogica-text);
	margin: 0 0 1.25rem 0;
	line-height: 1.7;
}

.voicelogica-settings .voicelogica-connect-section p:last-of-type {
	margin-bottom: 1.5rem;
}

.voicelogica-settings .voicelogica-connect-section p strong {
	color: var(--voicelogica-primary);
	font-weight: 600;
}

.voicelogica-settings .voicelogica-features-list {
	margin: 1rem 0 1.5rem 1.5rem;
	padding: 0;
	list-style: none;
}

.voicelogica-settings .voicelogica-features-list li {
	font-size: 1rem;
	color: var(--voicelogica-text);
	line-height: 1.8;
	margin-bottom: 0.75rem;
	padding-left: 1.75rem;
	position: relative;
}

.voicelogica-settings .voicelogica-features-list li:before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--voicelogica-accent);
	font-weight: 700;
	font-size: 1.1rem;
}

.voicelogica-settings .voicelogica-connect-section .submit {
	text-align: center;
	margin-top: 1.5rem;
}

.voicelogica-settings .voicelogica-connect-section .button-primary {
	padding: 12px 32px;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 6px;
	box-shadow: 0 2px 4px rgba(51, 102, 255, 0.2);
	transition: all 0.2s ease;
}

.voicelogica-settings .voicelogica-connect-section .button-primary:hover,
.voicelogica-settings .voicelogica-connect-section .button-primary:focus {
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(51, 102, 255, 0.3);
}

/* Connected state intro */
.voicelogica-settings > p:first-of-type {
	font-size: 1.05rem;
	color: var(--voicelogica-text);
	margin-bottom: 1.5rem;
	padding: 1rem 1.25rem;
	background: #f0f9ff;
	border-left: 4px solid var(--voicelogica-accent);
	border-radius: 4px;
}

/* Section headings */
.voicelogica-settings h2 {
	margin-top: 2.5rem;
	margin-bottom: 1rem;
	color: var(--voicelogica-primary);
	font-size: 1.35rem;
	font-weight: 600;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--voicelogica-bg);
}

.voicelogica-settings h2:first-of-type {
	margin-top: 0;
}

/* Form table improvements */
.voicelogica-settings .form-table {
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
}

.voicelogica-settings .form-table th {
	font-weight: 600;
	color: var(--voicelogica-text);
	padding: 1.25rem 1rem;
	vertical-align: middle;
}

.voicelogica-settings .form-table td {
	padding: 1.25rem 1rem;
	vertical-align: middle;
}

.voicelogica-settings .form-table tr {
	border-bottom: 1px solid var(--voicelogica-bg);
}

.voicelogica-settings .form-table tr:last-child {
	border-bottom: none;
}

.voicelogica-settings .form-table tr:hover {
	background: #fafbfc;
}

/* Checkbox styling */
.voicelogica-settings input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin-right: 0.5rem;
	cursor: pointer;
}

.voicelogica-settings input[type="text"],
.voicelogica-settings input[type="email"],
.voicelogica-settings select {
	border: 1px solid var(--voicelogica-border);
	border-radius: 4px;
	padding: 8px 12px;
	font-size: 0.95rem;
	transition: border-color 0.2s ease;
}

.voicelogica-settings input[type="text"]:focus,
.voicelogica-settings input[type="email"]:focus,
.voicelogica-settings select:focus {
	border-color: var(--voicelogica-accent);
	outline: none;
	box-shadow: 0 0 0 3px rgba(51, 102, 255, 0.1);
}

/* Primary button – enhanced styling */
.voicelogica-settings .button-primary {
	border-color: var(--voicelogica-accent);
	background: var(--voicelogica-accent);
	padding: 10px 24px;
	font-weight: 600;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.voicelogica-settings .button-primary:hover,
.voicelogica-settings .button-primary:focus {
	background: var(--voicelogica-primary);
	border-color: var(--voicelogica-primary);
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(5, 23, 33, 0.2);
}

/* Reduce gap between Save Settings and Disconnect */
.voicelogica-settings form + .voicelogica-disconnect-section {
	margin-top: 1.25rem;
}

/* Disconnect section – compact spacing */
.voicelogica-settings .voicelogica-disconnect-section {
	background: #fff5f5;
	border: 1px solid #fecaca;
	border-radius: 8px;
	padding: 1rem 1.25rem;
	margin-top: 1.25rem;
}

.voicelogica-settings .voicelogica-disconnect-section h2 {
	margin: 0 0 0.5rem 0;
	padding-bottom: 0.5rem;
	color: #991b1b;
	border-bottom: 1px solid #fecaca;
}

.voicelogica-settings .voicelogica-disconnect-section p {
	color: #7f1d1d;
	margin: 0 0 0.75rem 0;
	font-size: 0.95rem;
}

.voicelogica-settings .voicelogica-disconnect-section .submit {
	margin: 0.5rem 0 0 0;
}

/* Disconnect button */
.voicelogica-settings .button.button-link-delete {
	border: 2px solid #dc3232 !important;
	color: #dc3232;
	background: transparent;
	padding: 10px 24px;
	font-weight: 600;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.voicelogica-settings .button.button-link-delete:hover {
	background: #dc3232;
	color: #fff;
	border: 2px solid #dc3232 !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(220, 50, 50, 0.2);
}

/* Description text */
.voicelogica-settings .description {
	color: #64748b;
	font-size: 0.9rem;
	line-height: 1.5;
	margin-top: 0.5rem;
}

/* Notices positioning */
.voicelogica-settings .notice {
	margin: 1rem 0 1.5rem 0;
	border-radius: 6px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
