/* Student Statistics Block - Professional Styling - Scoped to this plugin only */

.block_student_statistics .student-stat-container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin: 0;
    padding: 0;
    font-family: inherit;
}

.block_student_statistics .stat-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: white;
    border-radius: 8px 8px 0 0;
    position: relative;
    overflow: hidden;
}

.block_student_statistics .stat-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQgc2xpY2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIwLDAgTDgwLDEwMCBMMCwxMDAiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4xKSI+PC9wYXRoPjxwYXRoIGQ9Ik03MCwwIEwxMDAsMTAwIEwwLDEwMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjA1KSI+PC9wYXRoPjwvc3ZnPg==');
    background-size: cover;
    opacity: 0.4;
    z-index: 0;
}

.block_student_statistics .stat-avatar {
    margin-right: 15px;
    position: relative;
    z-index: 1;
}

.block_student_statistics .stat-avatar img {
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.block_student_statistics .stat-avatar img:hover {
    transform: scale(1.05);
    border-color: #ffffff;
}

.block_student_statistics .stat-user-info {
    position: relative;
    z-index: 1;
}

.block_student_statistics .stat-user-info h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.block_student_statistics .stat-role {
    margin: 3px 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.block_student_statistics .stat-last-active {
    font-size: 0.75rem;
    margin: 5px 0 0;
    opacity: 0.8;
}

/* Summary Cards */
.block_student_statistics .stat-summary-cards {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
}

.block_student_statistics .stat-card {
    flex: 1;
    min-width: 30%;
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 15px;
    margin: 0 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.block_student_statistics .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: rgba(78, 115, 223, 0.15);
}

.block_student_statistics .stat-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-right: 12px;
    color: white;
    font-size: 20px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.block_student_statistics .course-icon {
    background: linear-gradient(135deg, #4e73df 0%, #3a58c7 100%);
}

.block_student_statistics .activity-icon {
    background: linear-gradient(135deg, #1cc88a 0%, #13a673 100%);
}

.block_student_statistics .quiz-icon {
    background: linear-gradient(135deg, #f6c23e 0%, #e5a11d 100%);
}

.block_student_statistics .stat-card-info {
    display: flex;
    flex-direction: column;
}

.block_student_statistics .stat-card-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3a3b45;
    line-height: 1;
}

.block_student_statistics .stat-card-label {
    font-size: 0.85rem;
    color: #858796;
    margin-top: 3px;
    font-weight: 500;
}

/* Progress Section */
.block_student_statistics .stat-progress-section {
    padding: 20px;
    border-bottom: 1px solid #e3e6f0;
}

.block_student_statistics .stat-progress-section h4 {
    margin: 0 0 15px;
    color: #4e73df;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.block_student_statistics .stat-progress-container {
    height: 12px;
    background-color: #eaecf4;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.block_student_statistics .stat-progress-bar {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, #1cc88a 0%, #36b9cc 100%);
    border-radius: 20px;
    transition: width 1s cubic-bezier(0.65, 0, 0.35, 1);
}

.block_student_statistics .stat-progress-details {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #858796;
}

.block_student_statistics .stat-completed {
    color: #1cc88a;
    font-weight: 600;
}

.block_student_statistics .stat-total {
    color: #858796;
}

/* Course Section */
.block_student_statistics .stat-course-section {
    padding: 20px;
}

.block_student_statistics .stat-course-section h4 {
    margin: 0 0 15px;
    color: #4e73df;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 2px solid #f8f9fc;
    padding-bottom: 8px;
}

.block_student_statistics .stat-course-list {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 5px;
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #4e73df #f8f9fc;
}

.block_student_statistics .stat-course-list::-webkit-scrollbar {
    width: 6px;
}

.block_student_statistics .stat-course-list::-webkit-scrollbar-track {
    background: #f8f9fc;
}

.block_student_statistics .stat-course-list::-webkit-scrollbar-thumb {
    background-color: #4e73df;
    border-radius: 6px;
}

.block_student_statistics .stat-course-item {
    background-color: #ffffff;
    border-radius: 10px;
    margin-bottom: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    border-left: 4px solid #4e73df;
    transition: all 0.2s ease;
    padding: 12px;
}

.block_student_statistics .stat-course-item:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.block_student_statistics .stat-course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.block_student_statistics .stat-course-title {
    font-weight: 600;
    color: #4e73df;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 80%;
}

.block_student_statistics .stat-course-title:hover {
    color: #2e59d9;
    text-decoration: underline;
}

.block_student_statistics .stat-course-percent {
    font-weight: 700;
    color: #1cc88a;
    background: rgba(28, 200, 138, 0.1);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.block_student_statistics .stat-course-progress-container {
    height: 8px;
    background-color: #eaecf4;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.block_student_statistics .stat-course-progress {
    height: 100%;
    background: linear-gradient(90deg, #4e73df 0%, #224abe 100%);
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.block_student_statistics .stat-course-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #858796;
}

/* Button for detailed report */
.block_student_statistics .stat-view-report {
    text-align: center;
    margin-top: 15px;
}

.block_student_statistics .stat-btn {
    display: inline-block;
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.block_student_statistics .stat-btn:hover {
    background: linear-gradient(135deg, #3a58c7 0%, #1a3a9f 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

/* Footer */
.block_student_statistics .stat-footer {
    padding: 12px 20px;
    background-color: #f8f9fc;
    border-top: 1px solid #e3e6f0;
    color: #858796;
    font-size: 0.75rem;
    text-align: center;
    border-radius: 0 0 8px 8px;
}

/* RT
