/* GWD OTJ Tracker - Enhanced Styling */

:root {
	--gwd-primary: #0073aa;
	--gwd-primary-dark: #005a87;
	--gwd-primary-light: #f0f8fb;
	--gwd-secondary: #28a745;
	--gwd-error: #dc3545;
	--gwd-warning: #ffc107;
	--gwd-text: #333;
	--gwd-text-light: #666;
	--gwd-border: #ddd;
	--gwd-bg-light: #f5f5f5;
}

/* ============================================================
   STUDENT DASHBOARD STYLES
   ============================================================ */

.gwd-otj-dashboard {
	max-width: 900px;
	margin: 0 auto;
}

/* Status Section */
.gwd-otj-status-section {
	background: white;
	border-radius: 4px;
	border-left: 5px solid var(--gwd-primary);
	padding: 40px;
	margin-bottom: 40px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.gwd-otj-status-section h2 {
	margin-top: 0;
	margin-bottom: 30px;
	color: var(--gwd-text);
}

.gwd-otj-status-box {
	background: var(--gwd-primary-light);
	border: 1px solid #d1ecf1;
	border-radius: 4px;
	padding: 30px;
	margin-bottom: 20px;
}

.gwd-otj-status-box.completed {
	background: #d4edda;
	border-color: #c3e6cb;
}

.gwd-otj-status-box.in-progress {
	background: var(--gwd-primary-light);
	border-color: #b8e0f1;
}

.gwd-otj-progress-main {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 40px;
	align-items: center;
	margin-bottom: 30px;
}

.gwd-otj-hours-display {
	text-align: center;
	padding: 30px 20px;
	background: white;
	border: 2px solid var(--gwd-primary);
	border-radius: 4px;
}

.gwd-otj-hours-number {
	display: block;
	font-size: 42px;
	font-weight: bold;
	color: var(--gwd-primary);
	line-height: 1;
	margin-bottom: 8px;
}

.gwd-otj-hours-label {
	display: block;
	font-size: 13px;
	color: var(--gwd-text-light);
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 15px;
	font-weight: normal;
}

.gwd-otj-minutes-number {
	display: block;
	font-size: 32px;
	font-weight: bold;
	color: var(--gwd-primary);
	line-height: 1;
	margin-top: 15px;
}

.gwd-otj-minutes-label {
	display: block;
	font-size: 13px;
	color: var(--gwd-text-light);
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: normal;
}

.gwd-otj-progress-bar-section {
	flex: 1;
}

.gwd-otj-progress-bar {
	width: 100%;
	height: 30px;
	background: #e9ecef;
	border-radius: 15px;
	overflow: hidden;
	margin-bottom: 15px;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.gwd-otj-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--gwd-primary) 0%, #005a87 100%);
	border-radius: 15px;
	transition: width 0.4s ease;
}

.gwd-otj-progress-text {
	margin: 15px 0 8px 0;
	font-size: 15px;
	color: var(--gwd-text-light);
	line-height: 1.5;
}

.gwd-otj-percentage {
	font-size: 20px;
	font-weight: bold;
	color: var(--gwd-primary);
	margin: 0;
	line-height: 1.2;
}

.gwd-otj-completed-badge {
	background: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
	padding: 15px 20px;
	border-radius: 4px;
	margin-top: 30px;
	text-align: center;
	font-weight: normal;
	font-size: 15px;
	line-height: 1.5;
}

.gwd-otj-start-date {
	font-size: 15px;
	color: var(--gwd-text-light);
	margin: 20px 0 0 0;
	line-height: 1.5;
}

