/**
 * Add Goal Module Frontend Styles
 */

html {
  font-size: 14px !important;
}

.hj-add-goal-form {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
	background-color: #fff9f2;
}

.hj-form-container {
	/* background: #ffffff; */
	border-radius: 12px;
	padding: 4rem;
	position: relative;
}

.hj-form-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 4rem;
	position: relative;
}

.hj-header-content {
	flex: 1;
}

.hj-form-title {
	font-size: 4rem;
	font-weight: 400;
	color: #2d3748;
	margin: 0 0 1rem 0;
	line-height: 1.1;
}

.hj-form-subtitle {
	font-size: 1.5rem;
	font-weight: 300;
	color: #4a5568;
	margin: 0;
	line-height: 1.4;
	max-width: 500px;
}

.hj-header-decoration {
	position: relative;
}

.hj-green-circle {
	width: 150px;
	height: 150px;
	background: linear-gradient(135deg, #9ae6b4 0%, #68d391 100%);
	border-radius: 50%;
	opacity: 0.8;
}

.hj-goal-form {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 5rem;
	align-items: start;
}

.hj-form-section {
	margin-bottom: 4rem;
}

.hj-section-header {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
	margin-bottom: 2.5rem;
}

.hj-step-number {
	width: 32px;
	height: 32px;
	background-color: #e2b8d4;
	color: #2d3748;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1rem;
	flex-shrink: 0;
}

.hj-section-content {
	flex: 1;
}

.hj-section-title {
	font-size: 2.5rem;
	font-weight: 400;
	color: #2d3748;
	margin: 0 0 1rem 0;
	line-height: 1.2;
}

.hj-section-subtitle {
	font-size: 1.25rem;
	color: #4a5568;
	margin: 0 0 1.5rem 0;
	line-height: 1.5;
}

/* Priority Options Styling */
.hj-priority-options {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

.hj-priority-option {
	display: inline-flex;
	align-items: center;
	padding: 1rem 2rem;
	/* border: 2px solid #e2e8f0; */
	border-radius: 25px;
	background-color: #ffffff;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
	font-size: 1.125rem;
	font-weight: 500;
	color: #4a5568;
	position: relative;
	overflow: hidden;
}

.hj-priority-option:hover {
	border-color: #cbd5e0;
	background-color: #f7fafc;
}

.hj-priority-option.hj-selected {
	background-color: #e2b8d4;
	border-color: #d69e2e;
	color: #2d3748;
	font-weight: 600;
}

.hj-priority-checkbox {
	display: none;
}

.hj-priority-label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

/* Goal Type Styling */
.hj-goal-type-container {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.hj-goal-type-wrapper {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	font-size: 1.125rem;
	padding: 1.5rem;
	background-color: #f7fafc;
	border-radius: 8px;
	/* border: 1px solid #e2e8f0; */
}

.hj-goal-select {
	padding: 0.5rem 1rem;
	/* border: 2px solid #e2e8f0; */
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 600;
	background-color: #ffffff;
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	min-width: 120px;
}

.hj-goal-focus {
	font-weight: 600;
	color: #2d3748;
}

.hj-no-selection {
	color: #718096;
	font-style: italic;
	text-align: center;
	padding: 3rem;
	background-color: #f7fafc;
	border-radius: 8px;
	/* border: 1px dashed #cbd5e0; */
	margin: 1.5rem 0;
}

/* Goal Textarea */
.hj-goal-textarea {
	width: 100%;
	padding: 1.5rem;
	/* border: 2px solid #e2e8f0; */
	border-radius: 8px;
	font-size: 1.125rem;
	line-height: 1.6;
	resize: vertical;
	min-height: 180px;
	font-family: inherit;
	background-color: #ffffff;
	transition: all 0.2s ease-in-out;
	margin-top: 1rem;
}

.hj-goal-textarea:focus {
	outline: none;
	/* border-color: #3182ce; */
	/* box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1); */
}

.hj-goal-textarea::placeholder {
	color: #a0aec0;
	font-style: italic;
}

/* Info Sidebar */
.hj-info-sidebar {
	display: flex;
	flex-direction: column;
	gap: 3rem;
}

.hj-info-section {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
}

.hj-info-icon {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1rem;
	flex-shrink: 0;
	color: #ffffff;
}

.hj-info-icon.hj-info-purple {
	background-color: #9f7aea;
}

.hj-info-icon.hj-info-dark {
	background-color: #4a5568;
}

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

.hj-info-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.hj-info-list li {
	font-size: 1rem;
	color: #4a5568;
	line-height: 1.5;
	position: relative;
	padding-left: 1rem;
}

.hj-info-list li:before {
	content: "•";
	color: #9f7aea;
	font-weight: 700;
	position: absolute;
	left: 0;
}

.hj-examples {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.hj-examples p {
	font-size: 1rem;
	color: #4a5568;
	margin: 0;
	padding: 0.75rem 0;
	border-bottom: 1px solid #e2e8f0;
	font-style: italic;
}

.hj-examples p:last-child {
	border-bottom: none;
}

/* Form Validation States */
.hj-form-section.hj-error .hj-step-number {
	background-color: #fed7d7;
	color: #c53030;
}

.hj-form-section.hj-error .hj-priority-options {
	border: 2px solid #feb2b2;
	border-radius: 8px;
	padding: 1rem;
	background-color: #fef5e7;
}

.hj-form-section.hj-error .hj-goal-textarea {
	border-color: #feb2b2;
	background-color: #fef5e7;
}

/* Interactive States */
.hj-priority-option:active {
	transform: scale(0.98);
}

.hj-goal-select:focus {
	outline: none;
	border-color: #3182ce;
	/* box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1); */
}

/* Animation for smooth interactions */
.hj-priority-option {
	transform: scale(1);
}

.hj-priority-option.hj-selected {
	animation: selectPulse 0.3s ease-out;
}

@keyframes selectPulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.05); }
	100% { transform: scale(1); }
}

/* Form Actions */
.hj-form-actions {
	grid-column: 1 / -1;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 1.5rem;
	margin-top: 3rem;
	padding-top: 3rem;
}

.hj-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
	min-height: 44px;
	box-sizing: border-box;
}

