body {
    font-family: 'Inter', sans-serif;
}

/* --- Sitemap Diagram Styles --- */
.sitemap-container {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    overflow-x: auto;
}

.tree,
.tree ul,
.tree li {
    position: relative;
}

.tree ul {
    padding-top: 20px;
    list-style: none;
}

.tree li {
    padding-left: 30px;
}

.tree li::before,
.tree li::after {
    content: '';
    position: absolute;
    left: 0;
}

.tree li::before {
    border-top: 2px solid #d1d5db;
    top: 22px;
    width: 30px;
    height: 0;
}

.tree li::after {
    border-left: 2px solid #d1d5db;
    height: 100%;
    width: 0px;
    top: 0;
}

.tree ul > li:last-child::after {
    height: 22px;
}

.tree li span {
    display: inline-block;
    border: 1px solid #d1d5db;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    min-width: 160px;
    text-align: center;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease-in-out;
}

.tree li span:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    transform: translateY(-2px);
}

.tree > ul > li::before,
.tree > ul > li::after {
    border: 0;
}

.tree > ul > li {
    padding-left: 0;
}

.tree > ul > li > span {
    background-color: #eef2ff;
    border-color: #c7d2fe;
    color: #4338ca;
    font-weight: 600;
}


/* --- User Flow Diagram Styles --- */
.flow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.flow-step {
    display: flex;
    justify-content: center;
    width: 100%;
}

.flow-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    margin: 4px 0;
}

.flow-box {
    width: 100%;
    max-width: 480px;
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

.flow-box:hover {
    border-color: #9ca3af;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.flow-box.action {
    background-color: #e0e7ff;
    border-color: #a5b4fc;
}

.flow-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.flow-box.option {
    width: auto;
    max-width: none;
    padding: 0.5rem 1rem;
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
    font-weight: 500;
}

.flow-box.option:hover {
    background-color: #dcfce7;
    border-color: #86efac;
}

/* --- Animations --- */
.diagram-section {
    opacity: 0;
    transform: translateY(20px);
}
