/* Elite Armory Waiver System Styles */

.ea-login-container,
.ea-portal-container {
	max-width: 800px;
	margin: 20px auto;
	padding: 20px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ea-login-container h3,
.ea-portal-container h3 {
	margin-top: 0;
	color: #333;
	text-align: center;
}

.ea-form-group {
	margin-bottom: 20px;
}

.ea-form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: 700;
	color: #555;
}

.ea-form-control {
	width: 100%;
	padding: 12px;
	border: 2px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
	transition: border-color 0.3s ease;
}

.ea-form-control:focus {
	outline: none;
	border-color: #007cba;
	box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.ea-btn {
	display: inline-block;
	padding: 12px 24px;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
}

.ea-btn-primary {
	background-color: #007cba;
	color: #fff;
	font-weight: 700;
}

.ea-btn-primary:hover {
	background-color: #005a87;
	transform: translateY(-1px);
}

.ea-btn-secondary {
	background-color: #6c757d;
	color: #fff;
}

.ea-btn-secondary:hover {
	background-color: #545b62;
}

.ea-btn-sign {
	background-color: #28a745;
	color: #fff;
	padding: 8px 16px;
	font-size: 14px;
}

.ea-btn-sign:hover {
	background-color: #218838;
}

/* Messages */
.ea-message {
	margin-top: 15px;
	padding: 10px;
	border-radius: 4px;
}

.ea-success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.ea-error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.ea-loading {
	background-color: #d1ecf1;
	color: #0c5460;
	border: 1px solid #bee5eb;
}

/* Portal Header */
.ea-portal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
	padding-bottom: 15px;
	border-bottom: 2px solid #eee;
}

.ea-logout-link {
	color: #dc3545;
	text-decoration: none;
	font-weight: 700;
}

.ea-logout-link:hover {
	color: #c82333;
	text-decoration: underline;
}

/* Waivers Section */
.ea-waivers-section h4 {
	color: #333;
	margin-bottom: 20px;
}

.ea-waivers-list {
	display: grid;
	gap: 20px;
}

.ea-waiver-item {
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	padding: 10px 20px;
	transition: box-shadow 0.3s ease;
}

.ea-waiver-item:hover {
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ea-waiver-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0;
}

.ea-waiver-header h5 {
	margin: 0;
	color: #333;
	font-size: 18px;
}

.ea-waiver-date {
	color: #6c757d;
	font-size: 14px;
}

.ea-waiver-status {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.ea-status-signed {
	color: #28a745;
	font-weight: 700;
}

.ea-status-unsigned {
	color: #dc3545;
	font-weight: 700;
}

/* Modal Styles */
.ea-modal {
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	justify-content: center;
	align-items: center;
}

.ea-modal-content {
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	max-width: 500px;
	width: 90%;
	max-height: 90%;
	overflow-y: auto;
}

.ea-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	border-bottom: 1px solid #dee2e6;
}

.ea-modal-header h4 {
	margin: 0;
	color: #333;
}

.ea-modal-close {
	font-size: 24px;
	font-weight: 700;
	color: #aaa;
	cursor: pointer;
	line-height: 1;
}

.ea-modal-close:hover {
	color: #000;
}

.ea-modal-body {
	padding: 20px;
}

/* Signature Pad */
#ea-signature-pad {
	border: 2px solid #ddd;
	border-radius: 4px;
	cursor: crosshair;
	display: block;
	margin: 0 auto;
	background-color: #fff;
}

.ea-signature-controls {
	display: flex;
	justify-content: space-between;
	margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {

	.ea-login-container,
	.ea-portal-container {
		margin: 10px;
		padding: 15px;
	}

	.ea-portal-header {
		flex-direction: column;
		text-align: center;
		gap: 10px;
	}

	.ea-waiver-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.ea-waiver-status {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.ea-modal-content {
		width: 95%;
		margin: 10px;
	}

	#ea-signature-pad {
		width: 100%;
		max-width: 350px;
	}

	.ea-signature-controls {
		flex-direction: column;
		gap: 10px;
	}
}

@media (max-width: 480px) {

	.ea-btn {
		width: 100%;
		margin-bottom: 10px;
	}

	.ea-form-control {
		font-size: 16px; /* Prevent zoom on iOS */
	}
}

/* Print Styles */
@media print {

	.ea-btn,
	.ea-logout-link,
	.ea-modal {
		display: none !important;
	}

	.ea-portal-container,
	.ea-login-container {
		box-shadow: none;
		border: 1px solid #000;
	}
}
