/**
 * Progress Module Frontend Styles
 */
html {
  font-size: 16px !important;
}


.hj-progress-module {
	max-width: 100%;
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
	background-color: #fff9f2;
}

.hj-form-container {
	padding: 0;
}

/* Loading and Error States */
.hj-progress-loading,
.hj-progress-error {
	padding: 3rem;
	text-align: center;
	background-color: #fff9f2;
}

.hj-loading-spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #e2e8f0;
	border-top: 4px solid #3182ce;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto 2rem;
}

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

.hj-error-message {
	color: #e53e3e;
	font-size: 1.125rem;
	margin: 0;
}

/* Top Section Styles */
.hj-top-section {
	display: flex;
	gap: 3rem;
	padding: 3rem;
	align-items: stretch;
}

.hj-left-content {
	flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
     flex-grow: 1;
     padding: 3rem;
}
.hj-goal-header-content {
    margin-bottom: 2rem;
}
.hj-main-title {
	font-size: 4rem;
	font-weight: 500;
	color: #2d3748;
	margin: 0 0 0.5rem 0;
	line-height: 1.1;
}

.hj-main-subtitle {
	font-size: 1.5rem;
	font-weight: 300;
	color: #4a5568;
	margin: 0;
	line-height: 1.4;
}

.hj-goal-display-card {
	flex: 1;
	background-color: #c8e6f5;
	border-radius: 12px;
	padding: 3rem;
	position: relative;
}

.hj-goal-card-title {
	font-size: 1.75rem;
	font-weight: 600;
	color: #2d3748;
	margin: 0 0 2.5rem 0;
	line-height: 1.3;
}

.hj-goal-content {
	margin-bottom: 2rem;
}

.hj-goal-text {
	font-size: 1.125rem;
	color: #2d3748;
	margin: 0;
	font-style: italic;
}

.hj-goal-underline {
	width: 100%;
	height: 2px;
	background-color: #2d3748;
	margin: 3.5rem 0 3rem 0;
}

.hj-goal-question {
	margin-bottom: 4rem;
}

.hj-question-text {
	font-size: 1.5rem;
	font-weight: 600;
	color: #2d3748;
	margin: 0 0 0.5rem 0;
	line-height: 1.3;
}

.hj-question-subtitle {
	font-size: 1rem;
	color: #4a5568;
	margin: 0;
	line-height: 1.4;
}

.hj-goal-actions {
	display: flex;
	gap: 1rem;
}

.hj-btn-edit-goal, .hj-btn-add-goal {
	background-color: #2d3748;
	color: white;
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.2s;
    width: fit-content;
}

.hj-btn-edit-goal:hover {
	background-color: #1a202c;
	color: white;
	text-decoration: none;
}

.hj-btn-complete-goal {
	background-color: transparent;
	color: #2d3748;
	border: 2px solid #2d3748;
	padding: 0.75rem 1.5rem;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.2s;
}

.hj-btn-complete-goal:hover {
	background-color: #2d3748;
	color: white;
	text-decoration: none;
}

/* Bottom Section Styles */
.hj-bottom-section {
	display: flex;
	gap: 3rem;
	padding: 3rem;
	background-color: #fff9f2;
	align-items: flex-start;
}

.hj-left-timeline {
	flex: 1;
}
.hj-timeline{
    width: 100%;
}

.hj-timeline-title {
	font-size: 2rem;
	font-weight: 600;
	color: #2d3748;
	margin: 0 0 0.5rem 0;
	line-height: 1.3;
}

.hj-timeline-subtitle {
	font-size: 1.125rem;
	color: #4a5568;
	margin: 0 0 2rem 0;
	line-height: 1.4;
}

.hj-right-actions {
	flex: 0 0 400px;
}

.hj-action-section {
	background-color: #e6f7ff;
	border-radius: 12px;
	padding: 2rem;
}

.hj-action-label {
	font-size: 1rem;
	color: #2d3748;
	margin: 0 0 1.5rem 0;
	line-height: 1.4;
}

