/* Personnel Location Tooltip Styles */

.drqk li {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.drqk li:hover {
    transform: translateY(-2px);
    z-index: 10001;
}

/* Tooltip Container */
.personnel-tooltip {
    position: absolute;
    left: 110%;
    top: 50%;
    transform: translateY(-50%);
    width: 420px;
    background: linear-gradient(135deg, rgba(25, 55, 95, 0.98) 0%, rgba(35, 70, 120, 0.98) 100%);
    border: 2px solid rgba(0, 220, 255, 0.7);
    border-radius: 10px;
    padding: 18px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 220, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    pointer-events: none;
    backdrop-filter: blur(12px);
}

.drqk li:hover .personnel-tooltip {
    opacity: 1;
    visibility: visible;
    animation: tooltipFadeIn 0.3s ease;
}

/* Tooltip Arrow */
.personnel-tooltip::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid rgba(0, 212, 255, 0.3);
}

/* Tooltip Header */
.personnel-tooltip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.personnel-tooltip-header h4 {
    font-size: 16px;
    color: #00ffff;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 0 12px rgba(0, 255, 255, 0.5);
    letter-spacing: 1px;
}

.personnel-tooltip-total {
    font-size: 14px;
    color: #00ff7f;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 255, 127, 0.4);
}

/* Mine List */
.personnel-mine-list {
    max-height: 240px;
    overflow-y: auto;
}

.personnel-mine-list::-webkit-scrollbar {
    width: 4px;
}

.personnel-mine-list::-webkit-scrollbar-track {
    background: rgba(0, 212, 255, 0.1);
    border-radius: 2px;
}

.personnel-mine-list::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 2px;
}

.personnel-mine-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

/* Mine Item */
.personnel-mine-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.2s ease;
}

.personnel-mine-item:hover {
    background: rgba(0, 212, 255, 0.05);
    padding-left: 4px;
}

.personnel-mine-item:last-child {
    border-bottom: none;
}

.personnel-mine-name {
    font-size: 15px;
    color: #ffffff;
    flex: 1;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

.personnel-mine-value {
    display: flex;
    align-items: center;
    gap: 10px;
}

.personnel-mine-count {
    font-size: 22px;
    font-weight: 800;
    color: #ffff00;
    min-width: 50px;
    text-align: right;
    text-shadow: 0 0 15px rgba(255, 255, 0, 0.6);
}

.personnel-mine-unit {
    font-size: 14px;
    color: #ffffff;
    width: 26px;
    font-weight: 600;
}

/* Status Indicator */
.personnel-status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-left: 8px;
}

.personnel-status-normal {
    background: #4ecb73;
    box-shadow: 0 0 6px rgba(78, 203, 115, 0.6);
}

.personnel-status-warning {
    background: #ffaa00;
    box-shadow: 0 0 6px rgba(255, 170, 0, 0.6);
    animation: breathe 2s ease-in-out infinite;
}

.personnel-status-danger {
    background: #ff3366;
    box-shadow: 0 0 8px rgba(255, 51, 102, 0.8);
    animation: pulseRed 1.5s ease-in-out infinite;
}

/* Tooltip Footer */
.personnel-tooltip-footer {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.personnel-footer-label {
    font-size: 11px;
    color: #8ab4f8;
}

.personnel-footer-value {
    font-size: 12px;
    color: #fff;
    font-weight: 600;
}

/* Progress Bar */
.personnel-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}

.personnel-progress-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
    background: linear-gradient(90deg, #00d4ff 0%, #4ecb73 100%);
}

.personnel-progress-fill.warning {
    background: linear-gradient(90deg, #ffaa00 0%, #ff6b00 100%);
}

.personnel-progress-fill.danger {
    background: linear-gradient(90deg, #ff3366 0%, #cc0033 100%);
}

/* Animations */
@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

@keyframes breathe {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.9);
    }
}

@keyframes pulseRed {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 8px rgba(255, 51, 102, 0.8);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 16px rgba(255, 51, 102, 1);
    }
}

/* Number Update Animation */
.personnel-mine-count.updating {
    animation: numberUpdate 0.5s ease;
}

@keyframes numberUpdate {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
        color: #00d4ff;
    }
}

/* 报警数字红色显示 (除了井下人数) */
.drqk li[data-personnel-type="disconnect"] em,
.drqk li[data-personnel-type="overcrowded"] em,
.drqk li[data-personnel-type="alarm"] em,
.drqk li[data-personnel-type="overtime"] em,
.drqk li[data-personnel-type="absent"] em {
    background: linear-gradient(0deg, #ff3366, #ff6699);
    background-size: cover;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}