/**
 * The public-facing stylesheet for the plugin.
 *
 * @package    Wdm_New_Family_Sharing_Dashboard
 * @subpackage Wdm_New_Family_Sharing_Dashboard/public
 * @author     WisdmLabs <info@wisdmlabs.com>
 * @since      1.0.0
 */

.wdm-new-family-sharing-dashboard-public {
	/* Public styles here */
}

/* Family Sharing Dashboard Styles */
.wdm-family-sharing-dashboard {
	margin: 20px 0;
}

.wdm-family-sharing-dashboard .wdm-section-children{
	padding: 0;
}

.wdm-family-sharing-dashboard.wdm-access-message {
	padding: 20px;
	background-color: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.wdm-family-sharing-dashboard .wdm-error-message {
	color: #d63638;
	font-size: 16px;
	font-weight: 600;
	margin: 0;
	padding: 15px;
	background-color: #fcf0f1;
	border-left: 4px solid #d63638;
	border-radius: 4px;
}

/* Dashboard Sections */
.wdm-dashboard-section {
	padding: 20px;
	background-color: #fff;
	border: 1px solid #ddd;
}

.wdm-section-title {
	font-size: 24px;
	font-weight: 600;
	margin: 0 0 20px 0;
	padding-bottom: 15px;
	border-bottom: 2px solid #f0f0f0;
}

/* Children List */
.wdm-children-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.wdm-child-item {
	border: 1px solid #e0e0e0;
	overflow: hidden;
	background-color: #fff;
}

.wdm-child-header {
	width: 100%;
	display: flex;
	align-items: center;
	padding: 20px;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	transition: background-color 0.2s;
}

.wdm-child-header:hover {
	background-color: #f9f9f9;
}

.wdm-child-header:active {
	background-color: #f9f9f9;
	border-radius: 0;
}

.wdm-child-header:focus {
	background-color: #f9f9f9;
	border-radius: 0;
}

.wdm-child-header[aria-expanded="true"] .wdm-chevron-up {
	display: block;
}

.wdm-child-header[aria-expanded="true"] .wdm-chevron-down {
	display: none;
}

.wdm-child-header[aria-expanded="false"] .wdm-chevron-up {
	display: none;
}

.wdm-child-header[aria-expanded="false"] .wdm-chevron-down {
	display: block;
}

.wdm-child-avatar {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	margin-right: 15px;
	object-fit: cover;
}

.wdm-child-info {
	flex: 1;
}

.wdm-child-name {
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 5px 0;
	color: #1d2327;
}

.wdm-child-email {
	font-size: 14px;
	color: #646970;
	margin: 0;
}

.wdm-expand-icon {
	margin-left: auto;
	width: 24px;
	height: 24px;
}

.wdm-expand-icon svg {
	width: 100%;
	height: 100%;
}

.wdm-child-content {
	padding: 0 20px 20px 20px;
	border-top: 1px solid #e0e0e0;
}

.wdm-child-actions {
	display: flex;
	gap: 10px;
	margin: 20px 0 0 0;
	padding: 10px;
	border-bottom: 1px solid #e0e0e0;
	background-color: #e9edf1;
	border-radius: 10px;
}

.wdm-btn {
	padding: 8px 16px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background-color: #f6f7f7;
	color: #2c3338;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s;
}

.wdm-btn:hover {
	background-color: #f0f0f0;
}

.wdm-btn-secondary {
	background-color: #f6f7f7;
	border-color: #ddd;
	border-radius: 10px;
}

.wdm-btn-secondary:hover {
	color: #020202;
}

.wdm-btn-danger {
	background-color: #fff;
	border-color: #d63638;
	color: #020202;
	border-radius: 10px;
}

.wdm-btn-danger:hover {
	background-color: #d63638;
	color: #fff;
}

/* Courses List */
.wdm-courses-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.wdm-course-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 0;
	border-bottom: 1px solid #e0e0e0;
	position: relative;
}

.wdm-course-item .wdm-course-expiration{
	text-align: center;
}

.wdm-course-item:last-child {
	border-bottom: none;
}

.wdm-course-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	width: 50%;
}

