﻿svg {
    width: 100%;
    height: 100vh;
    background: #fafafa;
    cursor: grab;
}

.link {
    fill: none;
}

.foreign-container {
    pointer-events: all;
}

.panel {
    position: fixed;
    top: 0;
    right: -520px;
    width: 500px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px 0 0 8px;
    transition: right 0.4s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
}

    .panel.show {
        right: 0;
        padding: 16px;
    }

    .panel .close-btn {
        align-self: flex-end;
        background: #e74c3c;
        color: white;
        border: none;
        padding: 6px 12px;
        border-radius: 4px;
        cursor: pointer;
        margin-bottom: 10px;
    }

.node-box {
    background: #e8fff1;
    border: 2px solid #2ecc71;
    border-radius: 10px;
    padding: 10px;
    color: #2c3e50;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
}

    .node-box .title {
        flex: 1;
        justify-content: center;
        font-weight: bold;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .node-box .subtitle {
        font-size: 12px;
        color: #888;
    }

.toggle-icon {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2ecc71;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btnShowEmp {
    margin-top: 10px;
    padding-top: 10px;
    background: #2ecc71;
    border: none;
    color: white;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.card-title_header {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
}

.card-title {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: center;
}

    .card-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: linear-gradient(90deg, #667eea, #764ba2);
        border-radius: 2px;
    }

.card-item {
    font-size: 18px;
    color: #34495e;
    margin: 20px 0;
    padding: 12px 20px;
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    position: relative;
    transition: all 0.2s ease;
    /* Tạo hiệu ứng nổi nhẹ cho từng item */
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1), -2px -2px 4px rgba(255, 255, 255, 0.8);
}

.employee-card {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    padding: 10px 10px;
    /* width: 280px; */
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    /* Bỏ viền đen */
    border: none;
    /* Tạo độ nổi khối với box-shadow */
    box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.25), -10px -10px 20px rgba(255, 255, 255, 0.8), inset 2px 2px 4px rgba(255, 255, 255, 0.9), inset -2px -2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
}

    .employee-card::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transform: rotate(45deg);
        transition: all 0.6s ease;
        opacity: 0;
    }

    .employee-card:hover::after {
        animation: shine 0.6s ease-in-out;
    }

@keyframes shine {
    0% {
        opacity: 0;
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .employee-card {
        width: 250px;
        padding: 30px 20px;
    }

    .card-title {
        font-size: 24px;
    }

    .card-item {
        font-size: 16px;
    }
}

.ListEmpScroll {
    overflow-y: auto;
}
