.app_container {
	display: grid;
	grid-template-rows: auto 1fr 35px;
	height: 100dvh;
	overflow: hidden;
	background-image: url('../images/app_bg.jpg');
	background-repeat: no-repeat;
	background-size: cover;
}

.content_container {
	width: 100%;
	box-sizing: border-box;
}

.header {
	/* height: 120px; */
	width: 100vw;
	margin-top: 20px;
	margin-bottom: 20px;
	color: #ffffff;
}

.header_mobile {
	display: none;
	width: 100vw;
	margin-top: 20px;
	margin-bottom: 20px;
	color: #ffffff;
}

.header_container {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	column-gap: 20px;
	width: 100%;
	height: 100%;
	padding: 20px 30px;
	box-sizing: border-box;
	border-radius: 20px;
	background-image: url('../images/header_bg.png');
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}

.header_container .title {
	font-size: clamp(22px, 6.2vw, 30px);
	font-weight: 700;
}

.header_container .action {
	font-size: clamp(16px, 4.2vw, 20px);
	font-weight: 700;
}

.dashboard_container {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	width: 100%;
	box-sizing: border-box;
}

.help_container {
	font-size: clamp(14px, 3.4vw, 16px);
	font-weight: 600;
}

.help_container_mobile {
	font-size: clamp(14px, 3.4vw, 16px);
	font-weight: 600;
	display: none;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	row-gap: 0px;
}

.reading_close {
	display: block;
}

.reading_close_mobile {
	font-size: clamp(14px, 3.4vw, 16px);
	font-weight: 600;
	position: absolute;
	right: 10px;
	top: 10px;
	display: none;
	cursor: pointer;
}

.reading_container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 20px;
}

.photo_container {
	display: grid;
	grid-template-columns: 3fr auto;
	column-gap: 20px;
}

.account_header {
	display: grid; 
	grid-template-columns: 1fr 1fr;
}

.reading_schedule {
	display: grid;
	grid-template-columns: 1fr repeat(7, 35px);
	background-color: var(--clr-line);
	gap: 1px;
	border: 1px solid var(--clr-line); 
}
.reading_schedule .title {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	font-size: clamp(12px, 3vw, 14px);
	font-weight: 600;
	background-color: #ffffff;
	padding-left: 5px;
	padding-right: 5px;
}
.reading_schedule .cell {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: clamp(12px, 3vw, 14px);
	font-weight: 600;
	background-color: #ffffff;
	min-height: 35px;
}
.reading_schedule_mobile {
	display: none;
	grid-template-columns: 1fr;
	background-color: var(--clr-line);
	gap: 1px;
	border: 1px solid var(--clr-line);
}
.reading_schedule_mobile .title {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	font-size: clamp(12px, 3vw, 14px);
	font-weight: 600;
	background-color: #ffffff;
	padding: 10px 5px;
}
.reading_schedule_mobile_row {
	display: none;
	grid-template-columns: repeat(7, 1fr);
	background-color: var(--clr-line);
	gap: 1px;
	border-left: 1px solid var(--clr-line); 
	border-right: 1px solid var(--clr-line); 
}
.reading_schedule_mobile_row .cell {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: clamp(12px, 3vw, 14px);
	font-weight: 600;
	background-color: #ffffff;
	min-height: 35px;
}

@media (max-width: 768px) {
	.header {
		display: none;
	}

	.header_mobile {
		display: block;
	}

	.header_container {
		padding: 20px 15px;
	}

	.header_container .title {
		font-size: clamp(20px, 6.2vw, 26px);
		font-weight: 700;
	}

	.dashboard_container {
		grid-template-columns: repeat(1, 1fr);
	}

	.help_container {
		display: none;
	}

	.help_container_mobile {
		display: flex;
	}

	.reading_close {
		display: none;
	}

	.reading_close_mobile {
		display: block;
	}

	.reading_container {
		grid-template-columns: repeat(1, 1fr);
	}

	.photo_container {
		grid-template-columns: repeat(1, 1fr);
	}

	#photo_example {
		margin-top: 20px;
		;
	}
	.account_header {
		grid-template-columns: 1fr;
		row-gap: 20px;
	}
	.reading_schedule {
		display: none;
	}
	.reading_schedule_mobile {
		display: grid;
	}
	.reading_schedule_mobile_row {
		display: grid;
	}
}