.hj-btn-primary {
	background-color: #3182ce;
	color: white;
	border: none;
	padding: 0.875rem 1.5rem;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	transition: background-color 0.2s;
}

.hj-btn-primary:hover {
	background-color: #2c5aa0;
	color: white;
	text-decoration: none;
}

.hj-btn-arrow {
	font-size: 1.25rem;
	font-weight: bold;
}

/* Filter Section */
.hj-progress-filters {
	margin-bottom: 2rem;
    display: flex;
    gap:20px;
    align-items: center;
}

.hj-filter-title {
	font-size: 1rem;
	font-weight: 600;
	color: #2d3748;
	margin: 0 0 1rem 0;
}

.hj-filter-buttons {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.hj-filter-btn {
	background-color: #f7fafc;
	color: #2d3748;
	border: 1px solid #e2e8f0;
	padding: 0.5rem 1rem;
	border-radius: 25px;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

/* Ensure no checkmark on inactive buttons */
.hj-filter-btn::before {
	content: '';
	display: none;
}

.hj-filter-btn:hover {
	border-color: #3182ce;
	background-color: #edf2f7;
}

.hj-filter-btn.active {
	background-color: #87ceeb;
	border-color: #87ceeb;
	color: #2d3748;
	font-weight: 600;
}

/* Show checkmark only on active buttons */
.hj-filter-btn.active::before {
	content: '✓';
	color: #2d3748;
	font-weight: bold;
	font-size: 0.875rem;
	margin-right: 0.25rem;
	display: inline;
}

/* Timeline Styles */
.hj-checkins-timeline {
	position: relative;
}

.hj-timeline-item {
	margin-bottom: 1rem;
}

.hj-checkin-date {
	font-size: 1.25rem;
	font-weight: 600;
	color: #2d3748;
	margin: 1rem 0 2rem 0;
}

.hj-checkin-content {
	background-color: white;
	border: 1px solid #2d3748;
	border-radius: 0;
	padding: 2rem;
}

.hj-checkin-ratings {
	display: flex;
	gap: 3rem;
	margin-bottom: 0;
}

.hj-checkin-rating {
	flex: 1;
}

.hj-rating-label {
	font-size: 1rem;
	font-weight: 500;
	color: #2d3748;
	margin: 2rem 0 1rem 0;
	text-transform: capitalize;
}

.hj-rating-bar {
	height: 20px;
	width: 100%;
	position: relative;
	display: flex;
}

.hj-rating-fill {
	background-color: #87ceeb;
	height: 100%;
	transition: width 0.3s ease;
}

.hj-rating-fill-dark {
	background-color: #2d3748;
	height: 100%;
	transition: width 0.3s ease;
}

.hj-checkin-notes {
	font-size: 0.875rem;
	color: #4a5568;
	line-height: 1.5;
	margin: 2rem 0 0 0;
	padding-top: 1rem;
	border-top: 1px solid #e2e8f0;
}

/* Empty state */
.hj-empty-timeline {
	text-align: center;
	padding: 3rem 0;
	color: #4a5568;
}

.hj-empty-timeline h3 {
	font-size: 1.5rem;
	font-weight: 600;
	margin: 0 0 0.5rem 0;
}

.hj-empty-timeline p {
	font-size: 1rem;
	margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
	.hj-top-section,
	.hj-bottom-section {
		flex-direction: column;
		gap: 2rem;
		padding: 2rem;
	}
	
	.hj-main-title {
		font-size: 2.5rem;
	}
	
	.hj-main-subtitle {
		font-size: 1.25rem;
	}
	
	.hj-timeline-title {
		font-size: 1.5rem;
	}
	
	.hj-right-actions {
		flex: none;
	}
	
	.hj-goal-actions {
		flex-direction: column;
	}
}
/* Success State */
.hj-progress-success {
	text-align: center;
	padding: 20px;
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
	border-radius: 8px;
	margin: 20px 0;
	animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Button Loading States */
.hj-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Toast Animations */
@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(100%);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes slideOutRight {
	from {
		opacity: 1;
		transform: translateX(0);
	}
	to {
		opacity: 0;
		transform: translateX(100%);
	}
}
