body {
    min-height: 100vh;
}

.chart-container {
    min-height: 500px;
    overflow: auto;
    padding: 20px;
}

#chart_div {
    min-width: 100%;
    min-height: 450px;
}

.org-chart-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 20px;
}

.org-tree {
    text-align: center;
}

.org-tree ul {
    padding-top: 20px;
    position: relative;
    transition: all 0.5s;
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.org-tree li {
    display: inline-block;
    vertical-align: top;
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 20px 10px 0 10px;
}

.org-tree li::before, .org-tree li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 2px solid #6f42c1;
    width: 50%;
    height: 20px;
}

.org-tree li::after {
    right: auto;
    left: 50%;
    border-left: 2px solid #6f42c1;
}

.org-tree li:only-child::after, .org-tree li:only-child::before {
    display: none;
}

.org-tree li:only-child {
    padding-top: 0;
}

.org-tree li:first-child::before, .org-tree li:last-child::after {
    border: 0 none;
}

.org-tree li:last-child::before {
    border-right: 2px solid #6f42c1;
    border-radius: 0 5px 0 0;
}

.org-tree li:first-child::after {
    border-radius: 5px 0 0 0;
}

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

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

.org-node-wrapper {
    display: inline-block;
}

.org-children {
    display: flex;
    justify-content: center;
}

.org-node {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 15px 20px;
    min-width: 160px;
    max-width: 200px;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.org-node:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.org-node-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.5);
    margin-bottom: 10px;
}

.org-node-img-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 1.8rem;
    color: rgba(255,255,255,0.8);
}

.org-node-name {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 4px;
}

.org-node-title {
    font-size: 12px;
    opacity: 0.9;
}

.org-node-reports {
    font-size: 10px;
    margin-top: 8px;
    padding: 4px 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: inline-block;
}

.org-collapse-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: white;
    color: #667eea;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

.org-collapse-btn:hover {
    background: #f0f0f0;
}

.employee-item {
    cursor: pointer;
    transition: background-color 0.2s;
}

.employee-item:hover {
    background-color: #f8f9fa;
}

.card {
    border: none;
    border-radius: 10px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
}

.navbar-brand {
    font-weight: bold;
}

.list-group-item {
    border-left: none;
    border-right: none;
}

.list-group-item:first-child {
    border-top: none;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
}

.form-label-sm {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.img-thumbnail {
    background-color: #f8f9fa;
}

.org-node-open-role {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%) !important;
    border: 3px dashed #fff;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4) !important;
}

.org-node-open-role:hover {
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5) !important;
}

.org-open-role-icon {
    background-color: rgba(255,255,255,0.3) !important;
}

.org-open-role-icon i {
    color: #fff;
}
