/* Header styling */
#header-section {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 2rem 0;
	margin-bottom: 2rem;
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#header-section h1 {
	margin: 0;
	font-size: 2.5rem;
	font-weight: 300;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

#header-section .material-icons {
	font-size: 2.5rem;
}
#header-section .subheader {
	margin: 0.5rem 0 0 0;
	opacity: 1;
	font-size: 1.1rem;
	color: #ffffff;
	font-weight: 400;
}

/* Filter section */
#filter-section {
	background: white;
	padding: 1.5rem;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	margin-top: 1rem;
}

#filter-section label {
	font-weight: 600;
	color: #333;
	margin-bottom: 0.5rem;
	display: block;
}

#search-input {
	border: 2px solid #e0e0e0;
	border-radius: 25px;
	padding: 0.75rem 1rem;
	font-size: 1rem;
	transition: all 0.3s ease;
}

#search-input:focus {
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
	outline: none;
}

.button-group .button {
	margin: 0 0.1rem;
	border-radius: 15px !important;
	transition: all 0.3s ease;
	font-weight: 500;
	padding: 0.4rem 0.6rem !important;
}

.button-group .button.secondary.active {
	background: #667eea;
	color: white;
	box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
	border-radius: 20px !important;
	padding: 0.5rem 1rem !important;
}/* Image placeholder styling */
.image-placeholder {
	width: 40px;
	height: 40px;
	background: #f0f0f0;
	border: 2px dashed #ccc;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	color: #999;
	margin: 0 auto;
}

/* Container styling - centered with max-width */
#container {
	background: white;
	border-radius: 8px;
	padding: 1rem;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	max-width: 1200px;
	margin: 0 auto;
	margin-left: auto;
	margin-right: auto;
}

/* Add side margins for smaller screens */
@media screen and (max-width: 1240px) {
	#container {
		margin-left: 1rem;
		margin-right: 1rem;
	}
}

/* Article row styling */
.article-row {
	background: white;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	margin: 1rem 0;
	padding: 1rem;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	max-width:initial;
}

.article-row:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0,0,0,0.1);
	border-color: #667eea;
}

.article-row::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: #667eea;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.article-row:hover::before {
	opacity: 1;
}

/* Date column */
.date-column {
	font-weight: 600;
	color: #667eea;
	font-size: 0.9rem;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

/* Image column */
.image-column img {
	max-width: 60px;
	max-height: 60px;
	border-radius: 6px;
	object-fit: cover;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
/* Content column */
.content-column {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.content-column a {
	text-decoration: none;
	color: #333;
	font-weight: 500;
	line-height: 1.4;
	transition: color 0.3s ease;
}

.content-column a:hover {
	color: #667eea;
}
.content-column a:visited {
	color: #999;
}

/* Disclaimer text styling */
.disclaimer-text {
	font-size: 0.75rem;
	color: #f39c12;
	background: rgba(243, 156, 18, 0.1);
	padding: 0.3rem 0.5rem;
	border-radius: 4px;
	margin-top: 0.5rem;
	border-left: 3px solid #f39c12;
	font-style: italic;
	line-height: 1.3;
}

/* English variant styling */
.english-variant {
	font-size: 0.75rem;
	opacity: 0.7;
	margin-left: 0.5rem;
}

.english-variant a {
	color: #667eea !important;
	text-decoration: none;
	font-weight: 400;
	padding: 0.2rem 0.4rem;
	border-radius: 3px;
	background: rgba(102, 126, 234, 0.1);
	transition: all 0.2s ease;
}
.english-variant a:hover {
	background: rgba(102, 126, 234, 0.2);
	color: #5a6fd8 !important;
}	/* Settings button */
#settings-btn {
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	background: #f8f9fa;
	border: 1px solid #e0e0e0;
	transition: background 0.3s ease, color 0.3s ease;
}

#settings-btn:hover {
	background: #667eea;
	color: white;
}

.settings-icon {
	display: inline-block;
	transition: transform 0.3s ease;
}

#settings-btn:hover .settings-icon {
	transform: rotate(90deg);
}

