.agti-cgp-center h1 {
	color: #ca8e46;
	font-weight: 700;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.agti-cgp-center .nav-tab-wrapper {
	border-bottom: 2px solid #ca8e46;
	background: transparent;
}

.agti-cgp-center .nav-tab {
	background: #f8fafc;
	border-color: #e5e7eb #e5e7eb transparent #e5e7eb;
	color: #0f172a;
	border-radius: 6px 6px 0 0;
	margin-right: 4px;
	transition: all 0.3s ease;
}

.agti-cgp-center .nav-tab:hover {
	background: #eef2ff;
	color: #ca8e46;
	border-color: #ca8e46;
}

.agti-cgp-center .nav-tab-active {
	background: #ffffff;
	border-bottom-color: #ffffff;
	box-shadow: inset 0 -3px 0 0 #ca8e46;
	color: #0d906b;
	font-weight: 600;
}

.agti-cgp-center .agti-cgp-panel {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-top: none;
}

/* Buttons */
.agti-cgp-center .button-primary {
	background: #ca8e46 !important;
	border-color: #ca8e46 !important;
	box-shadow: none !important;
	color: white !important;
	transition: all 0.3s ease !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
}

.agti-cgp-center .button-primary:hover,
.agti-cgp-center .button-primary:focus {
	background: #b87a3a !important;
	border-color: #b87a3a !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 4px 12px rgba(202, 142, 70, 0.3) !important;
}

.agti-cgp-center .button {
	border-radius: 4px !important;
	transition: all 0.3s ease !important;
	font-weight: 500 !important;
}

.agti-cgp-center .button:hover {
	background: #f8fafc !important;
	border-color: #ca8e46 !important;
	color: #ca8e46 !important;
}

.agti-cgp-center .button.button-secondary {
	background: #0d906b !important;
	border-color: #0d906b !important;
	color: white !important;
}

.agti-cgp-center .button.button-secondary:hover {
	background: #0a7a5a !important;
	border-color: #0a7a5a !important;
}

/* Cards & forms */
.agti-cgp-center .agti-template-form,
.agti-cgp-center .agti-dashboard-card,
.agti-cgp-center .cgp-dashboard-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(202, 142, 70, 0.1);
	transition: all 0.3s ease;
}

.agti-cgp-center .agti-template-form:hover,
.agti-cgp-center .agti-dashboard-card:hover,
.agti-cgp-center .cgp-dashboard-card:hover {
	box-shadow: 0 4px 16px rgba(202, 142, 70, 0.15);
	border-color: #ca8e46;
}

.agti-cgp-center .agti-template-cards .agti-template-card {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #ffffff;
	transition: all 0.3s ease;
}

.agti-cgp-center .agti-template-cards .agti-template-card:hover {
	border-color: #ca8e46;
	box-shadow: 0 2px 8px rgba(202, 142, 70, 0.1);
}

.agti-cgp-center table.form-table th {
	color: #0f172a;
	font-weight: 600;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.agti-cgp-center table.form-table input[type="text"],
.agti-cgp-center table.form-table input[type="number"],
.agti-cgp-center table.form-table select,
.agti-cgp-center table.form-table textarea {
	border-color: #e5e7eb;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) inset;
	border-radius: 4px;
	transition: all 0.3s ease;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.agti-cgp-center table.form-table input[type="text"]:focus,
.agti-cgp-center table.form-table input[type="number"]:focus,
.agti-cgp-center table.form-table select:focus,
.agti-cgp-center table.form-table textarea:focus {
	border-color: #ca8e46;
	box-shadow: 0 0 0 3px rgba(202, 142, 70, 0.1);
	outline: none;
}

/* Dashboard quick actions inside wrapper */
.agti-cgp-center .cgp-quick-actions .button {
	border-radius: 4px;
}

/* Split View Layout */
.agti-create-split {
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(202, 142, 70, 0.1);
}

.agti-create-left {
	padding: 20px;
	background: #ffffff;
	border-right: 1px solid #e5e7eb;
}

.agti-create-right {
	padding: 20px;
	background: #f8fafc;
	min-height: 400px;
}

.agti-live-preview {
	border: 2px solid #e5e7eb;
	border-radius: 6px;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #6b7280;
	font-size: 16px;
	font-weight: 500;
	transition: all 0.3s ease;
}

.agti-live-preview:hover {
	border-color: #ca8e46;
}

/* Quiz Summaries */
#agti-quiz-summaries {
	margin-top: 20px;
}

#agti-quiz-summaries .agti-quiz-summary {
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 12px;
	background: #ffffff;
	margin-bottom: 8px;
	transition: all 0.3s ease;
}

