:root {
	--primary: #af3d4b;
	--primary-dark: #bc0d24;
	--secondary: #7209b7;
	--accent: #f72585;
	--text: #2b2d42;
	--text-light: #8d99ae;
	--bg: #f8f9fa;
	--card-bg: rgba(255, 255, 255, 0.9);
	--sidebar-bg: #ffffff;
	--shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
	--border-radius: 12px;
	--transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	--select-bg: rgba(255, 255, 255, 0.1);
	--btn-focus: 0 0 0 2px black;
}

[data-theme="dark"] {
	--primary: #af3d4b;
	--primary-dark: #bc0d24;
	--text: #f8f9fa;
	--text-light: #adb5bd;
	--bg: #121212;
	--card-bg: rgba(30, 30, 30, 0.9);
	--sidebar-bg: #1e1e1e;
	--shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	--select-bg: #3c3c3c;
	--btn-focus: 0 0 0 2px white;
}
.hidden {
  display: none;
}
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	vertical-align: middle;
}

body {
	background: var(--bg);
	color: var(--text);
	transition: var(--transition);
	min-height: 100vh;
	display: flex;
	flex-direction: column; /* Make the layout vertical */	
}

/* Header */
header {
	background: #fff;
	padding: 1rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 4px solid var(--primary);
}

.logo {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--primary);
	background: white;
	padding: 0px 20px;
	border-radius: 8px;
	display: inline-block; /* Ensure the logo is shown */
}

.header-line {
	background-color: var(--primary);
	color: white;
	text-align: center;
	padding: 10px;
	font-size: 1.3rem;
	font-family: 'Times New Roman', Times, serif;
	font-weight: bold;
}

.theme-toggle {
	background: none;
	border: none;
	color: var(--text-light);
	cursor: pointer;
	font-size: 1.2rem;
}

/* Sidebar and Main Content Container */
.content-container {
	display: flex;
	flex: 1;
}

/* Sidebar (Glass Morphism) */
.sidebar {
	width: 280px;
	background: var(--sidebar-bg);
	backdrop-filter: blur(10px);
	padding: 1.5rem;
	border-right: 1px solid rgba(255, 255, 255, 0.1);
	transition: var(--transition);
}

.sidebar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
}

.search-group h3 {
	margin-bottom: 0.5rem;
	border-right: none;
	border-bottom: 2px solid rgb(238, 109, 23);
	border-left: none;
	border-top: none;
}

.search-options {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.search-option {
	padding: 0.8rem 1rem;
	border-radius: var(--border-radius);
	display: flex;
	align-items: center;
	gap: 0.8rem;
	cursor: pointer;
	transition: var(--transition);
	font-weight: bold;
}

.search-option:hover {
	background: rgba(var(--primary), 0.1);
	color: var(--primary);
}

.search-option.active {
	background: var(--primary);
	color: white;
	box-shadow: 0 4px 12px rgba(var(--primary), 0.2);
}

/* Main Content */
.main-content {
	flex: 1;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.search-card {
	background: var(--card-bg);
	border-radius: var(--border-radius);
	padding: 2rem;
	box-shadow: var(--shadow);
	transition: var(--transition);
	animation: fadeIn 0.5s ease-out;
}
.radio {
	margin-bottom: 15px;
}
@keyframes fadeIn {
	from { 
		opacity:0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}

}
.search-header h2 {
	font-size: 1.5rem;
	margin-bottom: 2.5rem;
	text-align: center;
}

.search-header p {
	color: var(--text-light);
	margin-bottom: 1.5rem;
}

.input-group {
	margin-bottom: 1.5rem;
}

.input-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
}

.input-group input {
	width: 100%;
	padding: 0.8rem 1rem;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: var(--border-radius);
	background: rgba(255, 255, 255, 0.1);
	color: var(--text);
	transition: var(--transition);
}

.input-group select {
	width: 100%;
	padding: 0.8rem 1rem;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: var(--border-radius);
	background: var(--select-bg);
	color: var(--text);
	transition: var(--transition);
}

.input-group label input[type="radio"] {
	margin-right: 5px;
}

.input-group input:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(var(--primary), 0.1);
}

.input-group select:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(var(--primary), 0.1);
}