/* Settings Modal */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.modal-content {
	background: white;
	border-radius: 12px;
	padding: 0;
	max-width: 500px;
	width: 90%;
	max-height: 80vh;
	overflow-y: auto;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
	animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
	from {
		opacity: 0;
		transform: translateY(-50px) scale(0.9);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.modal-header {
	padding: 1.5rem;
	border-bottom: 1px solid #e0e0e0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border-radius: 12px 12px 0 0;
}

.modal-header h3 {
	margin: 0;
	font-size: 1.3rem;
	font-weight: 500;
}

.close-btn {
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: white;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s ease;
}

.close-btn:hover {
	background: rgba(255, 255, 255, 0.2);
}

.modal-body {
	padding: 1.5rem;
}

.setting-item {
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #f0f0f0;
}

.setting-item:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}
.setting-item label {
	font-weight: 600;
	font-size: 1.1rem;
	color: #333;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	cursor: pointer;
	margin-bottom: 0.5rem;
}

.setting-item > label {
	font-weight: 600;
	font-size: 1.1rem;
	color: #333;
	display: block;
	margin-bottom: 1rem;
	cursor: default;
}

.radio-group {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}

.radio-group label {
	font-weight: 500;
	font-size: 1rem;
	color: #555;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	cursor: pointer;
	padding: 0.5rem;
	border-radius: 6px;
	transition: background 0.2s ease;
}

.radio-group label:hover {
	background: rgba(102, 126, 234, 0.05);
}
.setting-item input[type="checkbox"],
.setting-item input[type="radio"] {
	width: 18px;
	height: 18px;
	accent-color: #667eea;
}

.setting-select {
	width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 0.9rem;
	background: white;
	transition: border-color 0.2s ease;
	margin-bottom: 0.5rem;
}

.setting-select:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.setting-description {
	color: #666;
	font-size: 0.9rem;
	margin: 0;
	margin-left: 2.25rem;
	line-height: 1.4;
}

/* DND Schedule Styles */
.dnd-settings {
	margin-top: 1rem;
	padding: 1rem;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #e9ecef;
}

.dnd-section {
	margin-bottom: 1rem;
}

.dnd-section:last-child {
	margin-bottom: 0;
}

.dnd-section > label {
	font-weight: 600;
	font-size: 1rem;
	color: #333;
	display: block;
	margin-bottom: 0.5rem;
}

.setting-description.small {
	font-size: 0.8rem;
	margin-left: 0;
	margin-bottom: 1rem;
	color: #666;
}

#silent-schedules-list {
	margin-bottom: 1rem;
}

.schedule-item {
	background: white;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 1rem;
	margin-bottom: 0.75rem;
	position: relative;
	transition: all 0.2s ease;
}

.schedule-item:hover {
	border-color: #667eea;
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.schedule-item:last-child {
	margin-bottom: 0;
}

.schedule-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.75rem;
}

.schedule-name {
	font-weight: 600;
	color: #333;
	font-size: 0.95rem;
}

.schedule-actions {
	display: flex;
	gap: 0.5rem;
}

.schedule-action-btn {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.25rem;
	border-radius: 4px;
	transition: background 0.2s ease;
	color: #666;
	font-size: 0.9rem;
	margin: 0;
}

.schedule-action-btn:hover {
	background: rgba(102, 126, 234, 0.1);
	color: #667eea;
}

.schedule-action-btn.delete:hover {
	background: rgba(220, 53, 69, 0.1);
	color: #dc3545;
}

.schedule-details {
	font-size: 0.85rem;
	color: #666;
	line-height: 1.4;
}

.schedule-type {
	display: inline-block;
	background: #667eea;
	color: white;
	padding: 0.2rem 0.5rem;
	border-radius: 12px;
	font-size: 0.75rem;
	font-weight: 500;
	margin-bottom: 0.5rem;
}

.schedule-type.daily {
	background: #28a745;
}

.schedule-type.weekly {
	background: #ffc107;
	color: #333;
}

.schedule-type.date_range {
	background: #fd7e14;
}

.button.secondary.small {
	padding: 0.5rem 0.75rem;
	font-size: 0.85rem;
	border-radius: 4px;
	background: #6c757d;
	color: white;
	border: 1px solid #6c757d;
	transition: all 0.2s ease;
}

.button.secondary.small:hover {
	background: #5a6268;
	border-color: #5a6268;
}

/* Schedule Modal Styles */
.schedule-modal-content {
	max-width: 450px;
}

.form-group {
	margin-bottom: 1rem;
}

