/* ── Learning Studio — page-specific ── */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #06060e;
    --surface: #0d0d1c;
    --surface2: #141428;
    --surface3: #1c1c35;
    --border: #252540;
    --border2: #353560;
    --accent: #7b61ff;
    --accent2: #ff6b9d;
    --accent3: #00e5a0;
    --green: #00e5a0;
    --red: #ff4d6d;
    --yellow: #ffd166;
    --blue: #4da6ff;
    --text: #eeeeff;
    --muted: #6666a0;
    --muted2: #4a4a7a;
}

body {
    font-family: 'Noto Sans Thai', sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    min-height: 100vh;
}

.main-content {
    margin-left: var(--sidebar-w, 220px);
    flex: 1;
    padding: 24px;
    display: flex;
    gap: 24px;
}

.column {
    flex: 1;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.input-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.tab-button {
    padding: 12px 16px;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
}

.tab-button.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.tab-content {
    display: none;
    background: var(--surface2);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--muted);
}

textarea, input[type="text"], input[type="url"] {
    width: 100%;
    padding: 12px;
    background: var(--surface3);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: 'Noto Sans Thai', sans-serif;
    font-size: 13px;
    resize: vertical;
}

textarea {
    min-height: 120px;
}

.analyze-button {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Noto Sans Thai', sans-serif;
    font-size: 14px;
}

.analyze-button:hover {
    background: #8d7aff;
}

.stepper {
    margin-top: 24px;
    background: var(--surface2);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.stepper-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 16px;
}

.stepper-items {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
}

.stepper-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.stepper-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 50%;
    height: 2px;
    background: var(--border);
}

.stepper-item.done:not(:last-child)::after {
    background: var(--green);
}

.stepper-bubble {
    width: 40px;
    height: 40px;
    background: var(--surface3);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 12px;
    font-weight: 600;
}

.stepper-item.done .stepper-bubble {
    background: var(--green);
    border-color: var(--green);
}

.stepper-item.running .stepper-bubble {
    background: var(--blue);
    border-color: var(--blue);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.stepper-label {
    font-size: 11px;
    color: var(--muted);
}

.output-box {
    background: var(--surface3);
    padding: 16px;
    border-radius: 8px;
    border-left: 3px solid var(--blue);
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
}

.search-box {
    padding: 10px 12px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 13px;
    width: 100%;
    margin-bottom: 16px;
    font-family: 'Noto Sans Thai', sans-serif;
}

.session-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.session-card:hover {
    border-color: var(--accent);
    background: var(--surface3);
}

.session-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.session-icon {
    font-size: 20px;
}

.session-title {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
}

.session-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.session-badge.done {
    background: var(--accent);
    color: white;
}

.session-badge.running {
    background: var(--blue);
    color: white;
}

.session-meta {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

.template-preview {
    margin-top: 16px;
    padding: 12px;
    background: var(--surface3);
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--green);
    line-height: 1.5;
    max-height: 150px;
    overflow-y: auto;
}