.input-flex {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.input-flex .input-group {
	flex: 1 1 200px;
	min-width: 200px;
}

.input-flex .captcha-container {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.captcha-box {
	background: #e0e0e0;
	padding: 0.6rem 1rem;
	font-weight: bold;
	border-radius: var(--border-radius);
}

.btn-group {
	display: flex;
	gap: 1rem;
	justify-content: center;
}

.btn {
	padding: 0.8rem 1.5rem;
	border: none;
	border-radius: var(--border-radius);
	font-weight: 600;
	cursor: pointer;
	transition: var(--transition);
}

.btn:focus {
  outline: none; /* remove default */
  box-shadow: var(--btn-focus);
}

.btn-primary {
	background: var(--primary);
	color: white;
}

.btn-primary:hover {
	background: var(--primary-dark);
	transform: translateY(-2px);
}

.btn-secondary {
	background: rgba(var(--primary), 0.1);
	color: var(--primary);
}

.btn-secondary:hover {
	background: rgba(var(--primary), 0.2);
}

.btn-print {
	padding: 0.8rem 1.5rem;
	border: none;
	border-radius: var(--border-radius);
	font-weight: 600;
	cursor: pointer;
	transition: var(--transition);
	background: rgba(var(--primary), 0.1);
	color: var(--primary);
}

.btn-print:focus {
	outline: none;
	box-shadow: var(--btn-focus);
}

.btn-print:hover {
	transform: translateY(-2px);
}

.captcha {
	border-radius: var(--border-radius);
}

.result-card {
	background: var(--card-bg);
	border-radius: var(--border-radius);
	padding: 1.5rem;
	box-shadow: var(--shadow);
	border-left: 4px solid var(--primary);
}

.result-card h3 {
	margin-bottom: 0.5rem;
}

.case-number {
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--primary);
}

.scrollable-result {
	max-height: 500px;
	overflow-y: auto;
	padding-right: 0.5rem;
	scroll-behavior: smooth;
}

.section-title {
	margin-top: 1rem;
	color: var(--primary);
	font-size: 1.1rem;
	font-weight: bold;
	text-align: center;
	font-family: 'Times New Roman', Times, serif;
}

.info-table {
	font-family: 'Times New Roman', Times, serif;
	width: 100%;
	border-collapse: collapse;
	margin-top: 0.5rem;
	font-size: 1rem;
	border: 1px solid black
}

.info-table th, .info-table td {
	border: 1px solid black;
	padding: 8px;
	vertical-align: top;
	font-size: 1rem;
	font-family: 'Times New Roman', Times, serif;
}

.highlight-red {
	color: red;
	font-weight: bold;
}

.prayer-text {
	padding: 0.75rem;
	border: 1px solid black;
	border-radius: 6px;
	font-size: 1rem;
	font-family: 'Times New Roman', Times, serif;
}

.input-group .radiobtn {
	display: flex;
	gap: 25px;
	flex-wrap: wrap;
	justify-content: center;
}

.input-group .radiobtn label {
	display: flex !important;
	align-items: center !important;
	gap: 5px !important;
	white-space: nowrap !important;
}

/* Blurred Background Overlay */
.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	backdrop-filter: blur(5px);
	background-color: rgba(0, 0, 0, 0.3);
	z-index: 999;
	display: none;
}

/* Modal container */
.modal {
	position: fixed;
	top: 10%;
	left: 50%;
	transform: translateX(-50%);
	width: 90%;
	max-height: 80vh;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
	display: none;
	flex-direction: column;
	overflow: hidden;
	z-index: 1000;
}

/* Modal header */
.modal-header {
	padding: 1em;
	background: var(--primary);
	color: white;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* Modal body (scrollable) */
.modal-body {
	padding: 1em;
	overflow-y: auto;
	max-height: calc(80vh - 60px); /* header height adjustment */
}

/* Close Button */
.close-btn {
	background: transparent;
	border: none;
	font-size: 1.5em;
	color: #fff;
	cursor: pointer;
}

.modal-header h2 {
	font-size: 1.2em;
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}


/* Mini Overlay */
.mini-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	backdrop-filter: blur(4px);
	background-color: rgba(0, 0, 0, 0.2);
	z-index: 1090;
	display: none;
}

/* Mini Popup Box */
.mini-popup {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 60%;
	max-height: 60vh;
	background: #fff;
	border-radius: 8px;
	border: 2px solid grey;
	box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
	display: none;
	z-index: 1100;
	overflow: hidden;
	flex-direction: column;
}

