/**
 * K12 Learning Flow Styles
 */

.k12-flow-container {
    max-width: 1000px;
    margin: 40px auto;
    font-family: 'Inter', sans-serif;
}

/* Progress Bar */
.flow-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    background: #f1f3f5;
    padding: 15px;
    border-radius: 50px;
}

.flow-step-ind {
    flex: 1;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: #adb5bd;
    z-index: 2;
    transition: all 0.3s;
}

.flow-step-ind.done {
    color: #40c057;
}

.flow-step-ind.active {
    color: #228be6;
}

.flow-step-ind.locked {
    opacity: 0.5;
}

/* Sections */
.flow-section {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.4s;
    border: 1px solid #e9ecef;
}

.flow-section.locked {
    opacity: 0.4;
    filter: grayscale(1);
    pointer-events: none;
    position: relative;
}

.flow-section.locked::after {
    content: "🔒 Locked";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #212529;
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
}

/* Cards */
.flow-explanation-card,
.flow-example-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    border-left: 5px solid #228be6;
}

.flow-action-btn {
    background: #228be6;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
}

.flow-action-btn:disabled {
    background: #40c057;
    cursor: default;
}

/* Practice Area */
.practice-question-box {
    background: #fff;
    border: 2px solid #e9ecef;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.practice-question-box.correct {
    border-color: #40c057;
    background: #ebfbee;
}

.practice-question-box.wrong {
    border-color: #fa5252;
    background: #fff5f5;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.practice-opt-btn,
.practice-submit-btn {
    background: #f1f3f5;
    border: 1px solid #dee2e6;
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.practice-input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    margin-bottom: 10px;
}

.lock-overlay {
    padding: 100px 0;
    text-align: center;
    background: #f8f9fa;
    border-radius: 20px;
    color: #868e96;
    font-weight: 700;
}

/* Notebook & Hint System (Task: Solve display issues) */
.ttc-notebook-content {
    background: #fdfdfd;
    background-image: linear-gradient(#e1e1e1 1px, transparent 1px);
    background-size: 100% 2.2rem;
    position: relative;
    padding: 1rem 1rem 1rem 3.5rem;
    min-height: 200px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-size: 1.1rem;
    line-height: 2.2rem;
    color: #333;
}

.ttc-notebook-content::before {
    content: '';
    position: absolute;
    left: 2.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 0, 0, 0.2);
}

.ttc-hint-step {
    margin: 0;
    padding: 0;
    min-height: 2.2rem;
}

.ttc-hint-step.is-hidden {
    display: none !important;
}

.ttc-hint-btn-wrapper {
    margin-top: 2rem;
    text-align: center;
}

.ttc-hint-btn {
    background: var(--ql-primary, #6366f1);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ttc-hint-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.ttc-method-trigger {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #f8faff;
    border: 1px solid #e0e7ff;
    border-left: 5px solid var(--ql-primary, #6366f1);
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 0.5rem;
    border-radius: 8px;
}