/* Lessons Specific Styles */

/* Header Navigation */
.header-nav {
    display: flex;
    gap: 8px;
    margin-left: 32px;
}

.nav-link {
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-link:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.nav-link.active {
    background: var(--sap-light-blue);
    color: var(--sap-blue);
}

.nav-link-external {
    border: 1px solid var(--sap-orange);
    color: var(--sap-orange) !important;
}

.nav-link-external:hover {
    background: var(--sap-orange) !important;
    color: #fff !important;
}

/* Welcome Card for Lessons */
.lessons-welcome {
    background: linear-gradient(135deg, #107e3e, #0a6ed1);
}

/* Course Cards */
.course-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.course-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
}

.course-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.course-card-header {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
}

.course-icon {
    width: 56px;
    height: 56px;
    background: var(--sap-light-blue);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sap-blue);
}

.course-icon svg {
    width: 28px;
    height: 28px;
}

.course-card-title {
    flex: 1;
}

.course-card-title h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.course-card-title span {
    font-size: 13px;
    color: var(--text-secondary);
}

.course-card-body {
    padding: 24px;
}

.course-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.course-card-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.course-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.course-meta-item svg {
    color: var(--sap-blue);
}

.course-card-progress {
    margin-bottom: 20px;
}

.course-card-btn {
    width: 100%;
    padding: 12px;
    background: var(--sap-blue);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.course-card-btn:hover {
    background: #0854a0;
}

/* Course Detail View */
.course-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.course-info h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.course-info p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Lesson List */
.lesson-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lesson-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.lesson-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.lesson-item.completed {
    border-left: 4px solid var(--sap-green);
}

.lesson-number {
    width: 40px;
    height: 40px;
    background: var(--sap-light-blue);
    color: var(--sap-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.lesson-item.completed .lesson-number {
    background: var(--sap-green);
    color: white;
}

.lesson-item.completed .lesson-number::after {
    content: '✓';
}

.lesson-item.completed .lesson-number span {
    display: none;
}

.lesson-item-info {
    flex: 1;
}

.lesson-item-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.lesson-item-duration {
    font-size: 13px;
    color: var(--text-secondary);
}

.lesson-item-arrow {
    color: var(--text-secondary);
}

/* Lesson View */
.lesson-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.lesson-info {
    flex: 1;
}

.lesson-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--sap-gold);
    color: var(--text-primary);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.lesson-info h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.lesson-duration {
    font-size: 14px;
    color: var(--text-secondary);
}

.lesson-nav {
    display: flex;
    gap: 8px;
}

.btn-lesson-nav {
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-lesson-nav:hover:not(:disabled) {
    background: var(--sap-light-blue);
    border-color: var(--sap-blue);
}

.btn-lesson-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Lesson Content */
.lesson-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 40px;
    margin-bottom: 24px;
}

.lesson-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--sap-dark-blue);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--sap-gold);
}

.lesson-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 28px 0 16px 0;
}

.lesson-content p {
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* Keypoints Box */
.keypoints-box {
    background: var(--sap-light-blue);
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 24px 0;
}

.keypoints-box h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--sap-blue);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.keypoints-box h4::before {
    content: '📌';
}

.keypoints-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.keypoints-box li {
    padding: 8px 0 8px 24px;
    position: relative;
    font-size: 14px;
    line-height: 1.6;
}

.keypoints-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--sap-green);
    font-weight: bold;
}

/* Comparison Box */
.comparison-box {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 24px 0;
}

.comparison-box h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comparison-box h4::before {
    content: '⚖️';
}

.comparison-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comparison-item {
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    padding: 16px;
    border-left: 4px solid var(--sap-blue);
}

.comparison-item h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--sap-blue);
    margin-bottom: 8px;
}

.comparison-item p {
    font-size: 14px;
    margin-bottom: 8px;
}

.comparison-item .examples {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #fff9e6, #fff3cc);
    border-left: 4px solid var(--sap-gold);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 24px 0;
}

.info-box h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--sap-orange);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box h4::before {
    content: '💡';
}

.info-box p {
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* Content Table */
.content-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}

.content-table th {
    background: var(--sap-dark-blue);
    color: white;
    padding: 12px 16px;
    text-align: left;
    font-weight: 500;
}

.content-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.content-table tr:nth-child(even) {
    background: var(--bg-primary);
}

.content-table tr:hover {
    background: var(--sap-light-blue);
}

/* Content Cards */
.content-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.content-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all 0.2s;
}

.content-card:hover {
    border-color: var(--sap-blue);
    box-shadow: var(--shadow-sm);
}

