/* * BestECMM Modern UI Stylesheet
 * Optimized for a fresh, clean, and professional appearance.
 */

:root {
    --bestecmm-radius: 8px; /* This will be overridden by your JS/Settings */
    --bestecmm-primary: #0073aa;
    --bestecmm-secondary: #005177;
    --bestecmm-bg-light: #f8fafc;
    --bestecmm-border: #e2e8f0;
    --bestecmm-text: #1e293b;
    --bestecmm-text-light: #64748b;
    --bestecmm-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Global Reset & Typography */
.bestecmm-enrollment-wrapper, 
.bestecmm-header-dashboard, 
.bestecmm-user-settings-wrapper,
.bestecmm-lesson-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--bestecmm-text);
    line-height: 1.6;
}

/* Course Cards Grid */
.bestecmm-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.bestecmm-course-card {
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--bestecmm-border) !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bestecmm-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Progress Dashboard Styling */
.bestecmm-header-dashboard {
    background: #ffffff !important;
    border: none !important;
    box-shadow: var(--bestecmm-shadow) !important;
}

.bestecmm-header-dashboard h2 {
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Lesson Content & Media */
.bestecmm-lesson-container {
    background: #ffffff;
    border: 1px solid var(--bestecmm-border) !important;
    box-shadow: var(--bestecmm-shadow);
}

.bestecmm-lesson-container iframe, 
.bestecmm-lesson-container embed {
    border-radius: var(--bestecmm-radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Gamification Action Buttons */
.bestecmm-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bestecmm-action-btn:hover {
    transform: scale(1.2);
}

/* Inputs & Forms */
input[type="text"], 
input[type="email"], 
input[type="password"], 
select, 
textarea {
    border: 1px solid var(--bestecmm-border);
    padding: 10px 12px;
    border-radius: var(--bestecmm-radius);
    background-color: #ffffff;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--bestecmm-primary);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Admin Specific Overrides */
.bestecmm-query-results table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.bestecmm-query-results th {
    background: var(--bestecmm-bg-light);
    color: var(--bestecmm-text-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 12px;
    border-bottom: 2px solid var(--bestecmm-border);
}

.bestecmm-query-results td {
    padding: 12px;
    border-bottom: 1px solid var(--bestecmm-border);
}