.footer {
	width: 100vw;
	background-color: var(--clr-secondary);
	color: #ffffff;
	height: 35px;
}

.card {
	/* display: flex; */
	background-color: #ffffff;
	padding: 30px;
	border-radius: 15px;
	box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.card_header {
	font-size: clamp(18px, 4.5vw, 24px);
	font-weight: 700;
	color: var(--clr-grey-dark);
}

/* Input controls
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.input_wrapper {
	position: relative;
	display: flex;
	flex-direction: column;
	row-gap: 2px;
	width: 100%;
}

.input_wrapper .label {
	font-size: clamp(10px, 2.6vw, 12px);
	font-weight: 600;
	color: #333333;
}

.error-message {
	min-height: 18px;
	/* or whatever height fits your design */
	display: block;
}

/* Buttons
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.grn_button {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	height: 50px;
	background-color: #28a745;
	color: white;
	border: none;
	padding: 10px 20px;
	/* font-size: clamp(15px, 3.8vw, 18px); */
	cursor: pointer;
	border-radius: 10px;
	transition: background-color 0.3s ease;
}

.gry_button {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	background-color: #fff;
	color: #28a745;
	border: 1px solid #28a745;
	padding: 10px 20px;
	font-size: clamp(15px, 3.8vw, 18px);
	cursor: pointer;
	border-radius: 10px;
	transition: background-color 0.3s ease;
}

/* Disabled button style */
button:disabled,
.grn_button:disabled {
	background-color: #cccccc !important;
	color: #888888 !important;
	cursor: not-allowed !important;
	border: none !important;
}

.title_top {
	font-size: clamp(15px, 3.8vw, 18px);
	font-weight: 600;
	color: var(--clr-grey);
}

.title_mid {
	font-size: clamp(22px, 6.2vw, 30px);
	font-weight: 800;
}

.title_bot {
	font-size: clamp(14px, 3.4vw, 16px);
	font-weight: 600;
}

.div_line {
	width: 100%;
	height: 1px;
	background-color: var(--clr-line);
	margin: 20px 0;
}

/* Grids
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.grid_title {
	font-size: clamp(13px, 3.2vw, 15px);
	font-weight: 600;
	background-color: #fff;
	padding: 5px;
}

.grid_cell {
	display: flex;
	align-items: center;
	font-size: clamp(13px, 3.2vw, 15px);
	font-weight: 400;
	background-color: #fff;
	padding: 5px;
}

.grid_cell .declined {
	width: 100%;
	background-color: #f6e4e4;
	color: #b61616;
	height: 30px;
	border-radius: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: clamp(11px, 2.8vw, 13px);
}

.grid_cell .pending {
	width: 100%;
	background-color: #f6eee4;
	color: #b66b16;
	height: 30px;
	border-radius: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: clamp(11px, 2.8vw, 13px);
}

.grid_cell .approved {
	width: 100%;
	background-color: #ddefdf;
	color: #15b629;
	height: 30px;
	border-radius: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: clamp(11px, 2.8vw, 13px);
}

.grid_cell .resubmit {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 30px;
	width: 100%;
	background-color: #28a745;
	color: white;
	border: none;
	padding: 10px 20px;
	font-size: clamp(11px, 2.8vw, 13px);
	cursor: pointer;
	border-radius: 10px;
	transition: background-color 0.3s ease;
}

/* History Table Styles */
.history_table {
	display: flex;
	flex-direction: column;
	width: 100%;
	overflow-y: auto;
}