#agti-quiz-summaries .agti-quiz-summary:hover {
	border-color: #ca8e46;
	box-shadow: 0 2px 8px rgba(202, 142, 70, 0.1);
}

#agti-quiz-summaries .agti-quiz-summary .agti-quiz-title {
	font-weight: 600;
	color: #0f172a;
	margin-bottom: 4px;
}

#agti-quiz-summaries .agti-quiz-summary .agti-quiz-meta {
	display: flex;
	gap: 16px;
	font-size: 13px;
	color: #6b7280;
}

#agti-quiz-summaries .agti-quiz-summary .agti-quiz-meta div {
	display: flex;
	align-items: center;
	gap: 4px;
}

/* Additional Data Repeater */
.agti-extra-item {
	border: 1px solid #e5e7eb !important;
	border-radius: 6px !important;
	padding: 12px !important;
	background: #ffffff !important;
	margin-bottom: 8px !important;
	transition: all 0.3s ease !important;
}

.agti-extra-item:hover {
	border-color: #ca8e46 !important;
	box-shadow: 0 2px 8px rgba(202, 142, 70, 0.1) !important;
}

.agti-extra-item input[type="text"],
.agti-extra-item input[type="number"] {
	border: 1px solid #d1d5db !important;
	border-radius: 4px !important;
	padding: 6px 8px !important;
	font-size: 13px !important;
	transition: all 0.3s ease !important;
}

.agti-extra-item input[type="text"]:focus,
.agti-extra-item input[type="number"]:focus {
	border-color: #ca8e46 !important;
	box-shadow: 0 0 0 2px rgba(202, 142, 70, 0.1) !important;
	outline: none !important;
}

.agti-extra-item .agti-extra-pct {
	font-weight: 600;
	color: #0d906b;
	text-align: center;
	padding: 6px 8px;
	background: #f0fdf4;
	border-radius: 4px;
	border: 1px solid #dcfce7;
}

.agti-remove-extra {
	background: #dc3545 !important;
	border-color: #dc3545 !important;
	color: white !important;
	padding: 4px 12px !important;
	font-size: 12px !important;
	border-radius: 4px !important;
	transition: all 0.3s ease !important;
}

.agti-remove-extra:hover {
	background: #c82333 !important;
	border-color: #c82333 !important;
	transform: scale(1.05) !important;
}

/* Extras Totals */
#agti-extras-totals {
	border: 1px solid #e5e7eb !important;
	border-radius: 6px !important;
	padding: 12px !important;
	background: #ffffff !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

#agti-extras-totals strong {
	color: #0f172a;
	font-weight: 600;
}

#agti-total-pts, #agti-total-max, #agti-total-pct {
	font-weight: 600;
	color: #0d906b;
}

/* Modal Styles */
.agti-modal-overlay {
	background: rgba(0, 0, 0, 0.6) !important;
	backdrop-filter: blur(2px);
}

.agti-modal-content {
	border: none !important;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
	border-radius: 12px !important;
}

.agti-modal-header {
	border-bottom: 2px solid #ca8e46 !important;
	margin-bottom: 20px !important;
}

.agti-modal-header h2 {
	color: #ca8e46 !important;
	font-weight: 700 !important;
	margin: 0 !important;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif !important;
}

.agti-modal-close {
	color: #6b7280 !important;
	font-size: 28px !important;
	font-weight: 300 !important;
	transition: all 0.3s ease !important;
}

.agti-modal-close:hover {
	color: #ca8e46 !important;
	transform: scale(1.1) !important;
}

.agti-modal-footer {
	border-top: 1px solid #e5e7eb !important;
	padding-top: 15px !important;
}

.agti-modal-footer .button {
	border-radius: 6px !important;
	font-weight: 500 !important;
}

