:root {
	/* Google Material Design Colors - Light Mode Only */
	--bg-primary: #ffffff;
	--bg-secondary: #f8f9fa;
	--bg-tertiary: #f1f3f4;
	--surface: #ffffff;
	--surface-variant: #f8f9fa;
	--on-surface: #202124;
	--on-surface-variant: #5f6368;
	--primary: #1a73e8;
	--primary-variant: #1557b0;
	--secondary: #34a853;
	--error: #ea4335;
	--warning: #fbbc04;
	--border: #dadce0;
	--border-light: #e8eaed;
	--shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
	--shadow-elevated: 0 1px 2px 0 rgba(60,64,67,.3), 0 2px 6px 2px rgba(60,64,67,.15);
	--shadow-focus: 0 1px 2px 0 rgba(60,64,67,.3), 0 2px 6px 2px rgba(60,64,67,.15);
	--radius: 8px;
	--radius-large: 12px;
}

* { 
	box-sizing: border-box; 
	margin: 0;
	padding: 0;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
	background: var(--bg-primary);
	color: var(--on-surface);
	line-height: 1.5;
	font-size: 14px;
}
/* Header */
.site-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 24px;
	background: var(--surface);
	border-bottom: 1px solid var(--border-light);
	box-shadow: var(--shadow);
}

