/* Just Do It — frontend styles */

.jdi-frontend {
	direction: inherit;
	font-size: 15px;
	line-height: 1.6;
	color: #1d2327;
	--jdi-accent: #2563eb;
}

.jdi-frontend * {
	box-sizing: border-box;
}

.jdi-notice {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 16px;
}

.jdi-button {
	display: inline-block;
	background: var(--jdi-accent);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 6px 14px;
	font-size: 13px;
	text-decoration: none;
	cursor: pointer;
}

.jdi-button:hover {
	opacity: 0.9;
	color: #fff;
}

/* Progress bar */
.jdi-progress-bar {
	background: #eceef0;
	border-radius: 6px;
	height: 8px;
	overflow: hidden;
	width: 100%;
	margin: 8px 0 4px;
}

.jdi-progress-bar span {
	display: block;
	height: 100%;
	background: var(--jdi-accent);
}

/* Avatars */
.jdi-avatars {
	display: inline-flex;
}

.jdi-avatar {
	margin-inline-end: -8px;
	display: inline-block;
	border-radius: 50%;
	border: 2px solid #fff;
	overflow: hidden;
	line-height: 0;
}

.jdi-avatar img {
	display: block;
	border-radius: 50%;
}

.jdi-priority-dot {
	display: inline-block;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	margin-inline-end: 4px;
}

.jdi-overdue {
	color: #dc2626;
	font-weight: 600;
}

/* Project grid */
.jdi-project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 16px;
}

.jdi-project-card {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	padding: 18px;
}

.jdi-project-card h3 {
	margin: 0 0 6px;
}

.jdi-project-status {
	display: inline-block;
	font-size: 11px;
	background: #eef2ff;
	color: #3730a3;
	padding: 2px 8px;
	border-radius: 10px;
}

.jdi-project-card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 12px;
}

/* Board */
.jdi-board-title {
	margin-bottom: 14px;
}

.jdi-board-columns {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	padding-bottom: 10px;
	align-items: flex-start;
}

.jdi-board-column {
	background: #f6f7f7;
	border-top: 4px solid #ccc;
	border-radius: 8px;
	min-width: 260px;
	max-width: 260px;
	flex: 0 0 260px;
	padding: 10px;
}

.jdi-board-column.jdi-drag-over {
	background: #e9f1ff;
}

.jdi-board-column-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 4px 4px 10px;
	font-weight: 600;
}

.jdi-board-column-count {
	background: #e2e2e2;
	border-radius: 10px;
	font-size: 11px;
	padding: 1px 8px;
}

.jdi-board-column-cards {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 30px;
}

.jdi-card {
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
	padding: 10px 12px;
	position: relative;
}

.jdi-card[draggable="true"] {
	cursor: grab;
}

.jdi-card.jdi-dragging {
	opacity: 0.4;
}

.jdi-card-priority {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	position: absolute;
	inset-block-start: 12px;
	inset-inline-end: 10px;
}

.jdi-card-title {
	display: block;
	text-decoration: none;
	font-weight: 600;
	color: #1d2327;
	padding-inline-end: 16px;
	margin-bottom: 6px;
}

.jdi-card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	color: #646970;
}

.jdi-quick-add {
	margin-top: 8px;
}

.jdi-quick-add input {
	width: 100%;
	border: 1px dashed #c3c4c7;
	background: transparent;
	padding: 6px 8px;
	border-radius: 4px;
	font-size: 13px;
}

/* My tasks */
.jdi-my-tasks-project {
	margin-top: 20px;
}

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

.jdi-my-task-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 0;
	border-bottom: 1px solid #eceef0;
}

.jdi-my-task-title {
	flex: 1;
	text-decoration: none;
	color: inherit;
}

.jdi-task-done .jdi-my-task-title {
	text-decoration: line-through;
	opacity: 0.6;
}

.jdi-my-task-due {
	font-size: 12px;
	color: #646970;
}

/* Calendar */
.jdi-calendar-toolbar {
	display: flex;
	gap: 8px;
	margin-bottom: 14px;
}

