/**
 * Frontend styles for Decision Tree Builder
 */

.dtb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.dtb-article {
    position: relative;
}

.dtb-question-container,
.dtb-recommendation-container {
    margin-bottom: 2rem;
}

.dtb-back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.dtb-back-link:hover {
    text-decoration: underline;
}

.dtb-article h2,
.dtb-article h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.dtb-article h3 {
    font-size: 1.25rem;
}

.dtb-article h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.dtb-answers-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.dtb-answers-list li {
    margin-bottom: 0.75rem;
}

.dtb-answer-link {
    display: block;
    padding: 1rem 1.5rem;
    background-color: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dtb-answer-link:hover {
    background-color: #e8e8e8;
    border-color: #0073aa;
    color: #0073aa;
}

.dtb-answer-link:active {
    transform: scale(0.98);
}

.dtb-progress {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 200px;
}

.dtb-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.dtb-progress-label {
    font-weight: 600;
    color: #666;
}

.dtb-progress-percentage {
    font-weight: 700;
    color: #0073aa;
}

.dtb-breadcrumb {
    font-size: 0.875rem;
    color: #666;
}

.dtb-breadcrumb-link {
    color: #0073aa;
    text-decoration: none;
}

.dtb-breadcrumb-link:hover {
    text-decoration: underline;
}

.dtb-breadcrumb-separator {
    margin: 0 0.5rem;
    color: #999;
}

/* Recommendation styles */
.dtb-recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.dtb-reference-code {
    font-weight: 700;
    font-size: 1.1rem;
    color: #0073aa;
}

.dtb-recommendation-content,
.dtb-recommendation-products,
.dtb-recommendation-care,
.dtb-recommendation-things-needed,
.dtb-recommendation-things-consider {
    margin-bottom: 2rem;
}

.dtb-recommendation-content p,
.dtb-recommendation-products p,
.dtb-recommendation-care p,
.dtb-recommendation-things-needed p,
.dtb-recommendation-things-consider p {
    margin-bottom: 0.75rem;
}

.dtb-recommendation-reference {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.dtb-reference-data {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.875rem;
    white-space: pre-wrap;
}

.dtb-error {
    padding: 1rem;
    background: #ffeaea;
    border: 1px solid #ff6b6b;
    border-radius: 4px;
    color: #c92a2a;
}

.dtb-start {
    text-align: center;
    padding: 3rem 1rem;
}

.dtb-start h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Loading state */
.dtb-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .dtb-container {
        padding: 1rem;
    }
    
    .dtb-progress {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 2rem;
    }
}

