.page-template-page-to-do-php #page {
	max-width: 820px;
	margin: 0 auto;
}

.page-template-page-to-do-php #page .card {
	width: 100%;
	max-width: 100%;
}

.pd-todo-placeholder {
	display: block;
	width: 100%;
	max-width: 100%;
}

.pd-todo-card {
	width: 100% !important;
	max-width: 100% !important;
}

.pd-todo-card .pd-todo-app {
	width: 100% !important;
	max-width: 100% !important;
}

.pd-todo-app {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	background: #0f0f0f;
	border: 1px solid #1f1f1f;
	border-radius: 12px;
	padding: 16px;
	color: #f5f5f5;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.pd-todo-header {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.pd-todo-heading {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: 0.2px;
}

.pd-todo-subtitle {
	color: #bdbdbd;
	font-size: 14px;
}

.pd-todo-error {
	display: none;
	padding: 10px 12px;
	background: #2a181b;
	border: 1px solid #442126;
	color: #ff9b9b;
	border-radius: 10px;
}

.pd-todo-auth {
	display: none;
	gap: 10px;
	align-items: center;
	background: #1c1c1c;
	border: 1px solid #2b2b2b;
	border-radius: 10px;
	padding: 10px;
}

.pd-todo-auth input {
	flex: 1;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid #2b2b2b;
	background: #0f0f0f;
	color: #f5f5f5;
}

.pd-todo-auth button {
	padding: 10px 12px;
	background: #2e2e2e;
	color: #fff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
}

.pd-todo-auth button:hover {
	background: #3a3a3a;
}

.pd-todo-auth-msg {
	color: #ff9b9b;
	font-size: 12px;
}

.pd-todo-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.pd-todo-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}

.pd-todo-tab {
	padding: 8px 12px;
	background: #1a1a1a;
	border: 1px solid #2b2b2b;
	border-radius: 10px;
	color: #dcdcdc;
	cursor: pointer;
}

.pd-todo-tab.active {
	background: #b00020;
	border-color: #b00020;
	color: #fff;
}

.pd-todo-tab:hover {
	background: #262626;
}

.pd-todo-simple-form input {
	flex: 1 1 240px;
	padding: 12px;
	box-sizing: border-box;
	border-radius: 10px;
	border: 1px solid #2b2b2b;
	background: #1c1c1c;
	color: #f5f5f5;
}

.pd-todo-simple-form select {
	flex: 1 1 180px;
	padding: 12px;
	border-radius: 10px;
	border: 1px solid #2b2b2b;
	background: #1c1c1c;
	color: #f5f5f5;
}

.pd-todo-simple-form button {
	padding: 12px 16px;
	background: #b00020;
	color: #fff;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	font-weight: 700;
}

.pd-todo-simple-form button:hover {
	background: #c8102e;
}

.pd-todo-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
}

.pd-todo-section {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pd-todo-section-title {
	font-weight: 800;
	font-size: 15px;
	color: #dcdcdc;
	letter-spacing: 0.2px;
}

.pd-todo-section-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pd-todo-pager {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 6px;
}

.pd-todo-page-btn {
	padding: 6px 10px;
	background: #1a1a1a;
	border: 1px solid #2b2b2b;
	border-radius: 8px;
	color: #dcdcdc;
	cursor: pointer;
}

.pd-todo-page-btn:disabled {
	opacity: 0.5;
	cursor: default;
}

.pd-todo-page-label {
	color: #bdbdbd;
	font-size: 12px;
}

.pd-todo-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	background: #1c1c1c;
	border: 1px solid #2b2b2b;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pd-todo-row-done {
	opacity: 0.6;
}

.pd-todo-checkbox {
	width: 18px;
	height: 18px;
	accent-color: #b00020;
	cursor: pointer;
}

.pd-todo-main {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.pd-todo-title {
	font-weight: 700;
	font-size: 16px;
	color: #f5f5f5;
}

.pd-todo-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	color: #bdbdbd;
	font-size: 13px;
}

.pd-todo-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.pd-todo-tag {
	display: inline-flex;
	align-items: center;
	padding: 4px 8px;
	border-radius: 10px;
	font-size: 12px;
	background: #242424;
	border: 1px solid #303030;
	color: #e5e5e5;
}

.pd-todo-tag-category {
	background: #1f2430;
	border-color: #2c3a55;
	color: #d7e2ff;
}

.pd-todo-tag-habit {
	background: #1e2a22;
	border-color: #2f503d;
	color: #d2f3df;
}

.pd-todo-due {
	padding: 4px 8px;
	border-radius: 10px;
	background: #242424;
	border: 1px solid #303030;
	color: #e5e5e5;
}

.pd-todo-due-today {
	background: #2a1b1f;
	border-color: #b00020;
	color: #ffd0d7;
}

.pd-todo-due-past {
	background: #3a1b1b;
	border-color: #b00020;
	color: #ffb8b8;
}

.pd-todo-due-soon {
	background: #2a271b;
	border-color: #b89b2c;
	color: #ffe8b0;
}

.pd-todo-desc {
	color: #9ea0a4;
}

.pd-todo-actions {
	display: flex;
	gap: 8px;
}

.pd-todo-delete {
	padding: 8px 10px;
	background: #2a151b;
	color: #ff9b9b;
	border: 1px solid #441f27;
	border-radius: 10px;
	cursor: pointer;
}

.pd-todo-delete:hover {
	background: #3a1c24;
}

.pd-todo-empty {
	text-align: center;
	padding: 14px;
	background: #1c1c1c;
	border: 1px solid #2b2b2b;
	color: #bdbdbd;
	border-radius: 10px;
}
