/* Digital Marketing Team Task Manager — Frontend Styles */

.dtm-wrap {
	--dtm-bg: #F4EFFC;
	--dtm-primary: #7635DC;
	--dtm-primary-dark: #5f28b3;
	--dtm-text: #000000;
	--dtm-card-bg: #ffffff;
	--dtm-border: #e7e0f7;
	--dtm-radius: 14px;

	background: var(--dtm-bg);
	padding: 24px;
	border-radius: var(--dtm-radius);
	color: var(--dtm-text);
	max-width: 1100px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dtm-header h2 {
	font-size: 24px;
	font-weight: 800;
	margin: 0 0 4px;
}

.dtm-subtitle {
	color: #5b5b6b;
	margin: 0 0 20px;
}

.dtm-notice {
	padding: 12px 16px;
	border-radius: 10px;
	margin-bottom: 16px;
	font-weight: 600;
}

.dtm-notice-warning { background: #fff4e0; color: #a86400; }
.dtm-notice-success { background: #e2f8ef; color: #0f9d68; }
.dtm-notice-error { background: #fde8e8; color: #c0392b; }

.dtm-empty-state {
	background: #fff;
	border-radius: var(--dtm-radius);
	padding: 30px;
	text-align: center;
	color: #6b6b7d;
	grid-column: 1 / -1;
}

.dtm-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}

.dtm-task-card {
	background: var(--dtm-card-bg);
	border-radius: var(--dtm-radius);
	padding: 18px;
	box-shadow: 0 2px 10px rgba(118, 53, 220, 0.08);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dtm-task-card-top {
	display: flex;
	justify-content: space-between;
}

.dtm-task-title {
	font-size: 16px;
	font-weight: 700;
	margin: 4px 0;
}

.dtm-task-meta {
	font-size: 13px;
	color: #6b6b7d;
	margin: 0;
}

.dtm-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	text-transform: capitalize;
}

.dtm-priority-low { background: #e6f4ea; color: #1e7e34; }
.dtm-priority-medium { background: #fff4e0; color: #a86400; }
.dtm-priority-high { background: #fde8e8; color: #c0392b; }
.dtm-priority-urgent { background: #fddede; color: #a3141a; }

.dtm-status-pending { background: #eee; color: #555; }
.dtm-status-in_progress { background: #e6f0ff; color: #1a56c4; }
.dtm-status-waiting_review { background: #fff0d9; color: #b06a00; }
.dtm-status-completed { background: #e2f8ef; color: #0f9d68; }

.dtm-progress-bar {
	background: #eee;
	border-radius: 999px;
	height: 8px;
	width: 100%;
	overflow: hidden;
	margin-top: 6px;
}

.dtm-progress-fill {
	background: var(--dtm-primary);
	height: 100%;
}

.dtm-progress-label {
	font-size: 12px;
	color: #6b6b7d;
	align-self: flex-end;
}

.dtm-btn {
	display: inline-block;
	border: none;
	border-radius: 8px;
	padding: 9px 16px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	font-size: 13px;
	text-align: center;
}

/* .dtm-btn br{
	display:none;
} */

.dtm-btn-primary { background: #7635dc; color: #fff; }
.dtm-btn-primary:hover { background: #7635dc; }
.dtm-btn-primary br{ display:none; }

.dtm-btn-outline {
	background: #7635dc;
	border: 1px solid var(--dtm-primary);
	color: #fff;
	margin-top: 10px;
}
.dtm-btn-outline br{
	display:none !important;
}

.dtm-filters {
	background: #fff;
	border-radius: var(--dtm-radius);
	padding: 14px;
	margin-bottom: 20px;
}

.dtm-filters form {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.dtm-filters select {
	border-radius: 8px;
	border: 1px solid var(--dtm-border);
	padding: 8px 10px;
}

.dtm-section-title {
	font-size: 18px;
	font-weight: 800;
	margin: 26px 0 12px;
}

.dtm-kanban-board {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}

.dtm-kanban-column {
	background: #fff;
	border-radius: var(--dtm-radius);
	padding: 12px;
	min-height: 160px;
}

.dtm-kanban-column h4 {
	margin: 4px 0 12px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #6b6b7d;
}

.dtm-kanban-card {
	background: #faf8ff;
	border: 1px solid var(--dtm-border);
	border-radius: 10px;
	padding: 10px;
	margin-bottom: 10px;
	cursor: grab;
	font-size: 13px;
}

.dtm-kanban-list.dtm-drag-over { background: #efe7fb; border-radius: 10px; }

/* Modal (task detail) */
.dtm-modal {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.45);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	z-index: 100000;
	padding: 40px 16px;
	overflow-y: auto;
}

.dtm-modal[hidden] { display: none; }

.dtm-modal-content {
	background: #fff;
	border-radius: var(--dtm-radius);
	padding: 26px;
	max-width: 560px;
	width: 100%;
	position: relative;
}

.dtm-modal-close {
	position: absolute;
	top: 14px;
	right: 18px;
	background: none;
	border: none;
	font-size: 22px;
	cursor: pointer;
	color: #888;
}

.dtm-form label {
	display: block;
	font-weight: 700;
	margin: 14px 0 6px;
	font-size: 18px;
}

.dtm-form input,
.dtm-form select,
.dtm-form textarea {
	width: 100%;
	border-radius: 8px;
	border: 1px solid var(--dtm-border);
	padding: 9px 10px;
	box-sizing: border-box;
	font-family: inherit;
}

.dtm-form button[type="submit"] 
{ margin-top: 18px;
    background-color: #7635dc;
    border: #7635dc;
    color: #fff;
    padding: 11px 15px !important; }

.dtm-open-task{
	background-color: #7635dc;
    border: #7635dc;
    color: #fff;
    padding: 11px 15px !important;
}

.dtm-open-task br{
	display:none !important;
}

.dtm-comment-list {
	margin: 14px 0;
	max-height: 200px;
	overflow-y: auto;
	border-top: 1px solid var(--dtm-border);
	padding-top: 10px;
}

.dtm-comment {
	font-size: 13px;
	margin-bottom: 10px;
}

.dtm-comment strong { display: block; }
.dtm-comment span { color: #999; font-size: 11px; }

@media (max-width: 900px) {
	.dtm-kanban-board { grid-template-columns: 1fr 1fr; }
}

.dtm-project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}

.dtm-project-card { gap: 6px; }

.dtm-project-status-active { background: #e6f0ff; color: #1a56c4; }
.dtm-project-status-on_hold { background: #fff4e0; color: #a86400; }
.dtm-project-status-completed { background: #e2f8ef; color: #0f9d68; }

.dtm-milestone-view-list {
	list-style: none;
	margin: 8px 0;
	padding: 0;
	font-size: 12px;
	color: #444;
}

.dtm-milestone-view-list li {
	padding: 3px 0;
}

.dtm-milestone-view-list li.dtm-milestone-done {
	color: #999;
	text-decoration: line-through;
}

.dtm-milestone-view-list .dtm-milestone-due {
	color: #999;
	text-decoration: none;
	margin-left: 4px;
}

@media (max-width: 600px) {
	.dtm-kanban-board { grid-template-columns: 1fr; }
	.dtm-wrap { padding: 14px; }
}

.dtm-filters select, .dtm-filters input[type="text"], .dtm-filters input[type="date"] {
    border-radius: 8px;
    border: 1px solid var(--dtm-border);
    padding: 0px 10px;
    width: 15%;
}
