/**
 * Assessment Progress Table Styles
 *
 * @package GravityFormsCustomFunctions
 * @since 1.0.0
 */

/* Assessment Progress Section */
.gfcf-assessment-progress-section {
	margin-bottom: 2rem;
	padding: 1.5rem;
	background-color: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.gfcf-assessment-progress-section h2 {
	margin-top: 0;
	margin-bottom: 1rem;
	color: #333;
	font-size: 1.5rem;
	font-weight: 600;
}

/* Assessment Progress Tables */
.gfcf-assessment-progress-tables {
	margin-bottom: 1rem;
}

.gfcf-assessment-table-wrapper {
	margin-bottom: 2rem;
	overflow-x: auto;
}

.gfcf-assessment-progress-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #ddd;
	background-color: #fff;
	font-size: 0.9rem;
	line-height: 1.4;
}

.gfcf-assessment-progress-table th,
.gfcf-assessment-progress-table td {
	padding: 0.75rem;
	text-align: left;
	border: 1px solid #ddd;
	vertical-align: top;
}

.gfcf-assessment-progress-table th {
	background-color: #f5f5f5;
	font-weight: 600;
	color: #333;
	border-bottom: 2px solid #ddd;
	vertical-align: top;
	padding: 0.5rem;
}

.gfcf-assessment-progress-table th:first-child {
	background-color: #e9e9e9;
	font-weight: 700;
	color: #222;
	padding: 0.75rem;
}

.gfcf-assessment-progress-table .assessment-header {
	font-size: 0.8rem;
	line-height: 1.3;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
}

.gfcf-assessment-progress-table .assessment-header .header-year,
.gfcf-assessment-progress-table .assessment-header .header-round,
.gfcf-assessment-progress-table .assessment-header .header-date,
.gfcf-assessment-progress-table .assessment-header .header-assessed-by {
	margin-bottom: 0.25rem;
	font-weight: 600;
	text-align: left;
}

.gfcf-assessment-progress-table .assessment-header .header-link {
	margin-top: 0.5rem;
	padding-top: 0.25rem;
	border-top: 1px solid #ddd;
}

.gfcf-assessment-progress-table .assessment-header .header-link a {
	text-decoration: none;
	font-size: 0.75rem;
	font-weight: 600;
}

.gfcf-assessment-progress-table .assessment-header .header-link a:hover {
	text-decoration: underline;
}

/* Alternating Row Colors */
.gfcf-assessment-progress-table .gfcf-row-even {
	background-color: #fff;
}

.gfcf-assessment-progress-table .gfcf-row-odd {
	background-color: #f9f9f9;
}

.gfcf-assessment-progress-table .gfcf-row-even:hover,
.gfcf-assessment-progress-table .gfcf-row-odd:hover {
	background-color: #f0f8ff;
}

/* Section Column Styling */
.gfcf-assessment-progress-table th:first-child,
.gfcf-assessment-progress-table td:first-child {
	font-weight: 400;
	background-color: #f8f8f8;
	border-right: 2px solid #ddd;
}

/* Total Row Styling */
.gfcf-assessment-progress-table tr:last-child th:first-child,
.gfcf-assessment-progress-table tr:last-child td:first-child {
	font-weight: 700;
}

.gfcf-assessment-progress-table thead tr th {
	border-bottom: 2px solid grey;
	font-weight: normal;
}

.gfcf-assessment-progress-table tbody tr:last-child td {
	font-weight: bold;
}

/* Student Info Section */
.student-info-section {
	margin-bottom: 1.5rem;
	padding: 1rem;
	background-color: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 4px;
}

.student-info-section p {
	margin: 0.5rem 0;
}

.student-info-section .button {
	display: inline-block;
	padding: 0.5rem 1rem;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 0.9rem;
	transition: background-color 0.2s ease;
}

.student-info-section .button:hover {
	text-decoration: none;
}

/* Individual Results Section */
.individual-results-section {
	margin-top: 2rem;
}

.individual-results-section h2 {
	margin-bottom: 1rem;
	color: #333;
	font-size: 1.5rem;
	font-weight: 600;
}

/* Admin Email Input Section */
.gfcf-admin-email-input-section {
	margin-bottom: 2rem;
	padding: 2rem;
	background-color: #e8f4fd;
	border: 1px solid #b3d9ff;
	border-radius: 4px;
}

.gfcf-admin-email-input-section h2 {
	margin-top: 0;
	margin-bottom: 1rem;
	color: #1a4a6b;
	font-size: 1.5rem;
	font-weight: 600;
}

.gfcf-admin-email-form {
	max-width: 500px;
}

.gfcf-email-form {
	max-width: 500px;
}

.gfcf-form-row {
	margin-bottom: 1rem;
}

.gfcf-form-row label {
	display: block;
	margin-bottom: 0.5rem;
}

.gfcf-form-row input[type="email"] {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1rem;
}

.gfcf-form-row input[type="email"]:focus {
	outline: none;
	border-color: #0066cc;
	box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

.gfcf-form-row button {
	padding: 0.75rem 1.5rem;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

/* Error and No Results Messages */
.gfcf-error {
	color: #d32f2f;
	background-color: #ffebee;
	padding: 1rem;
	border: 1px solid #ffcdd2;
	border-radius: 4px;
	margin-bottom: 1rem;
}

.gfcf-no-results {
	color: #f57c00;
	background-color: #fff3e0;
	padding: 1rem;
	border: 1px solid #ffcc02;
	border-radius: 4px;
	margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
	.gfcf-assessment-progress-table {
		font-size: 0.8rem;
	}
	
	.gfcf-assessment-progress-table th,
	.gfcf-assessment-progress-table td {
		padding: 0.5rem;
	}
	
	.gfcf-assessment-progress-section {
		padding: 1rem;
	}
	
	.gfcf-admin-email-input-section {
		padding: 1rem;
	}
	
	.student-info-section {
		padding: 0.75rem;
	}
	
	.individual-results-section h2 {
		font-size: 1.3rem;
	}
}

@media (max-width: 480px) {
	.gfcf-assessment-progress-table {
		font-size: 0.75rem;
	}
	
	.gfcf-assessment-progress-table th,
	.gfcf-assessment-progress-table td {
		padding: 0.375rem;
	}
}

/* Print Styles */
@media print {
	.gfcf-assessment-progress-section {
		background-color: #fff;
		border: 1px solid #000;
	}
	
	.gfcf-assessment-progress-table {
		border: 1px solid #000;
	}
	
	.gfcf-assessment-progress-table th,
	.gfcf-assessment-progress-table td {
		border: 1px solid #000;
	}
	
	.gfcf-assessment-progress-table th {
		background-color: #f0f0f0;
	}
	
	.gfcf-assessment-progress-table .gfcf-row-odd {
		background-color: #f9f9f9;
	}
} 