.wdm-course-category {
	display: block;
	font-size: 12px;
	color: #646970;
	margin-bottom: 5px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.wdm-course-title {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 8px 0;
	color: #1d2327;
	display: flex;
	align-items: center;
	gap: 10px;
}

.wdm-course-badge {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.wdm-badge-live {
	background-color: #d63638;
	color: #fff;
}

.wdm-course-details {
	font-size: 14px;
	color: #2271b1;
	text-decoration: none;
	display: block;
	margin-top: 4px;
}

.wdm-course-details:hover {
	text-decoration: underline;
}

.wdm-course-info-cell {
	flex: 1;
	min-width: 0;
}

.wdm-course-right-section {
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	gap: 8px;
	flex-shrink: 0;
	width: 55%;
}

.wdm-course-expiration {
	font-size: 14px;
	color: #646970;
	display: block;
	text-align: right;
	white-space: nowrap;
	line-height: 1.5;
	width: 40%;
}

.wdm-course-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: flex-end;
	margin-left: 20px;
	min-width: 150px;
	align-self: center;
}

.wdm-no-children,
.wdm-no-courses {
	color: #646970;
	font-style: italic;
	padding: 20px;
	text-align: center;
}

.wdm-course-hidden {
	display: none;
}

.wdm-show-more-courses {
	text-align: center;
	padding: 20px 0;
	margin-top: 10px;
}

.wdm-show-more-btn {
	background: none;
	border: none;
	color: #2271b1;
	font-size: 14px;
	cursor: pointer;
	text-decoration: underline;
	padding: 0;
	transition: color 0.2s;
}

.wdm-show-more-btn:hover {
	color: #135e96;
	text-decoration: underline;
	background-color: transparent;
}

/* Add Child Section */
.wdm-add-child-form {
	padding: 20px 0;
}

.wdm-add-child-wrapper {
	display: flex;
	align-items: center;
	gap: 20px;
}

.wdm-btn-add-child {
	background-color: #f0f0f0;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	color: #1d2327;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 20px;
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s;
}

.wdm-btn-add-child:hover {
	background-color: #e0e0e0;
	border-color: #b0b0b0;
}

.wdm-seats-info {
	color: #646970;
	font-size: 14px;
}

/* Assign Course Section */
.wdm-assign-course-form {
	padding: 20px 0;
}

/* Modal Styles */
.wdm-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wdm-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.wdm-modal-dialog {
	position: relative;
	background-color: #fff;
	border-radius: 0;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	max-width: 500px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	z-index: 100001;
}

.wdm-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 24px;
	border-bottom: none;
	position: relative;
}

.wdm-modal-title {
	font-size: 20px;
	font-weight: 600;
	margin: 0;
	color: #1d2327;
}

.wdm-modal-close {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	margin: 0;
	color: #1d2327;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.2s;
	position: absolute;
	top: 20px;
	right: 24px;
	width: 24px;
	height: 24px;
}

.wdm-modal-close:hover {
	opacity: 0.7;
}

.wdm-modal-close svg {
	width: 24px;
	height: 24px;
	stroke: #1d2327;
}

.wdm-modal-body {
	padding: 24px;
}

.wdm-form-field {
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 15px;
}

.wdm-form-label {
	min-width: 140px;
	font-size: 14px;
	font-weight: 500;
	color: #1d2327;
	text-align: left;
	flex-shrink: 0;
}