.brand {
	color: var(--on-surface);
	text-decoration: none;
	font-weight: 500;
	font-size: 22px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.brand-logo {
	width: 32px;
	height: 32px;
	object-fit: contain;
}

.brand::before {
	content: "";
	display: none;
}

/* Layout */
.container { 
	max-width: 1200px; 
	margin: 0 auto; 
	padding: 24px; 
}

/* Landing Page */
.landing-container {
	min-height: calc(100vh - 100px);
	display: flex;
	align-items: center;
	justify-content: center;
	background: white;
	padding: 40px 24px;
	position: relative;
}

.landing-card {
	background: white;
	border-radius: 24px;
	padding: 60px 80px;
	max-width: 900px;
	width: 100%;
	box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 4px 16px rgba(0,0,0,0.1);
	text-align: center;
	position: relative;
}

.logo-container {
	display: flex;
	justify-content: center;
	margin-bottom: 32px;
}

.landing-logo {
	width: 120px;
	height: 120px;
	object-fit: contain;
	animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
	from {
		opacity: 0;
		transform: scale(0.8);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.matrix-logo {
	width: 80px;
	height: 80px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 4px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.logo-quadrant {
	width: 100%;
	height: 100%;
	background: transparent;
	border: 3px solid var(--primary);
}

.landing-card h1 {
	font-size: 36px;
	font-weight: 500;
	color: var(--on-surface);
	margin-bottom: 16px;
}

.subtitle {
	font-size: 16px;
	color: var(--on-surface-variant);
	margin-bottom: 48px;
	line-height: 1.6;
}

.quadrant-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-bottom: 48px;
}

.info-card {
	background: var(--bg-secondary);
	border-radius: 12px;
	padding: 24px 20px;
	border: 2px solid transparent;
	transition: all 0.3s ease;
	cursor: default;
}

.info-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.urgent-important-card {
	border-color: var(--error);
	background: linear-gradient(135deg, rgba(234,67,53,0.08) 0%, var(--bg-secondary) 100%);
}

.not-urgent-important-card {
	border-color: var(--secondary);
	background: linear-gradient(135deg, rgba(52,168,83,0.08) 0%, var(--bg-secondary) 100%);
}

.urgent-not-important-card {
	border-color: var(--warning);
	background: linear-gradient(135deg, rgba(251,188,4,0.08) 0%, var(--bg-secondary) 100%);
}

.not-urgent-not-important-card {
	border-color: var(--on-surface-variant);
	background: linear-gradient(135deg, rgba(95,99,104,0.08) 0%, var(--bg-secondary) 100%);
}

.card-icon {
	font-size: 32px;
	margin-bottom: 12px;
}

.info-card h3 {
	font-size: 18px;
	font-weight: 500;
	color: var(--on-surface);
	margin-bottom: 4px;
}

.info-card p {
	font-size: 13px;
	color: var(--on-surface-variant);
	margin-bottom: 8px;
	font-weight: 500;
}

.card-description {
	font-size: 12px;
	color: var(--on-surface-variant);
	line-height: 1.5;
	display: block;
}

.btn-large {
	padding: 18px 56px;
	font-size: 17px;
	font-weight: 600;
	border-radius: 12px;
	letter-spacing: 0.2px;
}

.btn-header {
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.2px;
}

.google-icon {
	width: 20px;
	height: 20px;
	margin-right: 8px;
	flex-shrink: 0;
}

.hero { 
	text-align: center; 
	padding: 80px 0; 
	background: var(--bg-secondary);
	border-radius: var(--radius-large);
	margin: 24px 0;
}

/* Buttons */
.btn { 
	cursor: pointer; 
	border: 0; 
	border-radius: var(--radius); 
	padding: 10px 16px; 
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	text-align: center;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.2s ease;
	box-shadow: var(--shadow);
}

.btn:hover {
	box-shadow: var(--shadow-elevated);
	transform: translateY(-1px);
}

.btn:active {
	transform: translateY(0);
}

.btn-primary { 
	background: var(--primary); 
	color: white; 
}

.btn-primary:hover {
	background: var(--primary-variant);
}

.btn-secondary { 
	background: var(--surface); 
	color: var(--on-surface);
	border: 1px solid var(--border);
}

.btn-secondary:hover {
	background: var(--bg-secondary);
}

.btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: var(--shadow) !important;
}

.btn.loading {
	opacity: 0.8;
}

.btn-success { background: var(--secondary); color: white; }
.btn-warning { background: var(--warning); color: #000; }
.btn-danger { background: var(--error); color: white; }

.btn-sm {
	padding: 6px 12px;
	font-size: 12px;
}

form { display: inline; }

/* Dashboard Styles */
.dashboard-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	padding: 24px;
	background: var(--surface);
	border-radius: var(--radius-large);
	box-shadow: var(--shadow);
}

.user-info {
	display: flex;
	align-items: center;
	gap: 16px;
}

.dashboard-title {
	display: flex;
	align-items: center;
	gap: 16px;
}

.dashboard-logo {
	width: 48px;
	height: 48px;
	object-fit: contain;
}

.app-title {
	font-size: 18px;
	font-weight: 500;
	color: var(--primary);
	margin: 0 0 4px 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.user-info h1 {
	font-size: 28px;
	font-weight: 400;
	color: var(--on-surface);
	margin: 0;
}

.header-actions {
	display: flex;
	gap: 12px;
}

.header-right {
	display: flex;
	align-items: center;
	gap: 12px;
}

.btn-icon {
	width: 40px;
	height: 40px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	border-radius: 50%;
}

/* Main Workspace Layout */
.main-workspace {
	display: grid;
	grid-template-columns: 350px 1fr;
	gap: 24px;
	margin-bottom: 32px;
	height: calc(100vh - 200px);
	min-height: 600px;
}

/* Task Matrix */
.task-matrix {
	display: flex;
	flex-direction: column;
}

.task-matrix h2 {
	font-size: 24px;
	font-weight: 400;
	color: var(--on-surface);
	margin-bottom: 20px;
	text-align: center;
}

.matrix-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 16px;
	flex: 1;
	height: 100%;
}

.quadrant {
	border: 1px solid var(--border);
	border-radius: var(--radius-large);
	padding: 20px;
	background: var(--surface);
	overflow-y: auto;
	box-shadow: var(--shadow);
	transition: all 0.2s ease;
	min-height: 200px;
	position: relative;
}

.quadrant:hover {
	box-shadow: var(--shadow-elevated);
}

.quadrant.drag-over {
	border-color: var(--primary);
	background: rgba(26,115,232,0.1);
	transform: scale(1.02);
	border-width: 2px;
}

.quadrant.drag-over::before {
	content: "Drop task here";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: var(--primary);
	font-weight: 500;
	font-size: 16px;
	pointer-events: none;
	z-index: 10;
}

.quadrant h3 {
	margin: 0 0 16px 0;
	font-size: 16px;
	font-weight: 500;
	text-align: center;
	color: var(--on-surface);
	padding-bottom: 12px;
	border-bottom: 2px solid var(--border-light);
}

.urgent-important { 
	border-left: 4px solid var(--error);
	background: linear-gradient(135deg, rgba(234,67,53,0.05) 0%, var(--surface) 100%);
}

.not-urgent-important { 
	border-left: 4px solid var(--secondary);
	background: linear-gradient(135deg, rgba(52,168,83,0.05) 0%, var(--surface) 100%);
}

.urgent-not-important { 
	border-left: 4px solid var(--warning);
	background: linear-gradient(135deg, rgba(251,188,4,0.05) 0%, var(--surface) 100%);
}

.not-urgent-not-important { 
	border-left: 4px solid var(--on-surface-variant);
	background: linear-gradient(135deg, rgba(95,99,104,0.05) 0%, var(--surface) 100%);
}

/* All Tasks */
.all-tasks {
	padding: 24px;
	background: var(--surface);
	border-radius: var(--radius-large);
	box-shadow: var(--shadow);
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}

.all-tasks-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
	flex-shrink: 0;
}

.all-tasks h3 {
	font-size: 20px;
	font-weight: 400;
	color: var(--on-surface);
	margin: 0;
}

.filter-section {
	position: relative;
}

.filter-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-elevated);
	min-width: 200px;
	z-index: 1000;
	display: none;
	padding: 16px;
}

