body {
	margin: 0;
	background: #f3f5f2;
	font-family: "Inter", sans-serif;
	color: #2f2f2f;
	padding-top: 50px;
}

.container {
	max-width: 1000px;
	margin: auto;
	padding: 40px 20px;
}


/* -------------- NAVBAR --------------- */

.navbar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	backdrop-filter: blur(10px);
	background: rgba(243, 245, 242, 0.4);
	border-bottom: 1px solid #e0e0e0;
}

.nav-container {
	max-width: 1000px;
	margin: auto;
	padding: 15px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.nav-item {
	font-weight: 600;
	font-size: 15px;
	padding: 10px 18px;
	border-radius: 100px;
	border: 0px solid #cbd5c0;
	background: linear-gradient(180deg,
			rgba(232, 239, 230, 0.7) 0%,
			rgba(215, 226, 212, 0.7) 100%);

	cursor: pointer;
}

.nav-item a {
	display: inline-block;
	padding: 2px 200px;
	text-decoration: none;
	color: #3f7d3a;
	font-weight: 600;
}

.nav-item a:hover {
	text-decoration: underline;
}

.icon-btn {
	display: flex;
	align-items: center;
	justify-content: center;
}


/* -------------- HERO --------------- */

.hero {
	text-align: center;
	margin-bottom: 10px;
}

.hero h1 {
	font-size: 40px;
	margin: 0;
	font-weight: 700;
	color: #2f2f2f;
}

.location {
	margin-top: 10px;
	font-size: 16px;
	color: #6b7280;
}


/* -------------- CARD --------------- */

.card-dua {
	background: linear-gradient(180deg,
			#e8efe6 0%,
			#d7e2d4 100%);
	border-radius: 20px;
	padding: 25px;
	margin-bottom: 30px;
}

.card-time {
	border-radius: 20px;
	padding: 25px;
	margin-top: -10px;
	margin-bottom: 20px;
}

.card-table {
	background: #e4ece2;
	border-radius: 20px;
	padding: 20px;
	margin-bottom: 30px;
}

.section-title {
	text-align: center;
	margin-bottom: 25px;
	font-weight: 600;
	font-size: 22px;
}


/* -------------- TODAY SECTION --------------- */

.today-date {
	text-align: center;
	font-size: 18px;
	color: #53575e;
	margin-bottom: -8px;
}

.today-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 25px;
	margin-top: 20px;
}

.time-box {
	background: linear-gradient(180deg,
			#e8efe6 0%,
			#d7e2d4 100%);
	border-radius: 18px;
	padding: 25px;
	text-align: center;
}

.small {
	font-size: 18px;
	font-weight: 400;
	color: #4b5563;
}

.time {
	font-size: 40px;
	font-weight: 700;
	color: #3f7d3a;
	margin-top: 8px;
}

.countdown-wrapper {
	text-align: center;
	margin-top: 28px;
}

.countdown {
	font-size: 22px;
	font-weight: 600;
	color: #b91c1c;
}


/* -------------- DUAS --------------- */

.dua-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
}

.dua-box {
	text-align: center;
}

.dua-title {
	font-weight: 600;
	margin-bottom: 15px;
	font-size: 20px;
}

.arabic {
	font-family: "Noto Naskh Arabic", serif;
	font-size: 24px;
	direction: rtl;
	text-align: center;
	margin: 15px 0;
}


/* -------------- TABLE --------------- */

.table-wrapper {
	margin-top: 20px;
}

table {
	width: 100%;
	border-collapse: collapse;
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
}

th {
	background: #3f7d3a;
	color: white;
	padding: 14px;
	font-size: 16px;
}

td {
	padding: 12px;
	font-size: 21px;
	border-bottom: 1px solid #e0e0e0;
	border-right: 1px solid #e0e0e0;
	text-align: center;
}

th:last-child,
td:last-child {
	border-right: none;
}

.today-row td:first-child {
	border-left: 4px solid #3f7d3a;
}

.today-row {
	background: rgba(63, 125, 58, 0.08);
	box-shadow: inset 0 0 8px rgba(66, 128, 56, 0.4);
}

.today-row td {
	font-weight: 700;
}


/* -------------- FOOTER --------------- */

.footer {
	margin-top: 0px;
	padding: 20px 20px;
	text-align: center;
	background: #e8efe6;
}

.footer-content a {
	display: inline-block;
	margin: 10px 0;
	text-decoration: none;
	color: #3f7d3a;
	font-weight: 600;
}

.footer-content a:hover {
	text-decoration: underline;
}

.footer-small {
	font-size: 15px;
	color: #6b7280;
	margin-top: 10px;
}


/* -------------- DARK MODE --------------- */

body.dark {
	background: #111510;
	color: #C4C4C4;
}

body.dark .navbar {
	background: rgba(17, 21, 16, 0.4);
	border-bottom: 1px solid #1f2a1f;
}

body.dark .nav-item {
	background: rgba(28, 51, 35, 0.7);
	color: #C4C4C4;
	border: 0px solid rgba(74, 222, 128, 0.15);
}

body.dark .hero h1,
body.dark .dua-title,
body.dark .arabic {
	color: #C4C4C4;
}

body.dark .location,
body.dark .small {
	color: #9ca3af;
}

body.dark .today-date {
	color: #e5e7ebd3;
}

body.dark .card-dua,
body.dark .card-table,
body.dark .time-box {
	background: #1D231D;
}

body.dark .time {
	color: #428038;
}

body.dark .countdown {
	color: #ef4444;
}

body.dark table {
	background: #0D0D0D;
}

body.dark th {
	background: #173a28;
	color: #C4C4C4;
}

body.dark td {
	border-bottom: 1px solid rgba(74, 222, 128, 0.08);
	border-right: 1px solid rgba(74, 222, 128, 0.08);
}

body.dark .today-row {
	background: #1f2a1f;
	box-shadow: inset 0 0 8px rgba(66, 128, 56, 0.4);
}

body.dark .today-row td:first-child {
	border-left: 4px solid #4ea34f;
}


body.dark .footer {
	background: #1D231D;
}

body.dark .footer-content a {
	color: #4ea34f;
}

body.dark .footer-small {
	color: #9ca3af;
}


/* -------------- RESPONSIVE --------------- */

@media (max-width: 1024px) {

	.container {
		padding: 30px 18px;
	}

	.hero h1 {
		font-size: 32px;
	}

	.time {
		font-size: 34px;
	}

	table {
		font-size: 16px;
		width: 100%;
	}

	th,
	td {
		padding: 10px;
		font-size: 18px;
	}
}

@media (max-width: 768px) {

	body {
		padding-top: 70px;
	}

	.nav-container {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
	}

	.nav-container {
		flex-wrap: nowrap;
	}

	#currentTime {
		font-size: 16px;
		padding: 6px 10px;
	}

	.nav-item a {
		padding: 0;
		font-size: 13px;
		white-space: nowrap;
	}

	#darkToggle {
		font-size: 16px;
		padding: 6px 12px;
	}

	.hero {
		margin-top: 10px;
	}

	.hero h1 {
		font-size: 26px;
		line-height: 1.3;
	}

	.location {
		font-size: 14px;
	}

	.today-grid {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}

	.time-box {
		padding: 22px;
	}

	.time {
		font-size: 25px;
	}

	.small {
		font-size: 16px;
	}

	.countdown {
		font-size: 18px;
	}

	.card-table {
		padding: 6px;
	}

	.card-dua {
		padding: 10px;
	}

	.dua-title {
		font-size: 20px;
	}

	.arabic {
		font-size: 16px;
		line-height: 1.8;
	}

	.card-dua .small {
		font-size: 18px;
		line-height: 1.6;
	}

	.dua-grid {
		gap: 20px;
		grid-template-columns: 1fr;
	}

	table {
		font-size: 16px;
		width: 100%;
	}

	th,
	td {
		padding: 6px 4px;
		font-size: 12px;
	}

	.footer {
		padding: 14px 12px;
	}

	.footer-content a {
		font-size: 13px;
		margin: 6px 0;
	}

	.footer-small {
		font-size: 12px;
		margin-top: 6px;
	}

}

@media (max-width: 480px) {

	.container {
		padding: 20px 12px;
	}

	.hero h1 {
		font-size: 26px;
	}

	.today-grid {
		gap: 20px;
	}

	.time {
		font-size: 28px;
	}

	.countdown {
		font-size: 18px;
	}

	th,
	td {
		padding: 5px 3px;
		font-size: 16px;
	}

	.footer {
		padding: 12px 10px;
	}

	.footer-content a {
		font-size: 12px;
	}

	.footer-small {
		font-size: 11px;
	}

}

@media (max-width: 360px) {

	.hero h1 {
		font-size: 20px;
	}

	#currentTime,
	#darkToggle {
		font-size: 11px;
		padding: 5px 8px;
	}

	th,
	td {
		font-size: 10px;
	}
}