/* 
 * Tracker Pro SaaS Client Dashboard CSS 
 */

/* General Wrapper */
.cptp-client-dashboard {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #333;
	line-height: 1.6;
}

.cptp-client-dashboard h2 {
	margin-top: 0;
	color: #1d2327;
	border-bottom: 2px solid #e0e0e0;
	padding-bottom: 10px;
}

.cptp-dashboard-widgets h3 {
	margin-top: 0;
	color: #2271b1;
	border-bottom: 1px solid #eee;
	padding-bottom: 10px;
}

/* Projects Card */
.cptp-project-card {
	border: 1px solid #e0e0e0;
	padding: 20px;
	margin-bottom: 25px;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
	transition: box-shadow 0.3s ease;
}

.cptp-project-card:hover {
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cptp-project-card h4 {
	margin-top: 0;
	font-size: 1.25em;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.cptp-project-progress-meta {
	font-size: 0.85em;
	color: #666;
	font-weight: normal;
	background: #f0f0f1;
	padding: 3px 8px;
	border-radius: 12px;
}

/* Progress Bar */
.cptp-progress-bar-container {
	background: #e9ecef;
	width: 100%;
	height: 10px;
	border-radius: 5px;
	margin: 15px 0;
	overflow: hidden;
}

.cptp-progress-bar-fill {
	background: #2271b1;
	height: 100%;
	transition: width 0.5s ease-in-out;
}

/* Tasks List */
.cptp-tasks-label {
	display: block;
	margin-bottom: 10px;
	font-weight: 600;
	color: #444;
}

.cptp-tasks-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cptp-task-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 12px;
	margin-bottom: 8px;
	background: #f8f9fa;
	border: 1px solid #f1f1f1;
	border-radius: 4px;
}

.cptp-task-title {
	font-weight: 500;
}

.cptp-task-status {
	font-size: 0.85em;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 12px;
}

.cptp-status-pending { background: #fee2e2; color: #dc2626; }
.cptp-status-in-progress { background: #fef3c7; color: #d97706; }
.cptp-status-completed { background: #dcfce3; color: #166534; }

/* Responsive Grid for Modules loaded in hooks */
.cptp-project-modules-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin-top: 25px;
}

@media (min-width: 768px) {
	.cptp-project-modules-grid {
		grid-template-columns: 1fr 1fr;
	}
}

/* Generic Button Polish */
.cptp-client-dashboard .button-primary {
	background: #2271b1;
	color: #fff;
	border: none;
	padding: 8px 16px;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s;
}

.cptp-client-dashboard .button-primary:hover {
	background: #135e96;
}
