/* ==========================================================================
   Mount Joy Fire Foundation - Global Styles
   ========================================================================== */

/* Reset and Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	line-height: 1.6;
	color: #333;
	background: #f5f5f5;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

.header {
	background: linear-gradient(135deg, #1e3a8a 0%, #0f2557 100%);
	color: white;
	padding: 3rem 2rem;
	text-align: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header h1 {
	font-size: 2.5rem;
	margin-bottom: 0.5rem;
	font-weight: 600;
}

.header .tagline {
	font-size: 1.2rem;
	opacity: 0.9;
	font-weight: 300;
}

/* Admin Header (slightly different) */
.admin-header {
	background: linear-gradient(135deg, #1e3a8a 0%, #0f2557 100%);
	color: white;
	padding: 25px 0;
	margin-bottom: 30px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-header h1 {
	margin: 0;
	color: white;
	font-size: 1.8rem;
}

.admin-header p {
	margin: 5px 0 0 0;
	opacity: 0.9;
}

/* ==========================================================================
   Container and Layout
   ========================================================================== */

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem;
}

/* ==========================================================================
   Hero Section (Landing Page)
   ========================================================================== */

.hero-section {
	background: white;
	border-radius: 10px;
	padding: 3rem;
	margin-bottom: 2rem;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	text-align: center;
}

.hero-section h2 {
	color: #1e3a8a;
	font-size: 2rem;
	margin-bottom: 1rem;
}

.hero-section p {
	font-size: 1.1rem;
	color: #555;
	margin-bottom: 2rem;
	line-height: 1.8;
}

/* ==========================================================================
   CTA Section (Call to Action)
   ========================================================================== */

.cta-section {
	background: #e8dcc8;
	color: #333;
	border-radius: 10px;
	padding: 3rem;
	margin-bottom: 2rem;
	text-align: center;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	border: 3px solid #1e3a8a;
}

.cta-section h2 {
	font-size: 2rem;
	margin-bottom: 1rem;
	color: #1e3a8a;
}

.cta-section p {
	font-size: 1.1rem;
	margin-bottom: 2rem;
	color: #333;
}

/* ==========================================================================
   Donation Form
   ========================================================================== */

.donation-form {
	background: white;
	border-radius: 10px;
	padding: 2rem;
	max-width: 500px;
	margin: 0 auto;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	color: #333;
	font-weight: 500;
}

.form-group input,
.form-group select {
	width: 100%;
	padding: 0.75rem;
	border: 2px solid #ddd;
	border-radius: 5px;
	font-size: 1rem;
	transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
	outline: none;
	border-color: #1e3a8a;
}

/* Form row for inline fields (City, State, ZIP) */
.form-row {
	display: flex;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.form-row .form-group {
	flex: 1;
	margin-bottom: 0;
}

/* Make state input convert to uppercase */
#donor_state {
	text-transform: uppercase;
}

.amount-options {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.amount-btn {
	padding: 0.75rem;
	border: 2px solid #ddd;
	border-radius: 5px;
	background: white;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 500;
	transition: all 0.3s;
}

.amount-btn:hover {
	border-color: #1e3a8a;
	background: #eff6ff;
}

.amount-btn.active {
	border-color: #1e3a8a;
	background: #1e3a8a;
	color: white;
}

.donate-button {
	width: 100%;
	padding: 1rem;
	background: linear-gradient(135deg, #c41e3a 0%, #a01829 100%);
	color: white;
	border: none;
	border-radius: 5px;
	font-size: 1.2rem;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
}

.donate-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(196, 30, 58, 0.4);
}

/* ==========================================================================
   Info Cards Grid
   ========================================================================== */

.info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	margin: 2rem 0;
}

.info-card {
	background: white;
	border-radius: 10px;
	padding: 2rem;
	text-align: center;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s;
}

.info-card:hover {
	transform: translateY(-5px);
}

.info-card i {
	font-size: 3rem;
	color: #1e3a8a;
	margin-bottom: 1rem;
}

.info-card h3 {
	color: #1e3a8a;
	margin-bottom: 0.5rem;
}

.info-card p {
	color: #666;
	line-height: 1.6;
}

/* ==========================================================================
   Thank You Page Styles
   ========================================================================== */

.thank-you-box {
	background: white;
	border-radius: 10px;
	padding: 3rem;
	margin-bottom: 2rem;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	text-align: center;
}

.thank-you-box i {
	font-size: 4rem;
	color: #1e3a8a;
	margin-bottom: 1rem;
}

.thank-you-box h2 {
	color: #1e3a8a;
	font-size: 2rem;
	margin-bottom: 1rem;
}

.thank-you-box .donor-name {
	font-size: 1.3rem;
	color: #666;
	margin-bottom: 2rem;
}

.thank-you-box p {
	font-size: 1.1rem;
	color: #555;
	line-height: 1.8;
	margin-bottom: 1rem;
}

.info-box {
	background: #f8f9fa;
	border: 2px solid #e9ecef;
	border-radius: 10px;
	padding: 2rem;
	margin: 2rem 0;
}

.info-box h3 {
	color: #1e3a8a;
	margin-bottom: 1rem;
	font-size: 1.3rem;
}

.info-box .info-grid {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.75rem 1.5rem;
	margin-top: 1rem;
}

.info-label {
	font-weight: 600;
	color: #555;
}

.info-value {
	color: #333;
}

.warning-box {
	background: #fff3cd;
	border-left: 4px solid #ffc107;
	padding: 1.5rem;
	border-radius: 5px;
	margin: 2rem 0;
}

.warning-box p {
	margin: 0.5rem 0;
	color: #856404;
}

.next-steps {
	background: white;
	border-radius: 10px;
	padding: 2rem;
	margin: 2rem 0;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.next-steps h3 {
	color: #1e3a8a;
	margin-bottom: 1rem;
}

.next-steps ul {
	list-style: none;
	padding: 0;
}

.next-steps li {
	padding: 0.75rem 0;
	padding-left: 2rem;
	position: relative;
	color: #555;
}

.next-steps li:before {
	content: "\f00c";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	position: absolute;
	left: 0;
	color: #1e3a8a;
}

/* ==========================================================================
   Admin Dashboard Styles
   ========================================================================== */

.stats-card {
	background: linear-gradient(135deg, #1e3a8a 0%, #0f2557 100%);
	color: white;
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stats-card h3 {
	margin: 0;
	font-size: 2rem;
	font-weight: 700;
}

.stats-card p {
	margin: 5px 0 0 0;
	opacity: 0.9;
}

.stats-card small {
	opacity: 0.8;
	font-size: 0.85rem;
}

.status-badge {
	padding: 4px 12px;
	border-radius: 4px;
	font-size: 0.85rem;
	font-weight: 600;
	white-space: nowrap;
	display: inline-block;
}

.status-completed {
	background-color: #28a745;
	color: white;
}

.status-pending {
	background-color: #ffc107;
	color: #333;
}

.status-cancelled,
.status-failed,
.status-refunded {
	background-color: #dc3545;
	color: white;
}

.logout-btn {
	background-color: #c41e3a;
	border-color: #c41e3a;
	color: white;
}

.logout-btn:hover {
	background-color: #a01829;
	border-color: #a01829;
	color: white;
}

.filter-controls {
	margin-bottom: 20px;
	padding: 15px;
	background-color: #f8f9fa;
	border-radius: 6px;
}

.filter-controls label {
	font-weight: 600;
	margin-right: 10px;
}

.filter-controls select {
	padding: 6px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.card {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	border: none;
}

.card-header {
	background: linear-gradient(135deg, #1e3a8a 0%, #0f2557 100%);
	color: white;
	border-bottom: none;
}

.card-header h4 {
	margin: 0;
}

.donor-info-btn {
	background-color: transparent;
	border: none;
	color: #1e3a8a;
	cursor: pointer;
	padding: 0;
	font-size: 1.1rem;
}

.donor-info-btn:hover {
	color: #0f2557;
}

.modal-header {
	background: linear-gradient(135deg, #1e3a8a 0%, #0f2557 100%);
	color: white;
}

/* DataTables Customization */
table.dataTable tbody tr {
	background-color: white;
}

table.dataTable tbody tr:hover {
	background-color: #eff6ff !important;
}

.dt-buttons {
	margin-bottom: 15px;
}

.dt-button {
	background-color: #1e3a8a !important;
	border-color: #1e3a8a !important;
	color: white !important;
	margin-right: 5px !important;
}

.dt-button:hover {
	background-color: #0f2557 !important;
	border-color: #0f2557 !important;
}

/* ==========================================================================
   Buttons and Links
   ========================================================================== */

.btn-home {
	display: inline-block;
	padding: 1rem 2rem;
	background: linear-gradient(135deg, #1e3a8a 0%, #0f2557 100%);
	color: white;
	text-decoration: none;
	border-radius: 5px;
	font-weight: 600;
	transition: transform 0.2s, box-shadow 0.2s;
}

.btn-home:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(26, 71, 42, 0.4);
}

.fdmj-link {
	text-align: center;
	margin: 3rem 0 2rem;
}

.fdmj-link a {
	color: #1e3a8a;
	text-decoration: none;
	font-size: 1.1rem;
	font-weight: 500;
	transition: color 0.3s;
}

.fdmj-link a:hover {
	color: #0f2557;
	text-decoration: underline;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

.footer {
	background: #333;
	color: white;
	text-align: center;
	padding: 2rem;
	margin-top: 3rem;
}

.footer p {
	margin: 0.5rem 0;
	opacity: 0.9;
}

.footer-note {
	text-align: center;
	margin-top: 2rem;
	padding: 1.5rem;
	background: white;
	border-radius: 10px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.footer-note p {
	margin: 0.5rem 0;
	color: #666;
	font-size: 0.95rem;
}

.footer-note strong {
	color: #1e3a8a;
}

/* ==========================================================================
   Tax Info Box
   ========================================================================== */

.tax-info {
	background: #fef3c7;
	border-left: 4px solid #d97706;
	padding: 1rem;
	margin: 1.5rem 0;
	border-radius: 5px;
}

.tax-info p {
	margin: 0.5rem 0;
	color: #92400e;
	font-size: 0.95rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
	.header h1 {
		font-size: 1.8rem;
	}

	.admin-header h1 {
		font-size: 1.5rem;
	}

	.hero-section {
		padding: 2rem 1.5rem;
	}

	.thank-you-box {
		padding: 2rem 1.5rem;
	}

	.amount-options {
		grid-template-columns: repeat(2, 1fr);
	}

	.info-grid {
		grid-template-columns: 1fr;
	}

	.info-box .info-grid {
		grid-template-columns: 1fr;
		gap: 0.5rem;
	}

	.info-label {
		font-weight: 700;
	}

	/* Responsive form row - stack address fields vertically on mobile */
	.form-row {
		flex-direction: column;
		gap: 0;
	}

	.form-row .form-group {
		width: 100% !important;
		margin-bottom: 1.5rem;
	}
}