.filter-dropdown.show {
	display: block;
}

.filter-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	font-size: 14px;
	font-weight: 500;
	color: var(--on-surface);
}

.btn-xs {
	padding: 4px 8px;
	font-size: 12px;
}

#list-filters {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.filter-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	padding: 4px 0;
}

.filter-checkbox input[type="checkbox"] {
	margin: 0;
}

.filter-checkbox label {
	cursor: pointer;
	font-size: 14px;
	color: var(--on-surface);
}

#all-tasks-container {
	flex: 1;
	overflow-y: auto;
}

.task-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px;
	margin: 8px 0;
	background: var(--surface-variant);
	border-radius: var(--radius);
	border: 1px solid var(--border-light);
	cursor: move;
	transition: all 0.2s ease;
	box-shadow: 0 1px 2px rgba(60,64,67,.1);
	position: relative;
	z-index: 1;
}

.task-item:hover {
	background: var(--bg-secondary);
	box-shadow: var(--shadow);
	transform: translateY(-1px);
	z-index: 10;
}

.task-item.dragging {
	opacity: 0.5;
	transform: rotate(5deg);
}

.task-item.completed {
	opacity: 0.6;
	text-decoration: line-through;
}

.task-item.completed .task-title {
	text-decoration: line-through;
}

.task-item.overdue {
	border-left: 4px solid var(--error);
	background: linear-gradient(90deg, rgba(234,67,53,0.1) 0%, var(--surface-variant) 100%);
}

.task-item.overdue .task-title {
	color: var(--error);
	font-weight: 500;
}

.task-item.overdue .task-due {
	background: var(--error);
	color: white;
	font-weight: 500;
}

.task-content {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 12px;
}

.task-checkbox {
	width: 18px;
	height: 18px;
	border: 2px solid var(--border);
	border-radius: 4px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.task-checkbox.checked {
	background: var(--primary);
	border-color: var(--primary);
}

.task-checkbox.checked::after {
	content: "✓";
	color: white;
	font-size: 12px;
	font-weight: bold;
}

.task-details {
	flex: 1;
}

.task-title {
	font-weight: 500;
	color: var(--on-surface);
	margin-bottom: 4px;
}

.task-meta {
	font-size: 12px;
	color: var(--on-surface-variant);
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.task-list-name, .task-due {
	background: var(--bg-tertiary);
	padding: 2px 6px;
	border-radius: 4px;
}

.task-menu {
	position: relative;
	z-index: 1001;
}

.task-menu-button {
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	border-radius: 50%;
	color: var(--on-surface-variant);
	transition: all 0.2s ease;
}

.task-menu-button:hover {
	background: var(--bg-tertiary);
	color: var(--on-surface);
}

.task-menu-button::after {
	content: "⋮";
	font-size: 16px;
	font-weight: bold;
}

.task-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-elevated);
	min-width: 120px;
	z-index: 1000;
	display: none;
}