.form-group label {
	display: block;
	font-weight: 500;
	color: #333;
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="time"],
.form-group input[type="date"],
.form-group select {
	width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 0.9rem;
	background: white;
	transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.time-range {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 0.5rem;
	align-items: center;
}

.time-range span {
	text-align: center;
	color: #666;
	font-size: 0.85rem;
}

.days-checkboxes {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.day-checkbox-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.day-checkbox-item input[type="checkbox"] {
	margin-bottom: 0.25rem;
}

.day-checkbox-item label {
	font-size: 0.75rem;
	color: #666;
	margin: 0;
	cursor: pointer;
}

.schedule-form-actions {
	display: flex;
	justify-content: flex-end;
	gap: 0.75rem;
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid #eee;
}

.button.cancel {
	background: #6c757d;
	color: white;
	border: 1px solid #6c757d;
}

.button.cancel:hover {
	background: #5a6268;
	border-color: #5a6268;
}

.button.primary {
	background: #667eea;
	color: white;
	border: 1px solid #667eea;
}

.button.primary:hover {
	background: #5a6fd8;
	border-color: #5a6fd8;
}

.empty-schedules {
	text-align: center;
	padding: 2rem 1rem;
	color: #666;
	font-style: italic;
}

.empty-schedules-icon {
	font-size: 2rem;
	margin-bottom: 0.5rem;
	opacity: 0.5;
}

/* Dark mode styles for DND schedules */
.dark-mode .dnd-settings {
	background: #374151;
	border-color: #4b5563;
}

.dark-mode .dnd-section > label {
	color: #e5e7eb;
}

.dark-mode .setting-description.small {
	color: #9ca3af;
}

.dark-mode .schedule-item {
	background: #2d3748;
	border-color: #4a5568;
}

.dark-mode .schedule-item:hover {
	border-color: #667eea;
	background: #374151;
}

.dark-mode .schedule-name {
	color: #e5e7eb;
}

.dark-mode .schedule-details {
	color: #9ca3af;
}

.dark-mode .schedule-action-btn {
	color: #9ca3af;
}

.dark-mode .schedule-action-btn:hover {
	background: rgba(102, 126, 234, 0.2);
	color: #8fa7ff;
}

.dark-mode .schedule-action-btn.delete:hover {
	background: rgba(220, 53, 69, 0.2);
	color: #f87171;
}

.dark-mode .form-group input,
.dark-mode .form-group select {
	background: #374151;
	border-color: #4b5563;
	color: #e5e7eb;
}

.dark-mode .form-group input:focus,
.dark-mode .form-group select:focus {
	border-color: #667eea;
	background: #374151;
}

.dark-mode .form-group label {
	color: #e5e7eb;
}

.dark-mode .day-checkbox-item label {
	color: #9ca3af;
}

.dark-mode .schedule-form-actions {
	border-color: #4b5563;
}

.dark-mode .empty-schedules {
	color: #9ca3af;
}

.dark-mode .time-range span {
	color: #9ca3af;
}

/* Action columns */
.action-column {
	display: flex;
	align-items: center;
	justify-content: center;
}

.action-column {
	font-size: 1.5rem;
	color: #ccc;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0.5rem;
	border-radius: 50%;
	user-select: none;
}

.action-column:hover {
	background: rgba(102, 126, 234, 0.1);
	color: #667eea;
	transform: scale(1.1);
}

/* State styling */
.article-row.done {
	opacity: 0.6;
	background: #f8f9fa;
}

.article-row.done .content-column a {
	text-decoration: line-through;
	color: #333;
}
.article-row.done [data-done] {
	color: #28a745;
}

.article-row.favorite [data-favorite] {
	color: #ffc107;
}

.article-row.done.favorite {
	opacity: 0.8;
}
/* Responsive adjustments */
@media screen and (max-width: 640px) {
	#header-section h1 {
		font-size: 2rem;
	}
	
	.article-row {
		margin: 0.5rem 0;
		padding: 0.75rem;
	}
	
	/* Mobile layout adjustments - stack vertically for better readability */
	.article-row .date-column {
		font-size: 0.8rem;
		text-align: left !important;
		margin-bottom: 0.5rem;
	}
	
	.article-row .image-column {
		margin-bottom: 0.5rem;
	}
	
	.article-row .content-column {
		margin-bottom: 0.5rem;
	}
	
	.article-row .content-column a {
		font-size: 0.9rem;
		line-height: 1.3;
	}
			.disclaimer-text {
		font-size: 0.7rem;
		margin-top: 0.3rem;
		padding: 0.25rem 0.4rem;
	}
	
	/* Ensure action columns are properly sized on mobile */
	.action-column {
		font-size: 1.25rem;
		padding: 0.25rem !important;
	}
	
	/* Add some breathing room between columns on mobile */
	.article-row .columns {
		padding-left: 0.3rem;
		padding-right: 0.3rem;
	}
	
	/* Make images smaller on mobile to prevent overlap */
	.image-column img {
		max-width: 40px;
		max-height: 40px;
	}
			.image-placeholder {
		width: 40px;
		height: 40px;
		font-size: 1rem;
	}
	
	#filter-section {
		padding: 1rem;
	}
	
	.button-group .button {
		font-size: 0.8rem;
		padding: 0.5rem 0.75rem;
	}
}