.jdi-calendar-title {
	text-align: center;
}

.jdi-calendar-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	table-layout: fixed;
}

.jdi-calendar-table th {
	background: #f6f7f7;
	padding: 8px;
	border: 1px solid #e0e0e0;
	font-size: 12px;
}

.jdi-calendar-table td {
	border: 1px solid #e0e0e0;
	vertical-align: top;
	height: 100px;
	padding: 4px;
}

.jdi-empty-cell {
	background: #fafafa;
}

.jdi-day-number {
	font-size: 12px;
	font-weight: 600;
	color: #646970;
	margin-bottom: 4px;
}

.jdi-today {
	background: #eef4ff;
}

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

.jdi-day-tasks li {
	margin-bottom: 3px;
}

.jdi-day-tasks a {
	display: block;
	font-size: 11px;
	background: #f6f7f7;
	border-inline-start: 3px solid #6b7280;
	padding: 2px 5px;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: inherit;
}

.jdi-task-done a {
	text-decoration: line-through;
	opacity: 0.6;
}

@media (max-width: 600px) {
	.jdi-calendar-table td {
		height: 70px;
	}
}

/* Muted text/links */
.jdi-muted {
	color: #6b7280;
	font-size: 13px;
}

.jdi-link-muted {
	display: block;
	text-align: center;
	margin-top: 14px;
	color: #6b7280;
	font-size: 13px;
	text-decoration: none;
}

.jdi-link-muted:hover {
	color: var(--jdi-accent);
}

.jdi-button-block {
	display: block;
	width: 100%;
	text-align: center;
	padding: 10px 14px;
	font-size: 14px;
	border: none;
}

/* Login page */
.jdi-login-wrap {
	display: flex;
	justify-content: center;
	padding: 40px 16px;
}

.jdi-login-card {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 14px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
	padding: 32px 28px;
	width: 100%;
	max-width: 380px;
}

.jdi-login-signed-in {
	text-align: center;
}

.jdi-login-signed-in img {
	border-radius: 50%;
	margin-bottom: 10px;
}

.jdi-login-title {
	margin: 0 0 4px;
	text-align: center;
}

.jdi-login-card .jdi-muted {
	text-align: center;
	margin-bottom: 20px;
}

.jdi-login-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 13px;
	margin-bottom: 16px;
}

.jdi-login-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.jdi-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
}

.jdi-field span {
	font-weight: 600;
	color: #374151;
}

.jdi-field input[type="text"],
.jdi-field input[type="password"] {
	padding: 9px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
}

.jdi-field input[type="text"]:focus,
.jdi-field input[type="password"]:focus {
	outline: none;
	border-color: var(--jdi-accent);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.jdi-field-checkbox {
	flex-direction: row;
	align-items: center;
	gap: 8px;
}

.jdi-field-checkbox span {
	font-weight: 400;
	color: #374151;
}

/* Dashboard */
.jdi-dashboard-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	flex-wrap: wrap;
	gap: 10px;
}

.jdi-dashboard-header-user {
	display: flex;
	align-items: center;
	gap: 12px;
}

.jdi-dashboard-header-user img {
	border-radius: 50%;
}

.jdi-dashboard-header-user h2 {
	margin: 0;
}

.jdi-dashboard-header-user .jdi-muted {
	margin: 2px 0 0;
}

.jdi-stat-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 28px;
}

.jdi-stat-card {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	padding: 16px 18px;
	min-width: 130px;
	flex: 1 1 130px;
	text-align: center;
}

.jdi-stat-number {
	display: block;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
}

.jdi-stat-label {
	display: block;
	margin-top: 4px;
	color: #6b7280;
	font-size: 12px;
}

.jdi-stat-danger .jdi-stat-number { color: #dc2626; }
.jdi-stat-warning .jdi-stat-number { color: #d97706; }
.jdi-stat-success .jdi-stat-number { color: #059669; }

.jdi-dashboard-section {
	margin-bottom: 32px;
}

.jdi-dashboard-section h3 {
	margin-bottom: 12px;
}