.task-dropdown.show {
	display: block;
}

.task-dropdown-item {
	display: block;
	width: 100%;
	padding: 12px 16px;
	border: none;
	background: none;
	text-align: left;
	cursor: pointer;
	color: var(--on-surface);
	font-size: 14px;
	transition: background 0.2s ease;
}

.task-dropdown-item:hover {
	background: var(--bg-secondary);
}

.task-dropdown-item:first-child {
	border-radius: var(--radius) var(--radius) 0 0;
}

.task-dropdown-item:last-child {
	border-radius: 0 0 var(--radius) var(--radius);
}

.task-dropdown-item.delete {
	color: var(--error);
}

/* Modal */
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
	backdrop-filter: blur(4px);
}

.modal-content {
	background: var(--surface);
	margin: 5% auto;
	padding: 32px;
	border-radius: var(--radius-large);
	width: 90%;
	max-width: 500px;
	position: relative;
	box-shadow: var(--shadow-elevated);
	border: 1px solid var(--border);
}

.close {
	color: var(--on-surface-variant);
	float: right;
	font-size: 24px;
	font-weight: 400;
	cursor: pointer;
	line-height: 1;
	transition: color 0.2s ease;
}

.close:hover { 
	color: var(--on-surface); 
}

#modal-title {
	font-size: 20px;
	font-weight: 400;
	color: var(--on-surface);
	margin-bottom: 24px;
}

.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: var(--on-surface);
	font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface-variant);
	color: var(--on-surface);
	font-family: inherit;
	font-size: 14px;
	transition: all 0.2s ease;
}

.form-group select {
	cursor: pointer;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 2px rgba(26,115,232,0.2);
}

.form-group textarea {
	resize: vertical;
	min-height: 80px;
}

.form-actions {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	margin-top: 32px;
}

/* Help Modal */
.help-content {
	max-width: 600px;
}

.help-section {
	margin-bottom: 24px;
}

.help-section h4 {
	font-size: 16px;
	font-weight: 500;
	color: var(--on-surface);
	margin-bottom: 12px;
}

.help-section ul {
	list-style-type: disc;
	padding-left: 24px;
	margin: 0;
}

.help-section li {
	margin-bottom: 8px;
	line-height: 1.6;
}

.shortcuts-table {
	width: 100%;
	border-collapse: collapse;
}

.shortcuts-table tr {
	border-bottom: 1px solid var(--border-light);
}

.shortcuts-table td {
	padding: 8px 0;
}

.shortcuts-table td:first-child {
	width: 40%;
}

kbd {
	display: inline-block;
	padding: 2px 6px;
	font-family: 'Courier New', monospace;
	font-size: 12px;
	color: var(--on-surface);
	background: var(--bg-tertiary);
	border: 1px solid var(--border);
	border-radius: 4px;
	box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Bug Report Link */
.bug-report-link {
	margin-top: 16px;
	padding-top: 12px;
	border-top: 1px solid var(--border-light);
	text-align: center;
}

.bug-report-link a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	color: var(--on-surface);
	text-decoration: none;
	font-size: 14px;
	border-radius: var(--radius);
	transition: all 0.2s ease;
	background: var(--surface-variant);
}

.bug-report-link a:hover {
	background: var(--bg-tertiary);
	color: var(--primary);
	transform: translateY(-1px);
}

/* Loading Spinner */
.loading-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid transparent;
	border-top: 2px solid currentColor;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-right: 8px;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
	background: var(--error-container);
	color: var(--on-error-container);
	padding: 16px;
	border-radius: var(--radius);
	margin: 20px 0;
	text-align: center;
	border: 1px solid var(--error);
}