/* Mini Popup Header */
.mini-header {
	background-color: var(--primary);
	color: white;
	padding: 0.75em 1em;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* Mini Content Scrollable */
.mini-content {
	padding: 1em;
	overflow-y: auto;
	max-height: calc(60vh - 60px); /* adjust for header */
}

/* Blurred Background Overlay */
.adv-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	backdrop-filter: blur(5px);
	background-color: rgba(0, 0, 0, 0.3);
	z-index: 999;
	display: none;
}

/* Modal container */
.adv-popup {
	position: fixed;
	top: 10%;
	left: 50%;
	transform: translateX(-50%);
	width: 90%;
	max-height: 80vh;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
	display: none;
	flex-direction: column;
	overflow: hidden;
	z-index: 1000;
}

/* Modal header */
.adv-header {
	padding: 1em;
	background: var(--primary);
	color: white;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* Modal body (scrollable) */
.adv-content {
	padding: 1em;
	overflow-y: auto;
	max-height: calc(80vh - 60px); /* header height adjustment */
}

.adv-header h2 {
	font-size: 1.2em;
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Loading Overlay */
.loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	backdrop-filter: blur(6px);
	background-color: rgba(0, 0, 0, 0.25);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

/* Loading Box */
.loading-box {
	background-color: #fff;
	padding: 2em 3em;
	border-radius: 8px;
	box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
	text-align: center;
}

/* Spinner Style */
.spinner {
	border: 4px solid #eee;
	border-top: 4px solid #a12125;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	margin: 0 auto 1em;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	to { 
		transform:rotate(360deg);	
	}

}

/* Loading Text */
.loading-text {
	font-size: 1.1em;
	font-weight: 600;
	color: #a12125;
}

.form-group {
	margin-bottom: 20px;
	position: relative;
}

.error-message {
	color: red;
	font-size: 12px;
	display: block;
	opacity: 1;
	transition: opacity 2s ease-out;
}

 .hidden1 {
	opacity: 0;
}

img[data-action] {
	cursor: pointer;
}

@media ( max-width : 768px) {
	body {
		flex-direction: column;
	}
	.content-container {
		flex-direction: column; /* THIS FIXES THE ISSUE */
	}
	.logo img {
		max-width: 100%;
		height: auto;
		display: block;
	}
	.sidebar {
		width: 100%;
		padding: 1rem;
	}
	.main-content {
		padding: 1rem;
	}
	.search-options {
		flex-direction: row;
		overflow-x: auto;
		padding-bottom: 1rem;
	}
	.search-option {
		min-width: max-content;
	}
}

@media print {
	body * {
		visibility: hidden;
	}
	#resultCard, #resultCard * {
		visibility: visible;
	}
	#resultCard {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		height: auto;
		overflow: visible;
	}
	.noprint {
		display: none !important;
	}
	.scrollable-result {
		max-height: none;
		overflow-y: visible;
		padding-right: 0;
	}
	.result-card {
		background: var(--card-bg);
		border-radius: var(--border-radius);
		padding: 1.5rem;
		box-shadow: var(--shadow);
		border-left: none;
	}
}
@font-face {
    font-family: 'Open-Dyslexic';
    font-style: normal;
    font-weight: 400;
    src: local('Open-Dyslexic'), url('./open-dyslexic.woff') format('woff');
}
a{
	color: #2683c2;
	text-decoration: none;
}
a:focus, a:hover {
  color: var(--primary);
  text-decoration: underline;
  font-size: 18px;
}

.footer{
	background:black !important; 
	color: white;
	text-align: center;
}
.footer p {
	font-weight: bold;
	font-size: 13px;
}
.footer-logo {
	padding: 10px;
}

.footer-row {
	background: black !important;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    flex-wrap: wrap;
}
@media (max-width: 768px) {
    .footer-row {
        flex-direction: column;
        text-align: center;
        padding: 0px;
    }

    .footer-logo {
        margin: 10px 0;
    }
}
.status-pending {
  color: green;
  font-weight: bold;
}
.status-disposed {
  color: red;
  font-weight: bold;
}
.status-default {
  color: black;
}
.expiry {
	font-weight: bold;
	color: red;
}