.content-card-icon {
    width: 44px;
    height: 44px;
    background: var(--sap-light-blue);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 20px;
}

.content-card h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--sap-dark-blue);
}

.content-card p {
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    color: var(--text-secondary);
}

/* Code Block */
.code-block {
    background: #1e1e1e;
    border-radius: var(--radius-md);
    margin: 24px 0;
    overflow: hidden;
}

.code-block-header {
    background: #333;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-block-title {
    font-size: 13px;
    color: #999;
}

.code-block-lang {
    font-size: 12px;
    color: var(--sap-gold);
    text-transform: uppercase;
}

.code-block pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #d4d4d4;
}

/* Lesson Footer */
.lesson-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.btn-complete {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--sap-green);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-complete:hover {
    background: #0d6b34;
}

.btn-complete.completed {
    background: var(--bg-primary);
    color: var(--sap-green);
    border: 2px solid var(--sap-green);
}

.btn-next-lesson {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--sap-blue);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-next-lesson:hover {
    background: #0854a0;
}

/* Sidebar Course Item */
.course-item {
    display: block;
    padding: 12px 16px;
    margin-bottom: 4px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text-primary);
}

.course-item:hover {
    background: var(--sap-light-blue);
}

.course-item.active {
    background: var(--sap-blue);
    color: white;
}

.course-item-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.course-item-meta {
    font-size: 12px;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .course-cards {
        grid-template-columns: 1fr;
    }

    .lesson-content {
        padding: 24px;
    }

    .lesson-header {
        flex-wrap: wrap;
    }

    .lesson-info {
        order: -1;
        width: 100%;
        margin-bottom: 12px;
    }

    .lesson-footer {
        flex-direction: column;
    }

    .btn-complete,
    .btn-next-lesson {
        width: 100%;
        justify-content: center;
    }

    .content-cards {
        grid-template-columns: 1fr;
    }

    .header-nav {
        display: none;
    }

    .ho-block {
        margin: 16px 0;
    }

    .ordering-item {
        font-size: 13px;
        padding: 10px 12px;
    }

    .matching-container {
        flex-direction: column;
    }

    .matching-col {
        width: 100%;
    }

    .sim-screen {
        padding: 12px;
    }

    .sim-fields {
        grid-template-columns: 1fr;
    }

    .sandbox-textarea {
        font-size: 12px;
        min-height: 120px;
    }

    .config-layout {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   HANDS-ON INTERACTIVE BLOCKS
   ========================================== */

/* Common Block Styles */
.ho-block {
    background: var(--bg-white);
    border: 2px solid var(--sap-blue);
    border-radius: var(--radius-lg);
    margin: 32px 0;
    overflow: hidden;
}

.ho-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #e8f4fd, #f0f7ff);
    border-bottom: 1px solid rgba(10, 110, 209, 0.15);
}

.ho-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.ho-title-area {
    flex: 1;
}

.ho-title-area h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--sap-dark-blue);
    margin: 0 0 4px 0;
    border: none;
    padding: 0;
}

.ho-title-area p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.ho-body {
    padding: 20px;
}

