/*==============================================
	Variables & Base
==============================================*/
.jotform-app {
	--jot-primary:   #367689;
	--jot-primary-d: #367666;
	--jot-secondary: #555;
	--jot-bg:        #f9f9f9;
	--jot-card-bg:   #fff;
	--jot-border:    #e0e0e0;
	--jot-radius:    0.5rem;
	--jot-transition: 0.2s ease;
	background: var(--jot-bg);
	color: #333;
	padding: 1rem;
}

/*==============================================
	Buttons
==============================================*/
.jotform-app .btn,
.jotform-app button {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.6em 1.2em;
	border: none;
	border-radius: var(--jot-radius);
	font-weight: 600;
	cursor: pointer;
	transition: background var(--jot-transition), transform var(--jot-transition);
}

.jotform-app .btn-primary {
	background: var(--jot-primary);
	color: #fff;
}
.jotform-app .btn-primary:hover {
	background: var(--jot-primary-d);
	transform: translateY(-1px);
}

.jotform-app .btn-secondary {
	background: var(--jot-secondary);
	color: #fff;
}
.jotform-app .btn-secondary:hover {
	background: #333;
}

/*==============================================
	Dashboard Cards
==============================================*/
.jotform-app .dashboard-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
	gap: 1.5rem;
}

.jotform-app .dashboard-card {
	background: var(--jot-card-bg);
	border-radius: var(--jot-radius);
	box-shadow: 0 2px 6px rgba(0,0,0,0.05);
	display: flex;
	flex-direction: column;
	padding: 1.5rem;
	transition: box-shadow var(--jot-transition), transform var(--jot-transition);
}

.jotform-app .dashboard-card:hover {
	box-shadow: 0 6px 16px rgba(0,0,0,0.1);
	transform: translateY(-4px);
}

.jotform-app .dashboard-card h5 {
	margin-bottom: 0.75rem;
	color: var(--jot-primary);
}

.jotform-app .dashboard-card p {
	margin-bottom: 0.5rem;
	color: #555;
	flex: 1;
}

/*==============================================
	Table / List Views
==============================================*/
.jotform-app table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--jot-card-bg);
	border-radius: var(--jot-radius);
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0,0,0,0.05);
	margin-bottom: 1.5rem;
}

.jotform-app thead {
	background: var(--jot-primary);
	color: #fff;
}

.jotform-app th,
.jotform-app td {
	padding: 0.75rem 1rem;
	text-align: left;
	border-bottom: 1px solid var(--jot-border);
}

.jotform-app tbody tr:nth-child(even) {
	background: #fcfcfc;
}

.jotform-app tbody tr:hover {
	background: #f0faff;
}

/* hide our “extra-data” column but keep it for DataTables sorting */
.jotform-app td.d-none {
	display: none !important;
}

/*==============================================
	Entry Detail Card
==============================================*/
.jotform-app .jotform-entry {
	background: var(--jot-card-bg);
	border-radius: var(--jot-radius);
	padding: 2rem;
	box-shadow: 0 2px 6px rgba(0,0,0,0.05);
	margin-bottom: 2rem;
}

.jotform-app .jotform-entry h2 {
	margin-bottom: 1rem;
	color: var(--jot-primary);
	text-align: center;
}

.jotform-app .jotform-entry p {
	margin-bottom: 0.75rem;
	color: #555;
}

.jotform-app .jotform-entry table {
	margin-top: 1.5rem;
	border: 1px solid var(--jot-border);
}

.jotform-app .jotform-entry table th {
	background: #f5f5f5;
	color: #333;
}

/*==============================================
	Alert Banner
==============================================*/
.jotform-app .alert {
	border-radius: var(--jot-radius);
	padding: 1rem 1.5rem;
	margin-bottom: 1.5rem;
	font-weight: 600;
}

.jotform-app .alert-success {
	background: #e6ffed;
	color: #0a621f;
	border: 1px solid #a6f4c5;
}

.jotform-app .alert-danger {
	background: #ffe8e8;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.jotform-app span.badge.badge-success {
	color: var(--secondary-color);
}



.jotform-app span.badge.badge-danger {
	color: var(--danger-color);
}

.jotform-app .highlight-attachment {
	outline: 3px solid #ffc107;
	transition: outline 0.3s ease-in-out;
}

/*==============================================
	Responsive tweaks
==============================================*/
@media (max-width: 576px) {
	.jotform-app .dashboard-cards {
	grid-template-columns: 1fr;
	}
	.jotform-app table,
	.jotform-app .jotform-entry {
	padding: 1rem;
	}
}

@media print {
	/* Hide everything except the entry card */
	body * {
		visibility: hidden !important;
	}
	.jotform-app .card,
	.jotform-app .card * {
		visibility: visible !important;
	}
	.jotform-app .card {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		box-shadow: none !important;
		border: none !important;
	}

	/* Remove headers, footers, buttons, nav, etc. */
	header, footer, nav, .site-header, .site-footer, .navbar, .card-footer,
	.btn, .d-flex.justify-content-between, #wpadminbar, .entry-title, .page-header {
		display: none !important;
	}

	/* Simplify the card/table styling */
	.jotform-app .card-header {
		border-bottom: 1px solid #000 !important;
		background: none !important;
		padding: 0 0 10px 0 !important;
	}
	.jotform-app .card-title {
		font-size: 18px !important;
		margin: 0 !important;
		font-weight: 600 !important;
		color: #000 !important;
	}
	.jotform-app .card-body {
		padding: 0 !important;
	}
	.jotform-app table {
		width: 100% !important;
		border-collapse: collapse !important;
		font-size: 13px !important;
	}
	.jotform-app table th,
	.jotform-app table td {
		border: 1px solid #000 !important;
		padding: 4px 6px !important;
		text-align: left !important;
		vertical-align: top !important;
	}
	.jotform-app table th {
		background: #f3f3f3 !important;
		font-weight: 600 !important;
	}

	/* Remove link styling and icons */
	a[href]:after {
		content: none !important;
	}
	i.fa, svg {
		display: none !important;
	}
}