/* General improvements */
body {
	background: #f5f7fa;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.row {
	margin-top: 0;
}

#header-section {
	margin-bottom: 2rem;
}

#header-section h1 {
	color: #f7fafc;
}

/* Keep header content centered within full-width header */
#header-section .row {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}	/* Responsive adjustments for centered container */
@media screen and (max-width: 640px) {
	#container {
		margin-left: 0.5rem;
		margin-right: 0.5rem;
	}
}

/* Dark Mode Styles */
.dark-mode {
	background: #1a1a1a;
	color: #e0e0e0;
}	.dark-mode #header-section {
	background: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #4a5568 100%);
}

.dark-mode #header-section h1 {
	color: #f7fafc;
}

.dark-mode .image-placeholder {
	background: #4a5568;
	border-color: #718096;
	color: #cbd5e0;
}

.dark-mode #filter-section {
	background: #2d3748;
	color: #e0e0e0;
}

.dark-mode #filter-section label {
	color: #e0e0e0;
}

.dark-mode #search-input {
	background: #4a5568;
	border-color: #5a6578;
	color: #e0e0e0;
}

.dark-mode #search-input::placeholder {
	color: #a0a0a0;
}

.dark-mode #search-input:focus {
	border-color: #667eea;
}

.dark-mode .button-group .button {
	background: #4a5568;
	color: #e0e0e0;
	border-color: #5a6578;
}

.dark-mode .button-group .button.secondary.active {
	background: #667eea;
	color: white;
}

.dark-mode #container {
	background: #2d3748;
}

.dark-mode .article-row {
	background: #2d3748;
	border-color: #4a5568;
}

.dark-mode .article-row:hover {
	border-color: #667eea;
	background: #374151;
}

.dark-mode .content-column a {
	color: #e0e0e0;
}
.dark-mode .content-column a:visited {
	color: #a0a0a0;
}

.dark-mode .disclaimer-text {
	color: #ffc947;
	background: rgba(255, 201, 71, 0.15);
	border-left-color: #ffc947;
}

.dark-mode .english-variant a {
	background: rgba(102, 126, 234, 0.2) !important;
	color: #8fa7ff !important;
}

.dark-mode .english-variant a:hover {
	background: rgba(102, 126, 234, 0.3) !important;
}

.dark-mode .article-row.done {
	background: #374151;
}

.dark-mode .article-row.done .content-column a {
	text-decoration: line-through;
	color: #e5e7eb;
}

.dark-mode #settings-btn {
	background: #4a5568;
	border-color: #5a6578;
	color: #e0e0e0;
}

.dark-mode #settings-btn:hover {
	background: #667eea;
	color: white;
}

.dark-mode .modal-content {
	background: #2d3748;
	color: #e0e0e0;
}

.dark-mode .modal-header {
	border-color: #4a5568;
}

.dark-mode .setting-item {
	border-color: #4a5568;
}
.dark-mode .setting-item label {
	color: #e0e0e0;
}

.dark-mode .setting-item > label {
	color: #e0e0e0;
}

.dark-mode .radio-group label {
	color: #d0d0d0;
}

.dark-mode .radio-group label:hover {
	background: rgba(102, 126, 234, 0.15);
}	.dark-mode .setting-description {
	color: #a0a0a0;
}

.dark-mode .setting-select {
	background: #374151;
	border-color: #4b5563;
	color: #e5e7eb;
}

.dark-mode .setting-select:focus {
	border-color: #667eea;
	background: #374151;
}

/* PWA Installation Banner Styles */
#pwa-install-banner {
	font-family: inherit;
}

.install-banner-content {
	display: flex;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
	gap: 15px;
}

.install-banner-icon {
	font-size: 2rem;
	flex-shrink: 0;
}

