﻿
.message-event-icon {
    position: absolute;
    display: block;
    width: 40px; /* Width of the icon */
    height: 30px; /* Height of the icon */
    background-color: darkgray; /* Background color for the icon */
    border-radius: 0px 10px 10px 10px; /* Rounded corners */
}

.message-counter {
    margin-left: 10px;
    color: white; /* Text color */
    font-size: 16px; /* Font size for the counter */
    font-weight: 600;
}


#page-project-tree-pdf {
    width: fit-content;
    justify-self: center;
    display: flex;
    justify-content: center;
}

.static-tree-view {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 30px;
    min-height: 100vh;
}

.tree-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 600px;
    margin: 0 auto;
}

.tree-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2.2em;
    font-weight: 300;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 15px;
}

.tree-node {
    position: relative;
    margin-left: 35px;
    padding: 8px 0;
}

    .tree-node::before {
        content: '';
        position: absolute;
        top: 0;
        left: -20px;
        width: 20px;
        height: 100%;
        border-left: 2px solid #3498db;
        transition: all 0.3s ease;
    }

    .tree-node:first-child::before {
        border-top-left-radius: 4px;
        height: 100%;
        top: 0;
    }

    .tree-node:last-child::before {
        height: 32px;
        border-bottom: none;
        border-bottom-left-radius: 4px;
    }

    .tree-node::after {
        content: '';
        position: absolute;
        top: 30px;
        left: -20px;
        width: 20px;
        border-top: 2px solid #3498db;
        transition: all 0.3s ease;
    }

.tree-children {
    margin-left: 35px;
    position: relative;
    
}

    .tree-children::before {
        content: '';
        position: absolute;
        top: 5px;
        left: -20px;
        width: 2px;
        height: calc(100% + 5);
        background: linear-gradient(to bottom, #3498db, #2980b9);
        border-radius: 1px;
    }

.tree-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin: 4px 0;
    background: white;
    border: 2px solid #b0b4b5;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

    .tree-item:hover {
        border-color: #3498db;
        box-shadow: 0 4px 10px rgba(52, 152, 219, 0.2);
        transform: translateY(-1px);
    }

.tree-content {
    flex: 1;
    font-weight: 400;
    color: #2c3e50;
    font-size: 10px;
}

.tree-badge {
    margin-left: 12px;
    padding: 4px 10px;
    background: #95a5a6;
    color: white;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 400;
    min-width: 40px;
    text-align: center;
}

    .tree-badge.primary {
        background: linear-gradient(45deg, #3498db, #2980b9);
    }

    .tree-badge.success {
        background: linear-gradient(45deg, #27ae60, #229954);
    }

    .tree-badge.warning {
        background: linear-gradient(45deg, #f39c12, #e67e22);
        color: #fff;
    }

    .tree-badge.danger {
        background: linear-gradient(45deg, #e74c3c, #c0392b);
    }

    .tree-badge.info {
        background: linear-gradient(45deg, #17a2b8, #138496);
    }

    .tree-badge.secondary {
        background: linear-gradient(45deg, #95a5a6, #7f8c8d);
    }

.tree-icon {
    margin-right: 12px;
    width: 24px;
    text-align: center;
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.no-children .tree-item::after {
    display: none;
}

.tree-root {
    margin-left: 0;
}

    .tree-root::before,
    .tree-root::after {
        display: none;
    }