.wdm-form-input {
	flex: 1;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 0;
	font-size: 14px;
	color: #1d2327;
	background-color: #fff;
	min-width: 0;
	display: block;
	width: 100%;
	box-sizing: border-box;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.wdm-form-input[type="text"],
.wdm-form-input[type="email"],
.wdm-form-input[type="password"] {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.wdm-form-input:not([readonly]):not([disabled]) {
	cursor: text;
	pointer-events: auto;
}

#wdm-child-username {
	-webkit-appearance: textfield;
	-moz-appearance: textfield;
	appearance: textfield;
	display: inline-block;
	width: auto;
}

.wdm-form-input:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.wdm-form-input::placeholder {
	color: #999;
}

.wdm-form-text {
	flex: 1;
	padding: 8px 12px;
	font-size: 14px;
	color: #1d2327;
	display: inline-block;
	min-height: 20px;
	line-height: 1.5;
}

.wdm-modal-actions {
	margin-top: 30px;
	margin-bottom: 0;
}

.wdm-btn-primary,
.wdm-btn-save {
	background-color: #2271b1;
	color: #fff;
	border: 1px solid #2271b1;
	padding: 8px 16px;
	font-size: 14px;
	cursor: pointer;
	border-radius: 10px;
	transition: background-color 0.2s, border-color 0.2s;
	display: block;
	margin-left: auto;
	margin-bottom: 0;
	border-bottom: 1px solid #e0e0e0;
}

.wdm-btn-primary:hover,
.wdm-btn-save:hover {
	background-color: #135e96;
	border-color: #135e96;
}

.wdm-btn-unlink {
	background-color: #fff;
	border: 1px solid #d63638;
	color: #000000;
	padding: 8px 16px;
	font-size: 14px;
	cursor: pointer;
	border-radius: 10px;
	transition: background-color 0.2s, color 0.2s;
	display: block;
	margin-top: 15px;
}

.wdm-btn-unlink:hover {
	background-color: #d63638;
	color: #fff;
}

/* Notification Styles */
.wdm-notification {
	position: fixed;
	top: 20px;
	right: 20px;
	background-color: #fff;
	border-left: 4px solid #2271b1;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
	padding: 12px 40px 12px 16px;
	border-radius: 4px;
	min-width: 300px;
	max-width: 500px;
	z-index: 100002;
	opacity: 0;
	transform: translateX( 400px );
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.wdm-notification-show {
	opacity: 1;
	transform: translateX( 0 );
}

.wdm-notification-success {
	border-left-color: #00a32a;
}

.wdm-notification-error {
	border-left-color: #d63638;
}

.wdm-notification-info {
	border-left-color: #2271b1;
}

.wdm-notification-message {
	display: block;
	font-size: 14px;
	color: #1d2327;
	line-height: 1.5;
}

.wdm-notification-close {
	position: absolute;
	top: 8px;
	right: 8px;
	background: none;
	border: none;
	font-size: 20px;
	line-height: 1;
	color: #646970;
	cursor: pointer;
	padding: 4px;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s;
}

.wdm-notification-close:hover {
	color: #1d2327;
}

/* Unlink Confirmation Modal Styles */
.wdm-unlink-modal-dialog {
	max-width: 500px;
}

.wdm-unlink-modal-dialog .wdm-modal-header {
	border-bottom: none;
	padding: 24px 24px 0 24px;
	position: relative;
}

.wdm-unlink-modal-dialog .wdm-modal-title {
	font-size: 24px;
	font-weight: 600;
	margin: 0 0 20px 0;
	padding-right: 40px;
	color: #1d2327;
}

.wdm-unlink-modal-dialog .wdm-modal-close {
	position: absolute;
	top: 24px;
	right: 24px;
	width: 32px;
	height: 32px;
	padding: 0;
	background: #000;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	cursor: pointer;
	transition: opacity 0.2s;
}

.wdm-unlink-modal-dialog .wdm-modal-close:hover {
	opacity: 0.8;
}

.wdm-unlink-modal-dialog .wdm-modal-close svg {
	width: 16px;
	height: 16px;
}

.wdm-unlink-modal-dialog .wdm-modal-close svg circle {
	fill: #000;
}

.wdm-unlink-modal-dialog .wdm-modal-close svg path {
	stroke: #fff;
}

.wdm-unlink-modal-dialog .wdm-modal-body {
	padding: 0 24px 24px 24px;
}

.wdm-unlink-message {
	font-size: 16px;
	color: #1d2327;
	line-height: 1.6;
	margin: 0 0 30px 0;
	padding: 0;
}

.wdm-unlink-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 0;
}

.wdm-btn-confirm {
	background-color: #1d2327;
	color: #fff;
	border: 1px solid #1d2327;
	padding: 12px 24px;
	font-size: 14px;
	cursor: pointer;
	border-radius: 6px;
	transition: background-color 0.2s, border-color 0.2s;
	font-weight: 500;
}

.wdm-btn-confirm:hover {
	background-color: #2c3338;
	border-color: #2c3338;
}

.wdm-btn-confirm:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Add Child Modal Styles */
.wdm-form-field-help {
	margin-bottom: 10px;
}

.wdm-help-text {
	font-size: 14px;
	color: #646970;
	line-height: 1.5;
	margin: 0;
	padding: 0;
}

.wdm-help-link {
	color: #2271b1;
	text-decoration: underline;
}

.wdm-help-link:hover {
	color: #135e96;
}

.wdm-modal-actions-right {
	display: flex;
	justify-content: flex-end;
	margin-top: 30px;
}

.wdm-btn-add-child-submit {
	background-color: #2271b1;
	color: #fff;
	border: 1px solid #2271b1;
	padding: 10px 20px;
	font-size: 14px;
	cursor: pointer;
	border-radius: 0;
	transition: background-color 0.2s, border-color 0.2s;
	font-weight: 500;
}

.wdm-btn-add-child-submit:hover {
	background-color: #135e96;
	border-color: #135e96;
}

.wdm-btn-add-child-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Add Child Modal Styles */
#wdm-add-child-modal .wdm-modal-header {
	border-bottom: none;
	padding: 24px 24px 0 24px;
	position: relative;
}

