/* style.css - Place this in the same folder as the main plugin file */

.sce-container {
    max-width: 1200px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.sce-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 2px solid #0073aa;
}

.sce-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: #1d2327;
}

.sce-timer {
    font-size: 1.3em;
    font-weight: 600;
    color: #d63638;
    background: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.sce-main {
    display: flex;
    padding: 20px;
    gap: 30px;
}

.sce-style1 .sce-main {
    flex-direction: row;
}

.sce-style2 .sce-main {
    flex-direction: column;
}

.sce-media-panel {
    flex: 1;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sce-media-panel img,
.sce-media-panel video {
    border-radius: 4px;
}

.sce-story-text {
    max-height: 500px;
    overflow-y: auto;
    padding: 15px;
    background: #fff;
    border-radius: 4px;
    line-height: 1.8;
}

.sce-questions-panel {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    max-height: 600px;
    overflow-y: auto;
}

.sce-question {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #0073aa;
}

.sce-question p {
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 500;
}

.sce-option {
    display: block;
    margin: 6px 0;
    padding: 6px 12px;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.sce-option:hover {
    background: #e9ecef;
}

.sce-option input[type="radio"] {
    margin-right: 10px;
}

.sce-question input[type="text"],
.sce-question textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.sce-question textarea {
    resize: vertical;
}

.sce-submit-btn {
    background: #0073aa;
    color: #fff;
    padding: 12px 36px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.sce-submit-btn:hover {
    background: #005a87;
}

.sce-result {
    background: #f8f9fa;
    padding: 30px;
    margin: 20px auto;
    max-width: 600px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sce-result h3 {
    font-size: 2em;
    margin: 0 0 10px 0;
}

.sce-error {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
    border-left: 4px solid #dc3545;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sce-style1 .sce-main {
        flex-direction: column;
    }
    
    .sce-questions-panel {
        max-height: none;
    }
    
    .sce-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 15px;
    }
    
    .sce-timer {
        font-size: 1em;
    }
    
    .sce-main {
        padding: 10px;
        gap: 15px;
    }
}

/* style.css - Add these styles for the dashboard */

.sce-dashboard {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.sce-dashboard h2 {
    margin-top: 0;
    color: #1d2327;
}

.sce-exercise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.sce-exercise-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.sce-exercise-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sce-exercise-card.passed {
    border-left: 4px solid #28a745;
}

.sce-exercise-card.attempted {
    border-left: 4px solid #ffc107;
}

.sce-exercise-card.not-started {
    border-left: 4px solid #0073aa;
}

.sce-exercise-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.sce-exercise-header h3 {
    margin: 0;
    font-size: 1.1em;
    color: #1d2327;
}

.sce-score-badge {
    background: #28a745;
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    white-space: nowrap;
}

.sce-exercise-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.9em;
    color: #6c757d;
    margin: 10px 0;
}

.sce-exercise-meta .sce-status {
    font-weight: 500;
}

.sce-exercise-card.passed .sce-status {
    color: #28a745;
}

.sce-exercise-card.attempted .sce-status {
    color: #ffc107;
}

.sce-exercise-card.not-started .sce-status {
    color: #0073aa;
}

.sce-start-btn {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
    margin-top: 10px;
}

.sce-start-btn:hover {
    background: #005a87;
    color: #fff;
    text-decoration: none;
}

.sce-exercise-card.passed .sce-start-btn {
    background: #28a745;
}

.sce-exercise-card.passed .sce-start-btn:hover {
    background: #1e7e34;
}

/* Existing styles remain unchanged */
.sce-container { max-width: 1200px; margin: 20px auto; background: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); overflow: hidden; }
.sce-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 30px; background: #f8f9fa; border-bottom: 2px solid #0073aa; }
.sce-header h2 { margin: 0; font-size: 1.5em; color: #1d2327; }
.sce-timer { font-size: 1.3em; font-weight: 600; color: #d63638; background: #fff; padding: 8px 16px; border-radius: 4px; border: 1px solid #ddd; }
.sce-main { display: flex; padding: 20px; gap: 30px; }
.sce-style1 .sce-main { flex-direction: row; }
.sce-style2 .sce-main { flex-direction: column; }
.sce-media-panel { flex: 1; background: #f8f9fa; padding: 20px; border-radius: 6px; min-height: 300px; display: flex; align-items: center; justify-content: center; }
.sce-story-text { max-height: 500px; overflow-y: auto; padding: 15px; background: #fff; border-radius: 4px; line-height: 1.8; }
.sce-questions-panel { flex: 1; background: #fff; padding: 20px; border-radius: 6px; max-height: 600px; overflow-y: auto; }
.sce-question { margin-bottom: 25px; padding: 15px; background: #f8f9fa; border-radius: 6px; border-left: 3px solid #0073aa; }
.sce-question p { margin-top: 0; margin-bottom: 10px; font-weight: 500; }
.sce-option { display: block; margin: 6px 0; padding: 6px 12px; background: #fff; border-radius: 4px; cursor: pointer; transition: background 0.2s; }
.sce-option:hover { background: #e9ecef; }
.sce-option input[type="radio"] { margin-right: 10px; }
.sce-submit-btn { background: #0073aa; color: #fff; padding: 12px 36px; border: none; border-radius: 4px; font-size: 16px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.sce-submit-btn:hover { background: #005a87; }
.sce-result { background: #f8f9fa; padding: 30px; margin: 20px auto; max-width: 600px; border-radius: 8px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.sce-result h3 { font-size: 2em; margin: 0 0 10px 0; }
.sce-error { background: #f8d7da; color: #721c24; padding: 20px; border-radius: 4px; margin: 20px 0; border-left: 4px solid #dc3545; }

@media (max-width: 768px) {
    .sce-style1 .sce-main { flex-direction: column; }
    .sce-questions-panel { max-height: none; }
    .sce-header { flex-direction: column; gap: 10px; text-align: center; padding: 15px; }
    .sce-timer { font-size: 1em; }
    .sce-main { padding: 10px; gap: 15px; }
    .sce-exercise-grid { grid-template-columns: 1fr; }
}