/* Legal Links */
.legal-links {
	margin-top: 24px;
	text-align: center;
	font-size: 14px;
	color: var(--on-surface-variant);
}

.legal-links a {
	color: var(--primary);
	text-decoration: none;
	transition: color 0.2s ease;
}

.legal-links a:hover {
	color: var(--primary-dark);
	text-decoration: underline;
}

.legal-links .separator {
	margin: 0 12px;
	color: var(--border);
}

/* Legal Pages */
.legal-page {
	padding: 40px 20px;
	max-width: 800px;
	margin: 0 auto;
}

.legal-content {
	background: var(--surface);
	padding: 40px;
	border-radius: var(--radius-large);
	box-shadow: var(--shadow);
}

.legal-content h1 {
	color: var(--on-surface);
	font-size: 32px;
	margin-bottom: 16px;
}

.legal-content h2 {
	color: var(--on-surface);
	font-size: 20px;
	margin: 32px 0 16px 0;
	border-bottom: 2px solid var(--primary);
	padding-bottom: 8px;
}

.legal-content p {
	color: var(--on-surface-variant);
	line-height: 1.6;
	margin-bottom: 16px;
}

.legal-content ul {
	color: var(--on-surface-variant);
	line-height: 1.6;
	margin: 16px 0;
	padding-left: 24px;
}

.legal-content li {
	margin-bottom: 8px;
}

/* Buy Me a Coffee Button */
.coffee-button {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 56px;
	height: 56px;
	background: linear-gradient(135deg, #FFDD00 0%, #FBB034 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(251, 176, 52, 0.4);
	transition: all 0.3s ease;
	z-index: 999;
	text-decoration: none;
}

.coffee-button:hover {
	transform: translateY(-4px) scale(1.05);
	box-shadow: 0 8px 20px rgba(251, 176, 52, 0.5);
}

.coffee-button:active {
	transform: translateY(-2px) scale(1.02);
}

.coffee-icon {
	font-size: 28px;
	filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Responsive Design */
@media (max-width: 1024px) {
	.main-workspace {
		grid-template-columns: 1fr;
		grid-template-rows: auto 1fr;
		height: auto;
		gap: 16px;
	}
	
	.all-tasks {
		height: 300px;
		order: 2;
	}
	
	.task-matrix {
		order: 1;
	}
	
	.matrix-grid {
		height: 400px;
	}
}

@media (max-width: 768px) {
	.container {
		padding: 16px;
	}
	
	.main-workspace {
		gap: 12px;
	}
	
	.matrix-grid {
		grid-template-columns: 1fr;
		grid-template-rows: repeat(4, 1fr);
		height: 500px;
	}
	
	.dashboard-header {
		flex-direction: column;
		gap: 16px;
		text-align: center;
	}
	
	.dashboard-title {
		flex-direction: column;
		gap: 12px;
	}
	
	.dashboard-logo {
		width: 40px;
		height: 40px;
	}
	
	.app-title {
		font-size: 16px;
	}
	
	.user-info h1 {
		font-size: 24px;
	}
	
	.task-controls {
		width: 100%;
		justify-content: center;
	}
	
	.task-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	
	.task-actions {
		width: 100%;
		justify-content: flex-end;
	}
	
	.all-tasks {
		height: 250px;
	}
	
	/* Adjust coffee button on mobile */
	.coffee-button {
		bottom: 16px;
		right: 16px;
		width: 48px;
		height: 48px;
	}
	
	.coffee-icon {
		font-size: 24px;
	}
	
	/* Landing page mobile adjustments */
	.landing-card {
		padding: 40px 24px;
	}
	
	.landing-card h1 {
		font-size: 28px;
	}
	
	.subtitle {
		font-size: 14px;
	}
	
	.quadrant-cards {
		grid-template-columns: 1fr;
		gap: 16px;
		margin-bottom: 32px;
	}
	
	.btn-large {
		padding: 16px 40px;
		font-size: 16px;
		width: 100%;
	}
	
	.btn-header {
		padding: 10px 20px;
		font-size: 14px;
	}
}