.hj-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.hj-btn-cancel {
	background-color: #ffffff;
	color: #4a5568;
	/* border: 2px solid #e2e8f0; */
}

.hj-btn-cancel:hover:not(:disabled) {
	background-color: #f7fafc;
	/* border-color: #cbd5e0; */
}

.hj-btn-save {
	background-color: #2d3748;
	color: #ffffff;
	/* border: 2px solid #2d3748; */
	min-width: 100px;
}

.hj-btn-save:hover:not(:disabled) {
	background-color: #1a202c;
	/* border-color: #1a202c; */
	transform: translateY(-1px);
}

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

.hj-btn-spinner {
	display: inline-flex;
	align-items: center;
}

.hj-spinner {
	width: 1rem;
	height: 1rem;
	animation: hj-spin 1s linear infinite;
}

@keyframes hj-spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.hj-form-message {
	margin-top: 1rem;
	padding: 1rem;
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 500;
}

.hj-form-message.hj-success {
	background-color: #f0fff4;
	/* border: 1px solid #9ae6b4; */
	color: #276749;
}

.hj-form-message.hj-error {
	background-color: #fed7d7;
	/* border: 1px solid #feb2b2; */
	color: #c53030;
}

/* Responsive Design */
@media (max-width: 1024px) {
	.hj-goal-form {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	
	.hj-info-sidebar {
		order: -1;
	}
}

@media (max-width: 768px) {
	.hj-add-goal-form {
		padding: 1rem;
	}
	
	.hj-form-container {
		padding: 3rem 1.5rem;
	}
	
	.hj-form-header {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 2.5rem;
	}
	
	.hj-header-decoration {
		order: -1;
	}
	
	.hj-green-circle {
		width: 100px;
		height: 100px;
	}
	
	.hj-form-title {
		font-size: 3rem;
	}
	
	.hj-section-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}
	
	.hj-priority-options {
		flex-direction: column;
	}
	
	.hj-priority-option {
		width: 100%;
		justify-content: center;
	}
	
	.hj-goal-type-wrapper {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
		padding: 1.25rem;
	}
	
	.hj-goal-select {
		min-width: 100px;
		font-size: 1rem;
	}
	
	.hj-info-section {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.5rem;
	}
	
	.hj-form-actions {
		flex-direction: column;
		align-items: stretch;
	}
	
	.hj-btn {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.hj-form-container {
		padding: 2rem 1rem;
	}
	
	.hj-form-title {
		font-size: 2.5rem;
	}
	
	.hj-section-title {
		font-size: 1.75rem;
	}
}
/* 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%);
	}
}