#wdm-add-child-modal .wdm-modal-title {
	font-size: 20px;
	font-weight: 600;
	margin: 0;
	padding-right: 40px;
	color: #1d2327;
}

#wdm-add-child-modal .wdm-modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 32px;
	height: 32px;
	padding: 0;
	background: #000;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	cursor: pointer;
	transition: opacity 0.2s;
}

#wdm-add-child-modal .wdm-modal-close:hover {
	opacity: 0.8;
}

#wdm-add-child-modal .wdm-modal-close svg {
	width: 16px;
	height: 16px;
}

#wdm-add-child-modal .wdm-modal-close svg circle {
	fill: #000;
}

#wdm-add-child-modal .wdm-modal-close svg path {
	stroke: #fff;
}

#wdm-add-child-modal .wdm-modal-body {
	padding: 24px;
}

/* Checkbox Styles */
.wdm-form-field-checkbox {
	display: block;
}

.wdm-form-field-checkbox .wdm-form-label {
	display: none;
}

.wdm-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 14px;
	color: #1d2327;
	width: 100%;
}

.wdm-checkbox-input {
	width: 18px;
	height: 18px;
	cursor: pointer;
	margin: 0;
	flex-shrink: 0;
}



/* Help text field full width */
.wdm-form-field-help {
	display: block;
}

.wdm-form-field-help .wdm-form-label {
	display: none;
}

.wdm-form-field-help .wdm-help-text {
	width: 100%;
}

/* Course Selection Section */

.wdm-course-search-wrapper {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 30px;
}

.wdm-search-label {
	font-weight: 700;
	font-size: 14px;
	margin: 0;
	white-space: nowrap;
	color: #000;
}

.wdm-search-input-wrapper {
	display: flex;
	align-items: center;
	flex: 1;
	max-width: 600px;
	position: relative;
	gap: 10px;
}

.wdm-course-search-input {
	flex: 1;
	padding: 12px 60px 12px 15px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
	width: 100%;
	background: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.2s;
}

