:root {
    --font-family-base: system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Noto Sans, Liberation Sans, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
}

/* learner summary report */
.ld-report-container {
    display: flex;
	flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
	gap: 20px;
    margin-bottom: 20px;
    width: 90%;
}

.ld-report-container .chart-box {
	width: 100%;
	max-width: none;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 10px;
	padding-left: 2px !important;
	box-sizing: border-box;
}

.ld-report-container .chart-box canvas {
	display: block;          
	width: 100% !important;   
	height: 120px !important;
}

#myLearningTable a,
#learnerDetailTable a {
    color: var(--accent);
}

#myLearningTable a:hover,
#learnerDetailTable a:hover {
    text-decoration: underline;
}

#myLearningTable a:focus,
#learnerDetailTable a:focus {
    outline-width: 0px !important;
}

.course-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-card {
	flex: 1 1 200px !important;
	text-align: center;
	background: #fff;
	border-radius: 6px;
	padding: 15px;
	border: 1px solid #ddd;
}

.stat-card h3 {
	font-family: var(--font-family-base);
	font-size: 1.875rem !important;
	font-weight: 500;
	margin: 0;
	color: var(--body-color) !important;
  
}

.stat-card p {
	margin: 8px 0 0;
	font-family: var(--font-family-base);
	font-size: .975rem !important;
	font-weight: 400;
	color: var(--body-color) !important;
}

/* learner detail report */
.ld-report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    font-family: var(--font-family-base);
}

#learnerSummaryTable tbody tr td,
#lms-courses-table tbody tr td {
    font-family: var(--font-family-base);
    font-weight: 400;
    color: #212529;
}

.user-email {
    color: #5ca095;
    font-size: .875em;
    font-family: var(--font-family-base);
}
.ld-report-table th, .ld-report-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

/*
.ld-report-table th {
    background-color: #0073aa;
    color: white;
    font-weight: bold;
}
*/

/* Set table header background color */
.ld-report-table th {
    background-color: #f8f9fa;
    color: #212529;
    font-weight: 500;
}

/* Set alternating row colors */
.ld-report-table tbody tr:nth-child(odd) {
    background-color: #f7f8f8;
}

.ld-report-table tbody tr:nth-child(even) {
    background-color: #ffffff;
}

a:where(:not(.wp-element-button)) {
    text-decoration: none;
}

.dataTables_wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 10px;
    padding: 10px;
    margin-top: 10px;
}
.dataTables_length {
    float: right;
    display: none;
}

.datatable-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    padding: 12px;
    border: 1px solid #dee2e6;
    flex-direction: row-reverse;
    width: 100%;
}

.dataTables_info {
    font-size: 14px;
    font-family: var(--font-family-base);
    font-weight: 400;
    color: #212529;
}

.dataTables_paginate {
    gap: 5px;
    font-size: 14px;
}

.dataTables_paginate .paginate_button {
    padding: 6px 12px;
    margin: 0 2px;
    background-color: #f8f8f8;
    cursor: pointer;
}

.dataTables_paginate .paginate_button.current {
    font-weight: bold;
    background-color: var(--accent, #0073aa);
    color: white;
}

.dataTables_filter {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    width: 450px;
}

.dataTables_filter input {
    width: 100%;
    padding: 10px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: .3rem;
    outline: none;
    transition: all 0.3s ease-in-out;
    padding-left: 40px; /* Space for the icon */
    line-height: 1.4;
    height: 46px;
}

.dataTables_filter input::placeholder {
    color: #888;
}

.dataTables_filter input:focus {
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.5);
}

.dataTables_filter .search-icon {
    position: absolute;
    left: 12px;
    font-size: 18px;
    color: #888;
}

/* Dropdown styling */
.learner-selection-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--font-family-base);
    padding-bottom: 50px;
}

/* Dropdown styling */
.styled-dropdown {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease-in-out;
}

/* Focus effect */
.styled-dropdown:focus {
    border-color: #005d88;
}

/* Button styling */
.styled-button {
    padding: 10px 15px;
    /*font-size: 16px;*/
    font-size: .9375rem;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.styled-button:hover {
    background-color: #005d88;
}

table.dataTable thead th {
    font-weight: 500 !important;
    border-bottom: 1px solid #dee2e6 !important;
}

.dataTables_filter input:focus {
    border-color: hsl(188, 71%,calc(42% + 25%)) !important;
    box-shadow: none !important;
}

.datatable-filters-row {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    width: 75%;
}

.datatable-filters-row .dataTables_filter {
    margin-bottom: 0px;
}

#progress-filter-form .choices {
    width: 450px !important;
    box-sizing: border-box;
    margin-bottom: 0px;
}

#progress-filter-form .choices__inner {
    background: #fff;
    width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
    padding-right: 2.5rem;
    padding-bottom: 0px !important;
    border-radius: .375rem;
    height: 46px;
}

#progress-filter-form .choices__list--single {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#progress-filter-form .choices__input {
    background-color: transparent !important;
}

#progress-filter-form .choices__list--dropdown {
    width: 100% !important;
    box-sizing: border-box;
}

.choices__list--multiple:has(.choices__item) + .choices__input--cloned::placeholder {
    opacity: 0 !important;
}

.choices__list--multiple:not(:empty) + input { 
    min-width: 0 !important; 
}

.choices-init-hidden {
    visibility: hidden;
}