.install-banner-text {
	flex: 1;
}

.install-banner-title {
	font-weight: bold;
	font-size: 1.1rem;
	margin-bottom: 4px;
}

.install-banner-subtitle {
	font-size: 0.9rem;
	opacity: 0.9;
}

.install-banner-actions {
	display: flex;
	gap: 10px;
	align-items: center;
}

.install-btn {
	background-color: white;
	color: #667eea;
	border: none;
	padding: 10px 20px;
	border-radius: 25px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.2s ease;
}

.install-btn:hover {
	background-color: #f0f0f0;
	transform: scale(1.05);
}

.dismiss-btn {
	background-color: transparent;
	color: white;
	border: 2px solid white;
	width: 35px;
	height: 35px;
	padding: 0;
	border-radius: 50%;
	font-size: 1.2rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.dismiss-btn:hover {
	background-color: rgba(255,255,255,0.2);
}

/* PWA Installation Banner Animations */
@keyframes slideInUp {
	from {
		transform: translateY(100%);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

@keyframes slideOutDown {
	from {
		transform: translateY(0);
		opacity: 1;
	}
	to {
		transform: translateY(100%);
		opacity: 0;
	}
}

/* Mobile responsive install banner */
@media (max-width: 768px) {
	.install-banner-content {
		flex-direction: column;
		text-align: center;
		gap: 10px;
	}
	
	.install-banner-actions {
		width: 100%;
		justify-content: center;
	}
	
	.install-banner-icon {
		font-size: 1.5rem;
	}
	
	.install-banner-title {
		font-size: 1rem;
	}
	
	.install-banner-subtitle {
		font-size: 0.8rem;
	}
}

/* Enhanced PWA notification system */
.pwa-notification {
	position: fixed;
	top: 20px;
	right: 20px;
	background: #667eea;
	color: white;
	padding: 15px;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.3);
	z-index: 1001;
	max-width: 350px;
	animation: slideInRight 0.3s ease;
	font-family: Arial, sans-serif;
}

.pwa-notification-success {
	background: #27ae60;
}

.pwa-notification-error {
	background: #e74c3c;
}

.pwa-notification-warning {
	background: #f39c12;
}

.pwa-notification-info {
	background: #3498db;
}

.notification-content {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.notification-icon {
	font-size: 1.2rem;
	flex-shrink: 0;
}

.notification-message {
	flex-grow: 1;
	line-height: 1.4;
	font-size: 0.9rem;
}

.notification-close {
	background: none;
	border: none;
	color: white;
	font-size: 1.2rem;
	cursor: pointer;
	padding: 0;
	margin-left: 10px;
	opacity: 0.8;
	transition: opacity 0.2s ease;
	flex-shrink: 0;
}

.notification-close:hover {
	opacity: 1;
}

/* Mobile responsive notifications */
@media (max-width: 768px) {
	.pwa-notification {
		top: 10px;
		right: 10px;
		left: 10px;
		max-width: none;
	}
}

/* PWA refresh indicator */
.pwa-refreshing {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(102, 126, 234, 0.95);
	color: white;
	padding: 20px;
	border-radius: 8px;
	z-index: 10000;
	text-align: center;
	font-weight: bold;
	box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.pwa-refreshing::before {
	content: "🔄";
	display: block;
	font-size: 2em;
	margin-bottom: 10px;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* Version update modal */
.version-update-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	backdrop-filter: blur(5px);
}

.version-update-content {
	background: white;
	border-radius: 12px;
	padding: 24px;
	max-width: 500px;
	max-height: 80vh;
	overflow-y: auto;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	animation: versionModalSlideIn 0.3s ease-out;
	margin: 20px;
}

@keyframes versionModalSlideIn {
	from {
		opacity: 0;
		transform: scale(0.9) translateY(-20px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.version-update-header {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid #667eea;
}

.version-update-header h3 {
	margin: 0;
	color: #667eea;
	font-size: 1.4rem;
	font-weight: 600;
}

.version-update-header .new-badge {
	background: linear-gradient(135deg, #667eea, #764ba2);
	color: white;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: bold;
	margin-left: 12px;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.7; }
}

.version-update-version {
	font-size: 1.1rem;
	font-weight: bold;
	color: #333;
	margin-bottom: 16px;
	padding: 10px;
	background: #f8f9fa;
	border-radius: 6px;
	border-left: 4px solid #667eea;
}

.version-update-notes {
	margin-bottom: 24px;
}

.version-update-notes h4 {
	color: #333;
	margin-bottom: 12px;
	font-size: 1rem;
}

.version-update-notes ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.version-update-notes li {
	padding: 8px 0;
	padding-left: 24px;
	position: relative;
	color: #555;
	line-height: 1.4;
}

.version-update-notes li::before {
	content: "✨";
	position: absolute;
	left: 0;
	top: 8px;
}

.version-update-actions {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
}

.version-update-btn {
	padding: 10px 20px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	transition: all 0.2s ease;
}

.version-update-btn.primary {
	background: linear-gradient(135deg, #667eea, #764ba2);
	color: white;
}

.version-update-btn.primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.version-update-btn.secondary {
	background: #f8f9fa;
	color: #666;
	border: 1px solid #ddd;
}

.version-update-btn.secondary:hover {
	background: #e9ecef;
}

/* Dark mode support for version update modal */
.dark-mode .version-update-modal {
	background: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(8px);
	animation: darkModalFadeIn 0.3s ease-out;
}

@keyframes darkModalFadeIn {
	from {
		background: rgba(0, 0, 0, 0.3);
	}
	to {
		background: rgba(0, 0, 0, 0.85);
	}
}

.dark-mode .version-update-content {
	background: #2c3e50;
	color: #ecf0f1;
	box-shadow: 
		0 10px 40px rgba(0, 0, 0, 0.6),
		0 0 0 1px rgba(255, 255, 255, 0.1);
}

.dark-mode .version-update-header {
	border-bottom-color: #667eea;
}

.dark-mode .version-update-header h3 {
	color: #667eea;
}

.dark-mode .version-update-header .new-badge {
	box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.dark-mode .version-update-version {
	background: #34495e;
	color: #ecf0f1;
	border-left-color: #667eea;
}

.dark-mode .version-update-notes h4 {
	color: #ecf0f1;
}

.dark-mode .version-update-notes li {
	color: #bdc3c7;
}

.dark-mode .version-update-notes li::before {
	/* Keep the sparkle emoji - it works well in dark mode */
	content: "✨";
}

.dark-mode .version-update-btn.primary {
	background: linear-gradient(135deg, #667eea, #764ba2);
	color: white;
	/* Primary button keeps same gradient for brand consistency */
}

.dark-mode .version-update-btn.primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.dark-mode .version-update-btn.secondary {
	background: #34495e;
	color: #ecf0f1;
	border: 1px solid #4a5f7a;
}

.dark-mode .version-update-btn.secondary:hover {
	background: #3c4f65;
	border-color: #5a6f8a;
}

/* Mobile responsive */
@media (max-width: 768px) {
	.version-update-content {
		margin: 10px;
		padding: 20px;
		max-height: 90vh;
	}
	
	.version-update-header h3 {
		font-size: 1.2rem;
	}
	
	.version-update-actions {
		flex-direction: column;
	}
	
	.version-update-btn {
		width: 100%;
		padding: 12px;
	}
}

/* Version info in settings */
.version-info {
	border-top: 1px solid #e9ecef;
	margin-top: 20px;
	padding-top: 20px;
}

.version-header {
	margin-bottom: 12px;
}

.version-header label {
	color: #667eea;
	font-weight: 600;
	font-size: 1rem;
}

.version-details {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.version-label {
	font-weight: 600;
	color: #333;
}

.version-number {
	font-family: 'Courier New', monospace;
	background: #667eea;
	color: white;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 0.9rem;
	font-weight: bold;
}

.version-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.version-actions .button {
	flex: 1;
	min-width: 0;
	font-size: 0.85rem;
	padding: 8px 12px;
}

/* Dark mode support for version info */
.dark-mode .version-info {
	border-top-color: #4a5f7a;
}

.dark-mode .version-current {
	background: #34495e;
}

.dark-mode .version-label {
	color: #ecf0f1;
}

.dark-mode .version-loading {
	color: #95a5a6;
}

.dark-mode .version-error {
	color: #e74c3c;
}

/* Mobile responsive version section */
@media (max-width: 768px) {
	.version-actions {
		flex-direction: column;
	}
	
	.version-actions .button {
		width: 100%;
	}
	
	.version-current {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
}

/* Version loading state */
.version-loading {
	color: #6c757d;
	font-style: italic;
}

.version-error {
	color: #dc3545;
	font-weight: normal;
}