.history_header {
	display: grid;
	grid-template-columns: 60px 1fr 1fr 1fr 140px 140px;
	gap: 1px;
	/* padding: 10px 0px; */
	background-color: #ffffff;
	/* border-bottom: 2px solid #eaeaea; */
}

.history_row {
	display: grid;
	grid-template-columns: 60px 1fr 1fr 1fr 140px 140px;
	gap: 10px;
	padding: 10px;
	background-color: #fff;
	/* border-bottom: 1px solid #eaeaea; */
	align-items: center;
}

.history_row:hover {
	background-color: #fcfcfc;
}

.history_button_container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 20px;
}

@media (max-width: 900px) {
	.history_header {
		display: none;
	}

	.history_row {
		display: flex;
		flex-direction: column;
		gap: 12px;
		padding: 20px;
		margin-bottom: 15px;
		border: 1px solid #e0e0e0;
		border-radius: 12px;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
	}

	.history_row .grid_cell {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		padding: 0;
	}

	.history_row .grid_cell::before {
		content: attr(data-label);
		font-weight: 600;
		color: #555;
		font-size: 14px;
	}

	/* Make the photo full width or centered */
	.history_row .grid_cell[data-label="Photo"] {
		justify-content: center;
		margin-bottom: 10px;
	}

	.history_row .grid_cell[data-label="Photo"]::before {
		display: none;
	}

	.history_button_container {
		grid-template-columns: 1fr;
		row-gap: 10px;
	}
}

/* Responsive Typography
–––––––––––––––––––––––––––––––––––––––––––––––––– */

/* Main header styling with responsive font sizes */
.main-header {
	font-size: 2.5rem;
	/* Base size for mobile */
	line-height: 1.2;
	font-weight: 300;
	text-align: center;
}

/* Responsive font sizes using clamp() for smooth scaling */
.responsive-title {
	font-size: clamp(2rem, 5vw, 4rem);
	line-height: 1.2;
	font-weight: 300;
}

/* Media queries for step-based responsive sizing */
@media (min-width: 400px) {
	.main-header {
		font-size: 3rem;
	}
}

@media (min-width: 550px) {
	.main-header {
		font-size: 3.5rem;
	}
}

@media (min-width: 750px) {
	.main-header {
		font-size: 4rem;
	}
}

/* Alternative approach using viewport units with media query limits */
.vw-title {
	font-size: 8vw;
	/* 8% of viewport width */
}

@media (max-width: 400px) {
	.vw-title {
		font-size: 2rem;
		/* Minimum size for very small screens */
	}
}

@media (min-width: 1200px) {
	.vw-title {
		font-size: 4rem;
		/* Maximum size for large screens */
	}
}

/* Utility classes for responsive text */
.text-responsive-sm {
	font-size: clamp(1rem, 3vw, 1.5rem);
}

.text-responsive-md {
	font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.text-responsive-lg {
	font-size: clamp(2rem, 5vw, 4rem);
}

.text-responsive-xl {
	font-size: clamp(2.5rem, 6vw, 5rem);
}

/* Pagination */
.pagination-wrapper {
	margin: 5px 0;
	text-align: right;
}

.pagination a {
	display: inline-block;
	padding: 6px 12px;
	margin: 0 2px;
	background: #f0f0f0;
	color: #333;
	border-radius: 4px;
	text-decoration: none;
	border: 1px solid #ddd;
	transition: background 0.2s, color 0.2s;
}

.pagination a:hover {
	background: #22c55e;
	color: #fff;
	border-color: #22c55e;
}

.pagination strong {
	display: inline-block;
	padding: 6px 12px;
	margin: 0 2px;
	background: #22c55e;
	color: #fff;
	border-radius: 4px;
	border: 1px solid #22c55e;
}

.two_col_input {
	display: flex;
	flex-direction: row;
	column-gap: 20px;
	margin-top: 10px;
}

/* Mobile Layout Adjustments
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media (max-width: 768px) {
	.two_col_input {
		display: grid;
		grid-template-columns: 1fr;
		column-gap: 20px;
		margin-top: 10px;
	}
}