.wdm-course-search-input:focus {
	outline: none;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.wdm-search-btn {
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: background-color 0.2s;
	box-shadow: 0 2px 4px rgba(0, 115, 170, 0.3);
}

.wdm-search-btn:hover {
	background: #005a87;
	box-shadow: 0 2px 6px rgba(0, 115, 170, 0.4);
}

.wdm-search-btn:active {
	transform: scale(0.95);
}

.wdm-search-btn svg {
	width: 20px;
	height: 20px;
}

/* Category Filters */
.wdm-course-categories-wrapper {
	position: relative;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.wdm-course-categories {
	display: flex;
	align-items: center;
	gap: 15px;
	overflow-x: auto;
	padding: 0;
	position: relative;
	scroll-behavior: smooth;
	flex: 1;
}

.wdm-course-categories::-webkit-scrollbar {
	display: none;
}

.wdm-course-categories {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.wdm-category-btn {
	padding: 10px 20px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
	color: #333;
	font-size: 16px;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.2s;
	display: flex;
	flex-direction: column;
	align-items: start;
	gap: 5px;
}

.wdm-category-btn:hover {
	background: #0073aa;
	color: #fff;
	border-color: #0073aa;
}

.wdm-category-btn.wdm-category-active {
	background: #0073aa;
	color: #fff;
	border-color: #0073aa;
}

.wdm-category-count {
	font-size: 12px;
	opacity: 0.8;
}

.wdm-course-categories-wrapper .wdm-category-nav {
	position: relative;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 50%;
	width: 40px !important;
	min-width: 40px !important;
	max-width: 40px !important;
	height: 40px !important;
	min-height: 40px !important;
	max-height: 40px !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	transition: all 0.2s;
	flex-shrink: 0 !important;
	flex-grow: 0 !important;
	flex-basis: 40px !important;
	padding: 0 !important;
	margin: 0 !important;
	box-sizing: border-box !important;
	overflow: visible;
	line-height: 1 !important;
	font-size: 0 !important;
}

.wdm-category-nav:hover {
	background: #f5f5f5;
	box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.wdm-category-nav:active {
	transform: scale(0.95);
}

.wdm-category-nav svg {
	width: 20px;
	height: 20px;
	color: #333;
}

.wdm-category-nav:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

/* Action Bar */
.wdm-course-action-bar {
	background: #f5f5f5;
	padding: 15px 20px;
	margin-bottom: 20px;
	border-radius: 4px;
	display: flex;
	justify-content: flex-end;
}

.wdm-action-bar-right {
	display: flex;
	align-items: center;
	gap: 15px;
}

.wdm-assign-to-select {
	padding: 8px 30px 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	background: #fff;
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	padding-right: 35px;
}

.wdm-assign-courses-btn {
	padding: 8px 20px;
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.2s;
}

.wdm-assign-courses-btn:hover {
	background: #005a87;
}

.wdm-assign-courses-btn:disabled {
	background: #ccc;
	cursor: not-allowed;
}

/* Course List */
.wdm-courses-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.wdm-course-row {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
	transition: all 0.2s;
}

.wdm-course-row:hover {
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wdm-course-row.wdm-course-hidden {
	display: none;
}

.wdm-course-row-content {
	flex: 1;
	display: flex;
	justify-content: space-between;
	gap: 20px;
}

.wdm-course-main-info {
	flex: 1;
}

.wdm-course-grade-subject {
	font-size: 12px;
	color: #666;
	margin: 0 0 8px 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.wdm-course-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 8px 0;
	color: #333;
	display: flex;
	align-items: center;
	gap: 10px;
}

.wdm-course-schedule {
	font-size: 14px;
	color: #666;
	margin: 0 0 8px 0;
}

.wdm-course-details-link {
	font-size: 14px;
	color: #0073aa;
	text-decoration: none;
}

.wdm-course-details-link:hover {
	text-decoration: underline;
}

.wdm-course-meta-info {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-end;
	text-align: right;
	min-width: 200px;
}

.wdm-course-expiration {
	font-size: 14px;
	color: #666;
	margin: 0;
}

.wdm-course-seats {
	font-size: 14px;
	color: #666;
	margin: 0;
}

.wdm-course-checkbox {
	display: flex;
	align-items: flex-start;
	padding-top: 2px;
}

.wdm-course-select-checkbox {
	width: 20px;
	height: 20px;
	cursor: pointer;
	accent-color: #0073aa;
}

.wdm-no-courses {
	text-align: center;
	padding: 40px 20px;
	color: #666;
	font-size: 16px;
}

/* Course Loading State */
.wdm-courses-loading {
	text-align: center;
	padding: 40px 20px;
	color: #666;
	font-size: 16px;
}

.wdm-courses-content {
	min-height: 200px;
}

/* Pagination */
.wdm-course-pagination-wrapper {
	margin-top: 30px;
	padding: 20px 0;
	border-top: 1px solid #e0e0e0;
}

.wdm-course-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

.wdm-pagination-btn {
	padding: 8px 16px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
	color: #333;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s;
}

.wdm-pagination-btn:hover:not(.disabled):not(:disabled) {
	background: #f5f5f5;
	border-color: #0073aa;
	color: #0073aa;
}

.wdm-pagination-btn.disabled,
.wdm-pagination-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

.wdm-pagination-pages {
	display: flex;
	align-items: center;
	gap: 5px;
}

.wdm-pagination-page {
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
	color: #333;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wdm-pagination-page:hover {
	background: #f5f5f5;
	border-color: #0073aa;
	color: #0073aa;
}

.wdm-pagination-page.active {
	background: #0073aa;
	border-color: #0073aa;
	color: #fff;
	cursor: default;
}

.wdm-pagination-dots {
	padding: 0 5px;
	color: #666;
	font-size: 14px;
}

/* DataTables Styling */
.wdm-courses-table-wrapper {
	margin-top: 20px;
	position: relative;
	min-height: 200px;
}

.wdm-courses-datatable {
	width: 100% !important;
	border-collapse: collapse;
	border: none;
}

.wdm-courses-datatable thead {
	display: none;
}

.wdm-courses-datatable thead th {
	background-color: #f5f5f5;
	border: none;
	border-bottom: 2px solid #ddd;
	padding: 12px;
	text-align: left;
	font-weight: 600;
	color: #333;
}

.wdm-courses-datatable tbody td {
	padding: 12px;
	border: none;
	border-bottom: 1px solid #e0e0e0;
	vertical-align: top;
}

.wdm-courses-datatable tbody tr {
	border: none;
}

.wdm-courses-datatable tbody tr:last-child td {
	border-bottom: none;
}

.wdm-course-row-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	width: 100%;
}


.wdm-seats-checkbox-header {
	text-align: center;
}

.wdm-seats-checkbox-header input[type="checkbox"] {
	width: 20px;
	height: 20px;
	cursor: pointer;
	accent-color: #0073aa;
}

.wdm-seats-checkbox-cell {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 15px;
	width: 100%;
}

.wdm-seats-checkbox-cell .wdm-seats-text {
	font-size: 14px;
	color: #666;
	flex: 1;
	text-align: right;
}

.wdm-seats-checkbox-cell .wdm-course-select-checkbox {
	width: 20px;
	height: 20px;
	cursor: pointer;
	accent-color: #0073aa;
	flex-shrink: 0;
}

/* DataTables Processing Overlay */
.dataTables_processing {
	position: absolute !important;
	top: 50% !important;
	left: 0 !important;
	width: 100% !important;
	margin: 0 !important;
	margin-top: -20px !important;
	padding: 20px !important;
	text-align: center !important;
	font-size: 14px !important;
	color: #333 !important;
	z-index: 1000 !important;
	background-color: rgba(255, 255, 255, 0.95) !important;
	background: linear-gradient(to right, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.95) 25%, rgba(255, 255, 255, 0.95) 75%, rgba(255, 255, 255, 0.8) 100%) !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
	border-radius: 4px !important;
	transform: translateY(-50%) !important;
}

/* DataTables Pagination */
.dataTables_wrapper {
	text-align: center;
}

.dataTables_wrapper .dataTables_paginate {
	margin-top: 20px;
	text-align: center !important;
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	gap: 8px;
	width: 100%;
	float: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
	padding: 0;
	margin: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	color: #999;
	cursor: pointer;
	transition: color 0.2s;
	font-size: 14px;
	min-width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
	background: transparent;
	border: none;
	color: #333;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
	background: transparent;
	border: none;
	color: #000;
	font-weight: 600;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
	color: #ccc;
	cursor: not-allowed;
	pointer-events: none;
	opacity: 1;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next {
	color: #000;
	font-weight: normal;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.next.disabled {
	color: #ccc;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous a,
.dataTables_wrapper .dataTables_paginate .paginate_button.next a,
.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next {
	font-size: 0;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous::before {
	content: '<';
	font-size: 14px;
	color: inherit;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.next::before {
	content: '>';
	font-size: 14px;
	color: inherit;
}

/* DataTables Length Menu */
.dataTables_wrapper .dataTables_length {
	margin-bottom: 15px;
}

.dataTables_wrapper .dataTables_length select {
	padding: 5px 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	margin: 0 5px;
}

/* DataTables Info */
.dataTables_wrapper .dataTables_info {
	display: none;
}

/* Combined Course Info Cell */
.wdm-course-info-cell {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
	width: 45%;
	align-items: flex-start;
}

.wdm-course-info-cell .wdm-course-grade-subject {
	font-size: 12px;
	color: #666;
	line-height: 1.4;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.wdm-course-info-cell .wdm-course-title {
	font-size: 18px;
	font-weight: 600;
	color: #1d2327;
	line-height: 1.4;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.wdm-course-info-cell .wdm-course-schedule {
	font-size: 14px;
	color: #646970;
	line-height: 1.4;
	margin: 4px 0 0 0;
}

.wdm-course-info-cell .wdm-course-title .wdm-course-badge {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.wdm-course-info-cell .wdm-course-details-wrapper {
	margin-top: 4px;
}

.wdm-course-info-cell .wdm-course-details-link {
	font-size: 14px;
	color: #2271b1;
	text-decoration: none;
	display: inline-block;
}

.wdm-course-info-cell .wdm-course-details-link:hover {
	text-decoration: underline;
}

