/* ===========================
   Tutorial Styles - Compact Two Column Layout
   =========================== */

/* Tutorial Section */
.tutorial-section {
    padding: 1.5rem;
    background: #ffffff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

.tutorial-content {
    grid-column: 1 / -1;
    max-width: 100%;
}

/* Tutorial Progress Bar */
.tutorial-progress-bar {
    background: #e5e7eb;
    height: 5px;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    grid-column: 1 / -1;
}

.tutorial-progress-fill {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    height: 100%;
    width: 10%;
    transition: width 0.5s ease;
}

/* Tutorial Steps - Two Columns */
.tutorial-steps {
    position: relative;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.tutorial-step {
    display: none;
    animation: fadeIn 0.3s ease;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    grid-column: 1 / -1;
}

.tutorial-step.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tutorial-step-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    grid-column: 1 / -1;
}

.tutorial-step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), #0a2454);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.tutorial-step-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    padding-left: 52px;
    grid-column: 1 / -1;
}

/* Tutorial Visual - Left Column */
.tutorial-visual {
    padding: 1rem;
    background: #f9fafb;
    border-radius: var(--radius-sm);
    border: 2px solid #e5e7eb;
}

.browser-mockup {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.browser-bar {
    background: #e5e7eb;
    padding: 0.6rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.browser-dots {
    display: flex;
    gap: 0.4rem;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #f59e0b; }
.browser-dots span:nth-child(3) { background: #10b981; }

.browser-url {
    flex: 1;
    background: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.mockup-content {
    min-height: 150px;
}

/* Form Demo */
.form-demo {
    background: white;
    padding: 1rem;
    border-radius: 6px;
}

.form-field-demo {
    margin-bottom: 0.75rem;
}

.form-field-demo label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
    font-size: 0.85rem;
}

.form-field-demo input {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    font-size: 0.85rem;
    background: #f9fafb;
}

/* Button Demos */
.btn-demo {
    padding: 0.7rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.75rem 0;
    font-family: inherit;
}

.btn-primary-demo {
    background: var(--primary-color);
    color: white;
    width: 100%;
}

.btn-success-demo {
    background: var(--success-color);
    color: white;
}

.btn-info-demo {
    background: var(--info-color);
    color: white;
}

.success-message-demo {
    background: #d1fae5;
    border-left: 3px solid var(--success-color);
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #065f46;
    font-weight: 600;
    font-size: 0.85rem;
}

.success-message-demo i {
    font-size: 1rem;
}

/* Signature Demo */
.signature-demo {
    background: white;
    padding: 1.25rem;
    border-radius: 6px;
    border: 2px solid #e5e7eb;
    font-size: 0.9rem;
}

/* Fonts List */
.fonts-list {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 6px;
}

.fonts-list p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 0.85rem;
}

.fonts-list i {
    color: var(--info-color);
}

/* Outlook Path */
.outlook-path {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
}

.outlook-path code {
    background: #f9fafb;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--primary-color);
    display: inline-block;
    border: 2px solid #e5e7eb;
}

/* Completion Badge */
.completion-badge {
    text-align: center;
    padding: 1.5rem;
}

.completion-badge i {
    font-size: 3rem;
    color: var(--success-color);
    margin-bottom: 0.75rem;
}

.completion-badge h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.completion-badge p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Tutorial Instructions - Right Column */
.tutorial-instructions {
    background: #e0f2fe;
    border-left: 3px solid var(--primary-color);
    padding: 1rem;
    border-radius: 6px;
}

.tutorial-instructions h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.tutorial-instructions i {
    color: var(--primary-color);
}

.tutorial-instructions ul {
    list-style: none;
    padding: 0;
}

.tutorial-instructions li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
    font-size: 0.85rem;
}

.tutorial-instructions li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 700;
    font-size: 1rem;
}

/* Tutorial Tip */
.tutorial-tip {
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    grid-column: 1 / -1;
}

.tutorial-tip h3 {
    color: #92400e;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.tutorial-tip i {
    color: #f59e0b;
}

.tutorial-tip p {
    color: #92400e;
    margin: 0;
    font-size: 0.85rem;
}

/* Tutorial Navigation */
.tutorial-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e5e7eb;
    gap: 1rem;
    grid-column: 1 / -1;
}

.tutorial-nav-btn {
    padding: 0.7rem 1.25rem;
    border: 2px solid #e5e7eb;
    background: white;
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tutorial-nav-btn:hover:not(:disabled) {
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tutorial-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.tutorial-nav-btn-next {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tutorial-nav-btn-next:hover:not(:disabled) {
    background: #0a2454;
}

.tutorial-step-indicator {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1200px) {
    .tutorial-section {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .tutorial-step.active {
        grid-template-columns: 1fr;
    }

    .tutorial-visual {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .tutorial-section {
        padding: 1rem;
    }

    .tutorial-step {
        padding: 1rem;
    }

    .tutorial-step-title {
        font-size: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .tutorial-step-subtitle {
        padding-left: 0;
    }

    .tutorial-navigation {
        flex-direction: column;
    }

    .tutorial-nav-btn {
        width: 100%;
    }

    .tutorial-step-indicator {
        order: -1;
        margin-bottom: 1rem;
    }
}
