/* Option A: Deep Teal & Gold (Vedic) */
.bg-gradient-primary {
	background: linear-gradient(135deg, #0d9488 0%, #115e59 100%);
}

.text-purple {
	color: #0d9488;
}

.form-control:focus {
	border-color: #0d9488;
	box-shadow: 0 0 0 0.2rem rgba(13, 148, 136, 0.25);
}

.input-group-text {
	border: 1px solid #e2e8f0;
	transition: all 0.15s ease-in-out;
}

.input-group:focus-within .input-group-text {
	border-color: #0d9488;
	background-color: rgba(13, 148, 136, 0.08);
}

.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;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	border: 1px solid rgba(217, 119, 6, 0.12);
}

.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: #fffbeb;
	border: 1px solid rgba(13, 148, 136, 0.15);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mahadasha-title {
	background: linear-gradient(135deg, #0d9488 0%, #115e59 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;
}

/* Floating Navigation Buttons */
.floating-nav-buttons {
	position: fixed;
	bottom: 30px;
	right: 30px;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.floating-nav-btn {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transition: all 0.3s ease;
	text-decoration: none;
	font-size: 0.75rem;
	font-weight: 600;
	text-align: center;
	line-height: 1.2;
	padding: 5px;
}

.floating-nav-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
	text-decoration: none;
}

.floating-nav-btn.astro-chart {
	background-color: #0d9488;
	color: #fff;
}

.floating-nav-btn.timeline {
	background-color: #115e59;
	color: #fff;
}

.floating-nav-btn.mahadasha {
	background-color: #198754;
	color: #fff;
}

.floating-nav-btn.ai-report {
	background-color: #d97706;
	color: #fff;
}

@media (max-width: 768px) {
	.floating-nav-buttons {
		bottom: 20px;
		right: 20px;
	}

	.floating-nav-btn {
		width: 45px;
		height: 45px;
		font-size: 0.65rem;
	}
}

body {
	font-family: 'Google Sans', sans-serif;
	background-color: #f8fafc;
}

/* Option A: Teal & gold overrides for Bootstrap components */
.btn-primary {
	background-color: #0d9488;
	border-color: #0d9488;
}

.btn-primary:hover {
	background-color: #0f766e;
	border-color: #0f766e;
}

.btn-outline-primary {
	color: #0d9488;
	border-color: #0d9488;
}

.btn-outline-primary:hover {
	background-color: rgba(13, 148, 136, 0.1);
	color: #0f766e;
	border-color: #0f766e;
}

.table-primary,
.table-primary>th,
.table-primary>td {
	background-color: #f0fdfa;
	color: #134e4a;
	border-color: #e2e8f0;
}

.btn-primary-light {
	background-color: rgba(217, 119, 6, 0.12);
	color: #b45309;
	border-color: rgba(217, 119, 6, 0.3);
}

.btn-primary-light:hover {
	background-color: rgba(217, 119, 6, 0.2);
	color: #92400e;
	border-color: #d97706;
}

.min-height-200 {
	min-height: 200px;
}

/* ── Report wrapper ── */
.astro-report-wrap {
	position: relative;
	border: 2px solid #8b0000;
	border-radius: 12px;
	padding: 2rem 1.5rem 1rem;
	background: #fff;
	overflow: hidden;
}

.astro-report-wrap::before {
	content: '';
	position: absolute;
	inset: 0;
	/* background: url('/public/img/report-bg.png'); */
	/* set via JS or inline style */
	opacity: 0.1;
	pointer-events: none;
	z-index: 0;
}

.astro-report-wrap>* {
	position: relative;
	z-index: 1;
}

/* header strip */
.astro-report-header {
	text-align: center;
	margin-bottom: 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid #8b0000;
}

.astro-report-header h4 {
	margin: 0;
	font-weight: 700;
	color: #8b0000;
	letter-spacing: 0.5px;
}

.astro-report-header .report-subtitle {
	font-size: 0.8rem;
	color: #888;
	margin-top: 0.2rem;
}

/* section cards inside report */
.astro-report-html h3 {
	margin-top: 0.8em;
	margin-bottom: 0.4em;
	font-weight: 700;
	font-size: 1.05rem;
	color: #8b0000;
}

.astro-report-html h4 {
	margin-top: 0.6em;
	margin-bottom: 0.3em;
	font-weight: 600;
	font-size: 0.95rem;
	color: #333;
}

.astro-report-html p {
	margin-bottom: 0.75em;
	text-align: justify;
}

/* List: disc bullet (main list) */
.astro-report-html ul {
	list-style: disc;
	margin-bottom: 0.75em;
	padding-left: 1.5em;
}

.astro-report-html ul li {
	margin-bottom: 0.25em;
}

/* Sub-list: circle bullet */
.astro-report-html ul ul {
	list-style: circle;
	padding-left: 1.25em;
	margin-top: 0.2em;
}

.astro-report-html ol {
	margin-bottom: 0.75em;
	padding-left: 1.5em;
}

.astro-report-html ol li {
	margin-bottom: 0.25em;
}

.astro-report-html strong {
	font-weight: 600;
}

.astro-report-html hr {
	border: none;
	border-top: 1px solid #eee;
	margin: 1em 0;
}

.astro-section-card {
	border-radius: 0 8px 8px 0;
	margin-bottom: 1.2rem;
	overflow: hidden;
	border-left: 4px solid #d4a017;
	background: linear-gradient(90deg, #fdf6e3 0%, #fff 40%);
}

.astro-section-card .section-head {
	color: #8b0000;
	padding: 0.5rem 1rem;
	font-weight: 700;
	font-size: 0.9rem;
	border-bottom: 1px solid rgba(212, 160, 23, 0.2);
}

.astro-section-card .section-body {
	padding: 0.75rem 1rem;
	font-size: 0.82rem;
	line-height: 1.65;
	background: #fff;
}

/* footer */
.astro-report-footer {
	text-align: center;
	margin-top: 1.5rem;
	padding-top: 0.75rem;
	border-top: 2px solid #8b0000;
	font-size: 0.75rem;
	color: #888;
}

.astro-report-footer .footer-name {
	font-weight: 700;
	color: #8b0000;
	font-size: 0.85rem;
}

/* print tweaks */
@media print {
	.astro-report-wrap {
		border-color: #8b0000 !important;
		break-inside: avoid;
	}

	.astro-section-card {
		break-inside: avoid;
	}

	.astro-report-wrap::before {
		opacity: 0.04;
	}
}