* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
body {
	padding: 20px;
	background: #f0f2f5;
	color: #333;
	--primary-color: #007bff;
	--secondary-color: #28a745;
	--accent-light: #f0f2f0;
}
header {
	margin-bottom: 20px;
	text-align: center;
}
#new-goal {
	margin-bottom: 20px;
	display: flex;
	gap: 5px;
}
#new-goal input,
#new-goal button {
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	transition: border-color 0.2s;
}
#new-goal input:focus,
.new-task input:focus,
.new-task select:focus {
	border-color: #007bff;
	outline: none;
}
#new-goal button {
	background: #007bff;
	color: #fff;
	cursor: pointer;
}
#new-goal button:hover {
	background: #0056b3;
}
#new-goal input::placeholder {
	color: #aaa;
}

#goals-container {
	flex: 1;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}
.layout {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}
#pomodoro-section {
	width: 220px;
	flex-shrink: 0;
	border-left: 1px solid #ddd;
	padding-left: 20px;
}
#pomodoro-section .pomodoro {
	position: sticky;
	top: 20px;
	background: #fff;
	padding: 15px;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.goal {
	background: linear-gradient(135deg, #ffffff, #f7f7f7);
	padding: 15px;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
	display: flex;
	flex-direction: column;
	transition:
		transform 0.2s,
		box-shadow 0.2s;
}
.goal.priority-high {
	border-left: 6px solid #ff4d4f;
}
.goal.priority-medium {
	border-left: 6px solid #ffc107;
}
.goal.priority-low {
	border-left: 6px solid #28a745;
}
.goal:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}
.goal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.goal-header h2 {
	font-size: 1.4em;
	margin-bottom: 10px;
	color: #222;
}
.goal-priority-label {
	font-size: 0.85em;
	background: #eee;
	border-radius: 4px;
	padding: 2px 6px;
	margin-left: 8px;
	text-transform: capitalize;
}
.goal.priority-high .goal-priority-label {
	background: #ff4d4f;
	color: #fff;
}
.goal.priority-medium .goal-priority-label {
	background: #ffc107;
	color: #222;
}
.goal.priority-low .goal-priority-label {
	background: #28a745;
	color: #fff;
}
.delete-goal-btn {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 1.2em;
	padding: 4px;
}
.delete-goal-btn:hover {
	color: #ff4d4f;
}
.tasks {
	list-style: none;
	min-height: 40px;
	flex: 1;
	transition: background 0.2s;
}
.tasks.drag-over {
	background: #e8f0fe;
}
.task {
	background: #fafafa;
	border: 1px solid #ddd;
	padding: 8px;
	margin-bottom: 5px;
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: grab;
	border-radius: 4px;
	transition:
		background 0.2s,
		transform 0.2s;
}
.task:hover {
	background: #f0f0f0;
	transform: scale(1.02);
}
.task:active {
	cursor: grabbing;
}
.task.completed {
	opacity: 0.5;
	text-decoration: line-through;
}
.task .info {
	flex: 1;
	word-break: break-word;
}
.task button {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 1.2em;
	line-height: 1;
	padding: 4px;
}
.task button:hover {
	color: #007bff;
}

.new-task {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 10px;
}
.new-task input,
.new-task select,
.new-task button {
	padding: 6px;
	border: 1px solid #ccc;
	border-radius: 4px;
}
.new-task button {
	background: #28a745;
	color: #fff;
	cursor: pointer;
}
.new-task button:hover {
	background: #218838;
}

.pomodoro {
	/* removed top margin since section has padding */
	text-align: center;
}
.calendar {
	margin: 20px 0;
	font-size: 0.85em;
}
.calendar .cal-header {
	font-weight: bold;
	margin-bottom: 6px;
	text-align: center;
}
.calendar table {
	width: 100%;
	border-collapse: collapse;
}
.calendar th,
.calendar td {
	width: 14.28%;
	text-align: center;
	padding: 2px 0;
}
.calendar td.today {
	background: var(--primary-color);
	color: #fff;
	border-radius: 50%;
}
.calendar td.completed-day {
	text-decoration: line-through;
	color: #888;
	position: relative;
}
.calendar td.completed-day::after {
	content: "✕";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #c00;
	font-size: 1.2em;
}
.streak {
	margin-top: 8px;
	text-align: center;
	font-weight: bold;
	color: var(--secondary-color);
}
.pomodoro #timer-display {
	font-size: 2em;
	margin-bottom: 10px;
	transition:
		transform 0.1s,
		color 0.2s;
}
.pomodoro #timer-display.active {
	color: var(--primary-color);
}
.pomodoro #timer-display.tick {
	transform: scale(1.1);
}
.pomodoro button {
	margin: 0 5px;
	padding: 8px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	transition:
		background 0.2s,
		border-color 0.2s;
}
.pomodoro button:hover {
	background: #f0f0f0;
}
.pomodoro button:focus {
	border-color: var(--primary-color);
	outline: none;
}

/* priority colors (formerly severity) */
.priority-low {
	background-color: #d4edda;
}
.priority-medium {
	background-color: #fff3cd;
}
.priority-high {
	background-color: #f8d7da;
}

/* importance labels removed – tasks now use single priority field */
