.cg-attendees-table th { background:#f3f3f3; text-align:left; }
.cg-attendees-table td, .cg-attendees-table th { padding:8px; border:1px solid #ddd; }
#cg-course-attendees-inner-wrapper{display:flex;gap:20px;align-items: center;}

/* Instructor Stats General Container */
.instructor-stats-container {
    border: 1px solid #ddd;
    padding: 20px;
    background-color: #f9f9f9;
    margin-bottom: 20px;
}
.instructor-stats-container h2 {
    margin-top: 0;
}
#instructor-course-selector {
    min-width: 300px;
    padding: 8px;
    margin-bottom: 20px;
}
#quiz-stats-results-container {
    overflow-x: auto;
}

/* Loading Spinner */
.loading-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Table Styling (mimics WP admin) */
.wp-list-table {
    border-collapse: collapse;
    width: 100%;
}
.wp-list-table th,
.wp-list-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}
.wp-list-table thead th {
    background-color: #f1f1f1;
    font-weight: bold;
}
.wp-list-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Modal Styling */
.quiz-stats-modal-overlay {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.quiz-stats-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 900px;
    position: relative;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.quiz-stats-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 25px;
}

.quiz-stats-modal-close:hover,
.quiz-stats-modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
#quiz-stats-modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Instructor Dashboard Styles v2 */
.instructor-dashboard-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ccd0d4;
    background-color: #f6f7f7;
    border-radius: 4px;
}

.instructor-dashboard-wrapper h2 {
    margin-top: 0;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.iwd-control-group {
    margin-bottom: 20px;
}

.iwd-control-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

#iwd-course-selector {
    width: 100%;
    max-width: 500px;
    padding: 8px;
}

#iwd-links-editor-container {
    padding: 20px;
    border: 1px dashed #ccd0d4;
    background-color: #fff;
    min-height: 100px;
    position: relative;
}

.iwd-initial-message {
    color: #777;
    text-align: center;
    margin-top: 15px;
}

.iwd-links-repeater .iwd-link-input-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.iwd-links-repeater .webinar_link {
    flex-grow: 1;
    padding: 8px;
}

.iwd-links-repeater .remove-link-btn {
    background-color: #f8f9f9;
    border-color: #dcdcde;
    color: #dc3232;
}

.iwd-links-repeater .remove-link-btn:hover {
    background-color: #f0f0f1;
    border-color: #b7b7b7;
}

.iwd-editor-controls {
    margin-top: 20px;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Spinner Styles */
.iwd-spinner {
    background: url(/wp-admin/images/spinner.gif) no-repeat;
    background-size: 20px 20px;
    display: none;
    width: 20px;
    height: 20px;
    vertical-align: middle;
}
.iwd-spinner.is-active {
    display: inline-block;
}
#iwd-links-editor-container .iwd-spinner {
    margin: 20px auto 0;
    display: block;
}

.iwd-save-status {
    font-weight: bold;
}
.iwd-save-status.success { color: #46b450; }
.iwd-save-status.error { color: #dc3232; }
.iwd-error { color: #dc3232; }