/* CPT Dashboard Frontend - Minimal CSS (Customize as needed) */

.cptdfe-dashboard {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cptdfe-container {
	background: white;
	border-radius: 4px;
	padding: 20px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cptdfe-cpt-selector {
	margin-bottom: 30px;
}

.cptdfe-cpt-selector label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
}

.cptdfe-cpt-selector select {
	width: 100%;
	max-width: 400px;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	cursor: pointer;
}

.cptdfe-cpt-selector select:focus {
	outline: none;
	border-color: #1a1f3a;
	box-shadow: 0 0 0 3px rgba(26, 31, 58, 0.1);
}

.cptdfe-posts-list {
	margin-bottom: 30px;
}

.cptdfe-posts-list h2 {
	margin: 0 0 15px 0;
	font-size: 24px;
	color: #111;
}

.cptdfe-btn-add {
	display: inline-block;
	padding: 10px 20px;
	background: #1a1f3a;
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	margin-bottom: 20px;
	transition: background 0.3s;
}

.cptdfe-btn-add:hover {
	background: #0f1420;
}

.cptdfe-posts {
	display: grid;
	gap: 12px;
}

.cptdfe-post-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #f9f9f9;
	transition: all 0.3s;
}

.cptdfe-post-item:hover {
	border-color: #1a1f3a;
	background: #f0f2f7;
	box-shadow: 0 2px 8px rgba(26, 31, 58, 0.15);
}

.cptdfe-post-info {
	flex: 1;
}

.cptdfe-post-title {
	font-weight: 600;
	color: #111;
	margin: 0 0 5px 0;
	font-size: 16px;
}

.cptdfe-post-meta {
	font-size: 13px;
	color: #666;
	margin: 0;
}

.cptdfe-post-actions {
	display: flex;
	gap: 8px;
}

.cptdfe-btn-edit,
.cptdfe-btn-delete {
	padding: 8px 12px;
	border: none;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
}

.cptdfe-btn-edit {
	background: #1a1f3a;
	color: white;
}

.cptdfe-btn-edit:hover {
	background: #0f1420;
}

.cptdfe-btn-delete {
	background: #ef4444;
	color: white;
}

.cptdfe-btn-delete:hover {
	background: #dc2626;
}

.cptdfe-form-container {
	margin-bottom: 30px;
}

.cptdfe-btn-back {
	display: inline-block;
	padding: 8px 16px;
	background: #1a1f3a;
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	margin-bottom: 15px;
	transition: background 0.3s;
}

.cptdfe-btn-back:hover {
	background: #0f1420;
}

.cptdfe-form-container h2 {
	margin: 0 0 20px 0;
	font-size: 20px;
	color: #111;
}

.cptdfe-form-wrapper {
	background: #f9f9f9;
	padding: 20px;
	border-radius: 4px;
	border: 1px solid #ddd;
}

.cptdfe-form-wrapper .acf-form {
	margin: 0;
}

.cptdfe-form-wrapper .acf-field {
	margin-bottom: 20px;
}

.cptdfe-form-wrapper .acf-label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	color: #333;
}

.cptdfe-form-wrapper input,
.cptdfe-form-wrapper textarea,
.cptdfe-form-wrapper select {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
}

.cptdfe-form-wrapper input:focus,
.cptdfe-form-wrapper textarea:focus,
.cptdfe-form-wrapper select:focus {
	outline: none;
	border-color: #1a1f3a;
	box-shadow: 0 0 0 3px rgba(26, 31, 58, 0.1);
}

.cptdfe-form-wrapper textarea {
	min-height: 150px;
	resize: vertical;
}

.cptdfe-loading {
	text-align: center;
	padding: 40px 20px;
	color: #999;
}

.cptdfe-message {
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 15px;
	font-weight: 500;
}

.cptdfe-message-success {
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #6ee7b7;
}

.cptdfe-message-error {
	background: #fee2e2;
	color: #7f1d1d;
	border: 1px solid #fca5a5;
}

@media (max-width: 768px) {
	.cptdfe-post-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.cptdfe-post-actions {
		width: 100%;
	}

	.cptdfe-btn-edit,
	.cptdfe-btn-delete {
		flex: 1;
	}
}