.ho-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.ho-check-btn {
    padding: 10px 24px;
    background: var(--sap-blue);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.ho-check-btn:hover {
    background: #0854a0;
}

.ho-reset-btn {
    padding: 10px 20px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.ho-reset-btn:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.ho-score {
    padding: 4px 12px;
    background: var(--sap-gold);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.ho-feedback {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ho-feedback-icon {
    font-size: 24px;
}

.ho-feedback p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.ho-feedback-perfect {
    background: #dff6dd;
    color: #107e3e;
}

.ho-feedback-partial {
    background: #fff3cd;
    color: #856404;
}

.ho-feedback-incorrect {
    background: #f8d7da;
    color: #721c24;
}

.ho-progress {
    padding: 0 20px 12px;
}

.ho-progress-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.ho-progress-fill {
    height: 100%;
    background: var(--sap-green);
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* ==========================================
   ORDERING EXERCISE
   ========================================== */

.ordering-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ordering-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: grab;
    transition: all 0.2s;
    user-select: none;
}

.ordering-item:hover {
    border-color: var(--sap-blue);
    box-shadow: 0 2px 8px rgba(10, 110, 209, 0.1);
}

.ordering-item.dragging {
    opacity: 0.5;
    border-color: var(--sap-blue);
    background: var(--sap-light-blue);
}

.ordering-item.correct {
    border-color: var(--sap-green);
    background: #dff6dd;
}

.ordering-item.incorrect {
    border-color: #bb2d3b;
    background: #f8d7da;
}

.ordering-handle {
    color: var(--text-secondary);
    font-size: 18px;
    flex-shrink: 0;
}

.ordering-text {
    font-size: 14px;
    line-height: 1.5;
}

/* ==========================================
   MATCHING EXERCISE
   ========================================== */

.matching-container {
    display: flex;
    gap: 24px;
}

.matching-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.matching-item {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    text-align: center;
}

.matching-item:hover {
    border-color: var(--sap-blue);
}

.matching-item.selected {
    border-color: var(--sap-blue);
    background: var(--sap-light-blue);
    box-shadow: 0 0 0 2px rgba(10, 110, 209, 0.2);
}

.matching-item.matched {
    border-color: var(--sap-gold);
    background: #fff9e6;
}

.matching-item.correct {
    border-color: var(--sap-green);
    background: #dff6dd;
}

.matching-item.incorrect {
    border-color: #bb2d3b;
    background: #f8d7da;
}

.matching-connections {
    min-height: 4px;
}

/* ==========================================
   FILL-BLANK EXERCISE
   ========================================== */

.fill-blank-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fill-blank-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all 0.2s;
}

.fill-blank-item.correct {
    border-color: var(--sap-green);
    background: #dff6dd;
}

.fill-blank-item.incorrect {
    border-color: #bb2d3b;
    background: #f8d7da;
}

.fill-blank-num {
    font-weight: 600;
    color: var(--sap-blue);
    flex-shrink: 0;
    width: 24px;
}

.fill-blank-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.8;
}

.fill-blank-input {
    display: inline-block;
    width: 120px;
    padding: 4px 8px;
    border: 1px solid var(--sap-blue);
    border-radius: 4px;
    font-size: 14px;
    background: white;
    text-align: center;
    margin: 0 4px;
}

.fill-blank-hint {
    cursor: help;
    font-size: 16px;
    flex-shrink: 0;
}

/* ==========================================
   SIMULATOR
   ========================================== */

.simulator-block {
    border-color: #1a5276;
}

.simulator-block .ho-header {
    background: linear-gradient(135deg, #1a5276, #2471a3);
    border-bottom: none;
}

.simulator-block .ho-header .ho-title-area h4 {
    color: white;
}

.simulator-block .ho-header .ho-title-area p {
    color: rgba(255, 255, 255, 0.8);
}

.sim-instruction {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sim-step-indicator {
    background: #ffc107;
    color: #333;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.sim-instruction-text {
    font-size: 14px;
    margin: 0 !important;
}

.sim-screen {
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.sim-titlebar {
    background: linear-gradient(180deg, #6691b2, #4a7a9b);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 13px;
}

.sim-tcode-label {
    font-weight: 500;
}

.sim-tcode-input {
    width: 120px;
    padding: 4px 8px;
    border: 1px solid #999;
    border-radius: 2px;
    font-size: 13px;
    background: white;
}

.sim-screen-title {
    flex: 1;
    text-align: center;
    font-weight: 500;
}

.sim-form {
    padding: 16px;
}

.sim-form-section {
    margin-bottom: 16px;
}

.sim-form-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 4px;
    border-bottom: 1px solid #ddd;
}

.sim-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sim-field-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sim-field-group label {
    font-size: 12px;
    color: #555;
    font-weight: 500;
}

.sim-input, .sim-select {
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 13px;
    background: white;
    transition: all 0.2s;
}

.sim-input:focus, .sim-select:focus {
    outline: none;
    border-color: var(--sap-blue);
}

.sim-highlighted {
    border-color: #ffc107 !important;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.3) !important;
    animation: sim-pulse 1.5s infinite;
}

@keyframes sim-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.3); }
    50% { box-shadow: 0 0 0 6px rgba(255, 193, 7, 0.15); }
}

.sim-correct {
    border-color: var(--sap-green) !important;
    background: #dff6dd !important;
}

.sim-error {
    border-color: #bb2d3b !important;
    background: #f8d7da !important;
    animation: sim-shake 0.3s;
}

@keyframes sim-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.sim-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.sim-table th {
    background: #e8e8e8;
    padding: 8px;
    text-align: left;
    font-weight: 500;
    border: 1px solid #ccc;
}

.sim-table td {
    padding: 4px;
    border: 1px solid #ccc;
}

.sim-table .sim-input {
    width: 100%;
    border: none;
    padding: 6px;
}

.sim-statusbar {
    background: #e8e8e8;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #ccc;
}

.sim-btn {
    padding: 6px 16px;
    background: #f0f0f0;
    border: 1px solid #999;
    border-radius: 2px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.sim-btn:hover {
    background: #e0e0e0;
}

.sim-btn-primary {
    background: var(--sap-blue);
    color: white;
    border-color: var(--sap-blue);
}

.sim-btn-primary:hover {
    background: #0854a0;
}

.sim-status-msg {
    flex: 1;
    font-size: 12px;
    color: #666;
}

.sim-status-ok {
    color: var(--sap-green);
}

.sim-completion {
    text-align: center;
    padding: 24px;
}

.sim-completion-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.sim-completion-msg {
    font-size: 15px;
    color: var(--sap-green);
    font-weight: 500;
    margin: 0 !important;
}

/* ==========================================
   SANDBOX - CODE EDITOR
   ========================================== */

.sandbox-block {
    border-color: #2c3e50;
}

.sandbox-block .ho-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-bottom: none;
}

.sandbox-block .ho-header .ho-title-area h4 {
    color: white;
}

.sandbox-block .ho-header .ho-title-area p {
    color: rgba(255, 255, 255, 0.8);
}

.sandbox-editor-area {
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 16px;
}

.sandbox-editor-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #333;
}

.sandbox-lang {
    font-size: 12px;
    color: var(--sap-gold);
    font-weight: 600;
}

.sandbox-toolbar-btns {
    display: flex;
    gap: 8px;
}

.sandbox-run-btn {
    padding: 6px 16px;
    background: var(--sap-green);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.sandbox-run-btn:hover {
    background: #0d6b34;
}

.sandbox-textarea {
    width: 100%;
    min-height: 160px;
    padding: 16px;
    background: #1e1e1e;
    color: #d4d4d4;
    border: none;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
}

.sandbox-output-area {
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.sandbox-output-header {
    padding: 8px 12px;
    background: var(--bg-primary);
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid #ddd;
}

.sandbox-output-content {
    padding: 12px;
    max-height: 300px;
    overflow: auto;
}

.sandbox-output-placeholder {
    color: var(--text-secondary);
    font-size: 13px;
    text-align: center;
    margin: 0 !important;
}

.sandbox-result-count {
    font-size: 13px;
    color: var(--sap-green);
    font-weight: 500;
    margin-bottom: 8px;
}

.sandbox-result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.sandbox-result-table th {
    background: var(--sap-dark-blue);
    color: white;
    padding: 6px 10px;
    text-align: left;
}

.sandbox-result-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #eee;
}

.sandbox-result-table tr:nth-child(even) {
    background: var(--bg-primary);
}

.sandbox-error {
    color: #bb2d3b;
    font-size: 13px;
    padding: 8px;
    background: #f8d7da;
    border-radius: 4px;
}

.sandbox-empty {
    color: var(--text-secondary);
    font-size: 13px;
    text-align: center;
    padding: 12px;
}

.sandbox-challenges {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
}

.sandbox-challenges h5 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
    padding: 0;
    border: none;
}

.sandbox-challenge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
}

