/* Enhanced Breadcrumb */
.enhanced-breadcrumb {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.enhanced-breadcrumb .breadcrumb {
    margin: 0;
}

.enhanced-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.enhanced-breadcrumb .breadcrumb-item a:hover {
    color: white;
}

.enhanced-breadcrumb .breadcrumb-item.active {
    color: white;
}

/* Animate on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced stat cards with animation */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4caf50, #66bb6a, #81c784);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

/* Enhanced leader cards */
.leader-card {
    position: relative;
    overflow: hidden;
}

.leader-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #2e7d32, #4caf50, #66bb6a);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.leader-card:hover::before {
    transform: scaleX(1);
}

.leader-avatar {
    transition: all 0.3s ease;
}

.leader-card:hover .leader-avatar {
    transform: scale(1.1) rotate(5deg);
}

/* Enhanced position cards */
.position-card {
    position: relative;
    overflow: hidden;
}

.position-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(46, 125, 50, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.position-card:hover::after {
    width: 300px;
    height: 300px;
}

.position-icon {
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.position-card:hover .position-icon {
    transform: scale(1.15) rotate(10deg);
}

.position-count {
    position: relative;
    z-index: 1;
}

.position-count .number {
    transition: all 0.3s ease;
}

.position-card:hover .position-count .number {
    transform: scale(1.1);
    color: #1b5e20;
}

/* Enhanced function cards */
.function-card {
    position: relative;
    overflow: hidden;
}

.function-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #2e7d32, #4caf50, #66bb6a);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.function-card:hover::before {
    transform: scaleX(1);
}

.function-icon {
    transition: all 0.4s ease;
}

.function-card:hover .function-icon {
    transform: scale(1.1) rotate(-10deg);
}

/* Enhanced table */
.position-table tbody tr {
    transition: all 0.3s ease;
}

.position-table tbody tr:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.15);
}

.position-table .progress-bar {
    transition: width 1s ease;
}

/* Org chart enhancements */
.org-chart-card {
    transition: all 0.3s ease;
}

.org-chart-card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.chart-actions .btn {
    transition: all 0.3s ease;
}

.chart-actions .btn:hover {
    transform: scale(1.1);
    background-color: white;
    color: #2e7d32;
}

/* Pulse animation for important elements */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.stat-icon {
    animation: pulse 2s ease-in-out infinite;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
.org-chart-image {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Enhanced zoom level indicator */
.zoom-level {
    transition: all 0.3s ease;
}

.zoom-level:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .animate-on-scroll {
        transform: translateY(20px);
    }
    
    .position-card:hover::after {
        width: 200px;
        height: 200px;
    }
}
