/* Enhanced Form Styling */
.bg-gradient-primary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.text-purple {
	color: #6f42c1;
}

.form-control:focus {
	border-color: #667eea;
	box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.input-group-text {
	border: 1px solid #dee2e6;
	transition: all 0.15s ease-in-out;
}

.input-group:focus-within .input-group-text {
	border-color: #667eea;
	background-color: rgba(102, 126, 234, 0.1);
}

.btn {
	transition: all 0.15s ease-in-out;
	font-weight: 500;
}

/* .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    } */

.card {
	transition: all 0.3s ease;
}

.form-label {
	margin-bottom: 0.25rem;
}

/* Mobile Responsive Improvements */
@media (max-width: 576px) {
	.card-body {
		padding: 1.5rem !important;
	}

	.btn-sm {
		padding: 0.5rem 1rem;
		font-size: 0.875rem;
	}



}


/* Loading State */
.btn-save-chart:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

/* Validation States */
.is-invalid {
	border-color: #dc3545;
}

.is-valid {
	border-color: #198754;
}

.invalid-feedback {
	display: block;
	font-size: 0.875rem;
	color: #dc3545;
	margin-top: 0.25rem;
}

/* Manual */
textarea {
	width: 100%;
	overflow: hidden;
	resize: none;
}

.form-control,
.form-control-sm,
.form-select,
.form-select-sm {
	padding: 2px 4px !important;
	font-weight: 600;
}

.font-heavy {
	font-weight: 600 !important;
	padding: 2px 4px !important;
	font-size: 14px !important;
}

#astroTableContainer {
	table tr td {
		font-weight: 600;
		font-size: 13px;
	}

}

.script-row textarea.form-control {
	border: none !important;
}

/* remove border form table input */
td input {
	border: none !important;
}

td .select2-container--bootstrap-5 .select2-selection {
	border: none !important;
}

@media print {
	.pagebreak {
		page-break-before: always;
	}

	/* page-break-after works, as well */
}

/* Concise Timeline Grid Layout */
.timeline-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
	margin-bottom: 20px;
}

.mahadasha-section {
	background: white;
	border: 2px solid #e3e6f0;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mahadasha-title {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	text-align: center;
	padding: 8px 12px;
	font-weight: 600;
	font-size: 1.2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.period-duration {
	font-size: 0.75rem;
	opacity: 0.9;
	margin-top: 2px;
}

.antardasha-table {
	width: 100%;
	font-size: 0.8rem;
}

.antardasha-table td {
	padding: 4px 8px;
	border-bottom: 1px solid #f0f0f0;
	vertical-align: middle;
}

.antardasha-table tr.current-period {
	background-color: #fff3cd !important;
	font-weight: 600;
}

.antardasha-table tr.past-period {
	opacity: 0.8;
}

.antardasha-table tr.future-period {
	color: #272727;
}

.planet-name {
	font-weight: 500;
	min-width: 60px;
}

.date-range {
	font-size: 0.8rem;
	color: #505050;
	white-space: nowrap;
}

.duration-compact {
	font-size: 0.8rem;
	color: #495057;
	text-align: center;
}

.status-indicator {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
	margin-right: 5px;
}

.status-current {
	background-color: #28a745;
}

.status-future {
	background-color: #6c757d;
}

.status-past {
	background-color: #dc3545;
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.timeline-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.antardasha-table {
		font-size: 0.75rem;
	}

	.antardasha-table td {
		padding: 3px 6px;
	}
}

@media (max-width: 992px) {
	.timeline-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.location-result-item {
	cursor: pointer;
	transition: background-color 0.15s ease-in-out;
}

.location-result-item:hover {
	background-color: #f8f9fa;
}

.location-result-item:active {
	background-color: #e9ecef;
}

/* Position the location input group relatively for absolute positioning */
.input-group {
	position: relative;
}