.sandbox-challenge-item:last-child {
    border-bottom: none;
}

.sandbox-challenge-status {
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.sandbox-challenge-task {
    flex: 1;
}

.sandbox-challenge-hint {
    cursor: help;
}

.sandbox-challenge-item.challenge-passed {
    color: var(--sap-green);
}

/* ==========================================
   SANDBOX - CONFIG PANEL
   ========================================== */

.config-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.config-settings-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--sap-dark-blue);
}

.config-item {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.config-toggle-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #ccc;
    border-radius: 12px;
    transition: 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--sap-green);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.config-effects {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.config-effect {
    font-size: 11px;
    padding: 2px 8px;
    background: var(--bg-primary);
    border-radius: 10px;
    color: var(--text-secondary);
}

.config-scenarios {
    margin-top: 16px;
}

.config-scenario-btn {
    display: block;
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: left;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.config-scenario-btn:hover {
    border-color: var(--sap-blue);
    background: var(--sap-light-blue);
}

.config-scenario-btn strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}

.config-scenario-btn span {
    font-size: 12px;
    color: var(--text-secondary);
}

.config-test-area {
    padding: 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
}

.config-test-item {
    margin-bottom: 12px;
}

.config-test-btn {
    padding: 10px 20px;
    background: var(--sap-blue);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.config-test-btn:hover {
    background: #0854a0;
}

.config-test-result {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    min-height: 20px;
}

.config-test-success {
    background: #dff6dd;
    color: var(--sap-green);
}

.config-test-fail {
    background: #f8d7da;
    color: #bb2d3b;
}