/* Existing Documents List */
#agti-existing-list .agti-doc-item {
	border: 1px solid #e5e7eb !important;
	border-radius: 6px !important;
	padding: 12px !important;
	background: #ffffff !important;
	transition: all 0.3s ease !important;
	margin-bottom: 8px !important;
}

#agti-existing-list .agti-doc-item:hover {
	border-color: #ca8e46 !important;
	box-shadow: 0 2px 8px rgba(202, 142, 70, 0.1) !important;
}

#agti-existing-list .agti-doc-title {
	font-weight: 600 !important;
	color: #0f172a !important;
	margin-bottom: 4px !important;
	font-size: 14px !important;
}

#agti-existing-list .agti-doc-date {
	color: #6b7280 !important;
	font-size: 12px !important;
	margin-bottom: 8px !important;
}

#agti-existing-list .agti-doc-actions {
	display: flex !important;
	gap: 8px !important;
	flex-wrap: wrap !important;
}

#agti-existing-list .agti-doc-actions .button {
	font-size: 12px !important;
	padding: 6px 12px !important;
	border-radius: 4px !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}

/* Position Controls Table */
.agti-cgp-center .position-controls table.form-table {
	border: 1px solid #e5e7eb !important;
	border-radius: 6px !important;
	background: #ffffff !important;
	overflow: hidden !important;
}

.agti-cgp-center .position-controls table.form-table th {
	background: #f8fafc !important;
	border-bottom: 1px solid #e5e7eb !important;
	padding: 12px !important;
	color: #0f172a !important;
	font-weight: 600 !important;
}

.agti-cgp-center .position-controls table.form-table td {
	padding: 12px !important;
	border-bottom: 1px solid #e5e7eb !important;
}

.agti-cgp-center .position-controls table.form-table tr:last-child th,
.agti-cgp-center .position-controls table.form-table tr:last-child td {
	border-bottom: none !important;
}

.agti-cgp-center .position-controls input[type="number"] {
	width: 80px !important;
	text-align: center !important;
	font-weight: 500 !important;
}

/* Notices */
.agti-cgp-center .notice {
	border-radius: 6px !important;
	border-left: 4px solid #ca8e46 !important;
	background: #fefbf6 !important;
	color: #0f172a !important;
}

.agti-cgp-center .notice-success {
	border-left-color: #0d906b !important;
	background: #f0fdf4 !important;
}

.agti-cgp-center .notice-info {
	border-left-color: #0ea5e9 !important;
	background: #f0f9ff !important;
}

.agti-cgp-center .notice-warning {
	border-left-color: #f59e0b !important;
	background: #fffbeb !important;
}

.agti-cgp-center .notice-error {
	border-left-color: #dc3545 !important;
	background: #fef2f2 !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
	.agti-create-split {
		flex-direction: column !important;
	}

	.agti-create-left {
		border-right: none !important;
		border-bottom: 1px solid #e5e7eb !important;
	}

	.agti-create-right {
		min-height: 300px !important;
	}

	.agti-live-preview iframe {
		height: 300px !important;
	}
}

@media (max-width: 768px) {
	.agti-create-left,
	.agti-create-right {
		padding: 15px !important;
	}

	.agti-extra-item {
		flex-direction: column !important;
		gap: 8px !important;
	}

	.agti-extra-item input[type="text"] {
		width: 100% !important;
	}

	#agti-existing-list .agti-doc-actions {
		flex-direction: column !important;
	}

	#agti-existing-list .agti-doc-actions .button {
		width: 100% !important;
		text-align: center !important;
	}
}

/* Loading States */
.agti-loading {
	position: relative !important;
}

.agti-loading::after {
	content: '' !important;
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	width: 20px !important;
	height: 20px !important;
	margin: -10px 0 0 -10px !important;
	border: 2px solid #e5e7eb !important;
	border-top: 2px solid #ca8e46 !important;
	border-radius: 50% !important;
	animation: spin 1s linear infinite !important;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
	.agti-cgp-center .agti-create-right,
	.agti-cgp-center .nav-tab-wrapper,
	.agti-cgp-center .button,
	.agti-cgp-center .notice {
		display: none !important;
	}

	.agti-cgp-center .agti-create-left {
		border: none !important;
		padding: 0 !important;
		box-shadow: none !important;
	}
}