/* Entry Form Section */
.gwd-otj-entry-section {
	background: white;
	border-radius: 4px;
	padding: 40px;
	margin-bottom: 40px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.gwd-otj-toggle-form {
	display: block;
	width: 100%;
	padding: 15px 20px;
	background: var(--gwd-primary);
	color: white;
	border: 1px solid transparent;
	border-radius: 4px;
	font-size: 17px;
	font-weight: normal;
	cursor: pointer;
	transition: all 0.3s ease;
	line-height: 1.5;
}

.gwd-otj-toggle-form:hover {
	background: var(--gwd-primary-dark);
	box-shadow: 0 2px 8px rgba(0, 115, 170, 0.2);
}

.gwd-otj-toggle-form.active {
	background: var(--gwd-primary-dark);
}

.gwd-otj-entry-form {
	display: none;
	background: var(--gwd-bg-light);
	padding: 30px;
	border-radius: 4px;
	margin-top: 20px;
	border: 1px solid var(--gwd-border);
}

.gwd-otj-entry-form.visible {
	display: block;
	animation: slideDown 0.3s ease;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Form Groups */
.gwd-otj-form-group {
	margin-bottom: 20px;
}

.gwd-otj-form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: normal;
	color: var(--gwd-text);
	font-size: 17px;
	line-height: 1.5;
}

.gwd-otj-form-group input,
.gwd-otj-form-group textarea,
.gwd-otj-form-group select {
	width: 100%;
	padding: 10px 15px;
	border: 1px solid var(--gwd-border);
	border-radius: 0px;
	font-family: inherit;
	font-size: 17px;
	line-height: 1.5;
	box-sizing: border-box;
	background: white;
	transition: all 0.3s ease;
	color: var(--gwd-text);
}

.gwd-otj-form-group input::placeholder,
.gwd-otj-form-group textarea::placeholder {
	color: var(--gwd-text-light);
}

.gwd-otj-form-group input:focus,
.gwd-otj-form-group textarea:focus,
.gwd-otj-form-group select:focus {
	outline: none;
	border-color: var(--gwd-primary);
	box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
	background: white;
}

.gwd-otj-form-group textarea {
	resize: vertical;
	min-height: 100px;
}

.gwd-otj-form-group small {
	display: block;
	margin-top: 5px;
	font-size: 15px;
	color: var(--gwd-text-light);
	line-height: 1.5;
}

.gwd-otj-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.gwd-otj-submit-btn,
.gwd-otj-cancel-btn {
	padding: 10px 20px;
	border: 1px solid transparent;
	border-radius: 0px;
	font-size: 17px;
	font-weight: normal;
	cursor: pointer;
	margin-right: 10px;
	margin-top: 15px;
	transition: all 0.3s ease;
	line-height: 1.5;
	display: inline-block;
}

.gwd-otj-submit-btn {
	background: #55555e;
	color: white;
}

.gwd-otj-submit-btn:hover {
	background: #3d3d45;
}

.gwd-otj-cancel-btn {
	background: #6c757d;
	color: white;
}

.gwd-otj-cancel-btn:hover {
	background: #5a6268;
}

/* Messages */
.gwd-otj-success,
.gwd-otj-error {
	padding: 20px;
	border-radius: 4px;
	margin-bottom: 20px;
	font-size: 15px;
	line-height: 1.5;
	border-left: 5px solid;
}

.gwd-otj-success {
	background: #d4edda;
	border-color: var(--gwd-secondary);
	color: #155724;
}

.gwd-otj-error {
	background: #f8d7da;
	border-color: var(--gwd-error);
	color: #721c24;
}

/* Entries Section */
.gwd-otj-entries-section {
	background: white;
	border-radius: 4px;
	padding: 40px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.gwd-otj-entries-section h3 {
	margin-top: 0;
	margin-bottom: 30px;
	color: var(--gwd-text);
}

.gwd-otj-no-entries {
	text-align: center;
	color: var(--gwd-text-light);
	padding: 50px 20px;
	background: var(--gwd-bg-light);
	border-radius: 4px;
	border: 1px dashed var(--gwd-border);
	font-style: italic;
	font-size: 15px;
	line-height: 1.5;
}

.gwd-otj-entries-list {
	display: grid;
	gap: 20px;
}

.gwd-otj-entry-item {
	background: white;
	border: 1px solid var(--gwd-border);
	border-radius: 4px;
	overflow: hidden;
	transition: all 0.3s ease;
	border-left: 5px solid var(--gwd-primary);
}

.gwd-otj-entry-item:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.gwd-otj-entry-header {
	padding: 15px 20px;
	background: var(--gwd-bg-light);
	border-bottom: 1px solid var(--gwd-border);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
}

.gwd-otj-entry-date-time {
	display: flex;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
}

.gwd-otj-entry-date-time strong {
	font-size: 15px;
	color: var(--gwd-text);
	font-weight: normal;
	line-height: 1.5;
}

.gwd-otj-entry-duration {
	background: var(--gwd-primary);
	color: white;
	padding: 4px 10px;
	border-radius: 3px;
	font-size: 13px;
	font-weight: normal;
	white-space: nowrap;
	line-height: 1.5;
}

.gwd-otj-entry-body {
	padding: 15px 20px;
}

.gwd-otj-entry-body p {
	margin: 0;
	color: var(--gwd-text-light);
	font-size: 15px;
	line-height: 1.5;
}

.gwd-otj-entry-footer {
	padding: 12px 20px;
	background: var(--gwd-bg-light);
	border-top: 1px solid var(--gwd-border);
	text-align: right;
}

.gwd-otj-entry-link {
	color: var(--gwd-primary);
	text-decoration: none;
	font-weight: normal;
	font-size: 13px;
	transition: all 0.3s ease;
	padding: 8px 12px;
	display: inline-block;
	border-radius: 3px;
	line-height: 1.5;
}

.gwd-otj-entry-link:hover {
	text-decoration: underline;
	color: var(--gwd-primary-dark);
}

/* Pagination */
.gwd-otj-pagination {
	display: flex;
	gap: 5px;
	justify-content: center;
	margin-top: 40px;
	flex-wrap: wrap;
}

.gwd-otj-pagination a {
	padding: 8px 12px;
	border: 1px solid var(--gwd-border);
	border-radius: 0px;
	color: var(--gwd-primary);
	text-decoration: none;
	font-weight: normal;
	font-size: 15px;
	transition: all 0.3s ease;
	display: inline-block;
	line-height: 1.5;
}

.gwd-otj-pagination a:hover {
	background: var(--gwd-primary);
	color: white;
	border-color: var(--gwd-primary);
}

.gwd-otj-pagination a.current {
	background: var(--gwd-primary);
	color: white;
	border-color: var(--gwd-primary);
}

/* ============================================================
   ADMIN DASHBOARD STYLES
   ============================================================ */

.gwd-otj-admin-dashboard {
	padding: 20px 0;
}

.gwd-otj-admin-dashboard h1 {
	margin-bottom: 30px;
	color: var(--gwd-text);
}

.gwd-otj-dashboard-controls {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 20px;
	margin-bottom: 30px;
	align-items: start;
}

.gwd-otj-search-box {
	background: white;
	padding: 15px 20px;
	border-radius: 4px;
	border: 1px solid var(--gwd-border);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.gwd-otj-search-box form {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.gwd-otj-search-box input {
	flex: 1;
	min-width: 200px;
	padding: 10px 15px;
	border: 1px solid var(--gwd-border);
	border-radius: 0px;
	font-size: 15px;
	line-height: 1.5;
}

.gwd-otj-dashboard-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.gwd-otj-dashboard-actions .button {
	font-weight: normal;
	font-size: 15px;
	line-height: 1.5;
}

/* Behind Schedule Box */
.gwd-otj-behind-schedule-box {
	background: white;
	border: 1px solid var(--gwd-warning);
	border-left: 5px solid #ff9800;
	padding: 30px;
	border-radius: 4px;
	margin-bottom: 30px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.gwd-otj-behind-schedule-box h2 {
	margin-top: 0;
	margin-bottom: 20px;
	color: #d39e00;
	font-size: 29px;
	font-weight: normal;
}

.gwd-otj-behind-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border-width: 1px 0 0 1px;
	background: white;
	border-radius: 4px;
	overflow: hidden;
}

.gwd-otj-behind-table th,
.gwd-otj-behind-table td {
	border-width: 0 1px 1px 0;
	padding: 8px;
	text-align: left;
	font-size: 15px;
	line-height: 1.5;
}

.gwd-otj-behind-table th {
	font-weight: normal;
	color: var(--gwd-text);
	background: var(--gwd-bg-light);
}

.gwd-otj-behind-table td {
	color: var(--gwd-text-light);
}

.gwd-otj-behind-table tbody tr:hover {
	background: var(--gwd-bg-light);
}

.gwd-otj-behind-table .button-small {
	font-size: 13px;
	padding: 8px 12px;
	height: auto;
	font-weight: normal;
}

/* Apprentices Table */
.gwd-otj-apprentices-table-wrapper {
	background: white;
	border-radius: 4px;
	border: 1px solid var(--gwd-border);
	overflow-x: auto;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.gwd-otj-apprentices-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border-width: 1px 0 0 1px;
	margin: 0;
}

.gwd-otj-apprentices-table th,
.gwd-otj-apprentices-table td {
	border-width: 0 1px 1px 0;
	padding: 8px;
	text-align: left;
	font-size: 15px;
	line-height: 1.5;
}

.gwd-otj-apprentices-table th {
	font-weight: normal;
	color: var(--gwd-text);
	background: var(--gwd-bg-light);
}

.gwd-otj-apprentices-table td {
	color: var(--gwd-text-light);
}

.gwd-otj-apprentices-table th a {
	color: var(--gwd-primary);
	text-decoration: none;
	cursor: pointer;
	transition: color 0.3s ease;
}

.gwd-otj-apprentices-table th a:hover {
	text-decoration: underline;
	color: var(--gwd-primary-dark);
}

.gwd-otj-apprentices-table tbody tr:hover {
	background: var(--gwd-bg-light);
}

.gwd-otj-name-cell {
	font-weight: normal;
}

.gwd-otj-name-cell small {
	display: block;
	color: var(--gwd-text-light);
	font-size: 13px;
	margin-top: 4px;
}

.gwd-otj-hours-cell {
	font-weight: normal;
	color: var(--gwd-primary);
}

.gwd-otj-hours-cell small {
	display: block;
	color: var(--gwd-text-light);
	font-size: 13px;
	margin-top: 4px;
}

.gwd-otj-status-badge {
	display: inline-block;
	padding: 5px;
	border-radius: 0px;
	font-weight: normal;
	font-size: 13px;
}

.gwd-otj-status-completed {
	background: #d4edda;
	color: #155724;
}

.gwd-otj-status-on_track {
	background: #d1ecf1;
	color: #0c5460;
}

.gwd-otj-status-behind {
	background: #f8d7da;
	color: #721c24;
}

.gwd-otj-actions-cell {
	display: flex;
	gap: 5px;
	flex-wrap: wrap;
}

.gwd-otj-actions-cell .button-small {
	font-size: 13px;
	padding: 8px 12px;
	height: auto;
	white-space: nowrap;
	font-weight: normal;
}

.gwd-otj-no-results {
	text-align: center;
	padding: 50px 20px;
	color: var(--gwd-text-light);
	font-style: italic;
	font-size: 15px;
	line-height: 1.5;
}

/* ============================================================
   LOGIN & SIGNUP STYLES
   ============================================================ */

body.gwd-otj-login-page,
body.gwd-otj-signup-page {
	background: linear-gradient(135deg, var(--gwd-primary-light) 0%, #ffffff 100%);
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	line-height: 1.5;
}

.gwd-otj-login-container,
.gwd-otj-signup-container {
	width: 100%;
	max-width: 420px;
	padding: 20px;
	box-sizing: border-box;
}

.gwd-otj-login-box,
.gwd-otj-signup-box {
	background: white;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	padding: 40px;
	border: 1px solid var(--gwd-border);
}

.gwd-otj-login-header,
.gwd-otj-signup-header {
	text-align: center;
	margin-bottom: 30px;
}

.gwd-otj-logo {
	max-width: 100px;
	height: auto;
	display: block;
	margin: 0 auto 20px;
	background: var(--gwd-primary-light);
	padding: 20px;
	border-radius: 4px;
}

.gwd-otj-login-header h1,
.gwd-otj-signup-header h1 {
	margin: 0 0 10px 0;
	font-size: 35px;
	color: var(--gwd-text);
	font-weight: normal;
	line-height: 1.2;
}

.gwd-otj-login-tagline,
.gwd-otj-signup-tagline {
	margin: 0;
	color: var(--gwd-text-light);
	font-size: 13px;
	font-weight: normal;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	line-height: 1.5;
}

.gwd-otj-login-form,
.gwd-otj-signup-form {
	margin: 30px 0;
}

.gwd-otj-login-footer,
.gwd-otj-signup-footer {
	margin-top: 30px;
	text-align: center;
	border-top: 1px solid var(--gwd-border);
	padding-top: 20px;
}

.gwd-otj-login-footer p,
.gwd-otj-signup-footer p {
	margin: 15px 0;
	font-size: 15px;
	line-height: 1.5;
}

.gwd-otj-login-footer a,
.gwd-otj-signup-footer a {
	color: var(--gwd-primary);
	text-decoration: none;
	font-weight: normal;
	transition: color 0.3s ease;
}

.gwd-otj-login-footer a:hover,
.gwd-otj-signup-footer a:hover {
	color: var(--gwd-primary-dark);
	text-decoration: underline;
}

.gwd-otj-errors {
	background: white;
	border: 1px solid var(--gwd-error);
	border-left: 5px solid var(--gwd-error);
	border-radius: 4px;
	padding: 20px;
	margin-bottom: 20px;
}

.gwd-otj-error-message {
	color: var(--gwd-error);
	font-size: 15px;
	margin-bottom: 10px;
	line-height: 1.5;
}

.gwd-otj-error-message:last-child {
	margin-bottom: 0;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 768px) {
	.gwd-otj-dashboard,
	.gwd-otj-admin-dashboard {
		padding: 0;
	}

	.gwd-otj-status-section,
	.gwd-otj-entry-section,
	.gwd-otj-entries-section,
	.gwd-otj-behind-schedule-box {
		padding: 20px;
		margin-bottom: 20px;
	}

	.gwd-otj-progress-main {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.gwd-otj-form-row {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.gwd-otj-dashboard-controls {
		grid-template-columns: 1fr;
	}

	.gwd-otj-dashboard-actions {
		justify-content: flex-start;
	}

	.gwd-otj-hours-number {
		font-size: 35px;
	}

	.gwd-otj-minutes-number {
		font-size: 24px;
	}

	.gwd-otj-entry-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.gwd-otj-entry-date-time {
		width: 100%;
	}

	.gwd-otj-login-box,
	.gwd-otj-signup-box {
		padding: 30px 20px;
	}
}

@media (max-width: 480px) {
	.gwd-otj-login-header h1,
	.gwd-otj-signup-header h1 {
		font-size: 29px;
	}

	.gwd-otj-logo {
		max-width: 80px;
		padding: 15px;
	}

	.gwd-otj-form-group input,
	.gwd-otj-form-group textarea,
	.gwd-otj-search-box input,
	.gwd-otj-submit-btn,
	.gwd-otj-cancel-btn {
		font-size: 16px;
	}

	.gwd-otj-submit-btn,
	.gwd-otj-cancel-btn {
		width: 100%;
		margin-right: 0;
		margin-bottom: 10px;
	}
}
