/* 智慧营地仪表盘界面优化样式 */

/* 基础美化 */
body {
    font-family: 'Inter', sans-serif;
}

/* 卡片样式优化 */
.status-card, .patrol-card, .stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 168, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.status-card::before, .patrol-card::before, .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00A8FF, #6554C0);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.status-card:hover, .patrol-card:hover, .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 168, 255, 0.25);
    border-color: rgba(0, 168, 255, 0.4);
}

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

/* 玻璃态效果增强 */
.bg-primary\/60, .bg-dark\/80 {
    background: rgba(22, 27, 34, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* 按钮优化 */
button {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

button:hover {
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* 按钮涟漪效果 */
button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

button:active::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(100, 100);
        opacity: 0;
    }
}

/* 主要按钮优化 */
.bg-accent\/80 {
    background: linear-gradient(90deg, #00A8FF, #0077CC);
    border: none;
}

.bg-accent\/80:hover {
    background: linear-gradient(90deg, #0095E6, #0066AA);
    box-shadow: 0 4px 12px rgba(0, 168, 255, 0.3);
}

/* 数字动画 */
.count-animate {
    animation: countUp 0.5s ease-out;
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 地图控制优化 */
.map-controls button {
    transition: all 0.2s ease;
}

.map-controls button:hover {
    background: rgba(0, 168, 255, 0.2);
    transform: scale(1.1);
}

/* 消息通知动画 */
.message-item {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* 加载动画 */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse-loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 紧急按钮突出显示 */
button:has(.fa-bell), button:has(.fa-exclamation-circle) {
    animation: pulse-slow 2s infinite;
    border: 2px solid rgba(255, 171, 0, 0.5);
}

@keyframes pulse-slow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 171, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 171, 0, 0); }
}

/* 员工列表优化 */
#employeeList > div {
    transition: all 0.2s ease;
    border-radius: 6px;
}

#employeeList > div:hover {
    background: rgba(0, 168, 255, 0.1);
    transform: translateX(5px);
}

/* 进度条样式 */
.progress-bar {
    height: 4px;
    background: rgba(0, 168, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-value {
    height: 100%;
    background: linear-gradient(90deg, #00A8FF, #6554C0);
    transition: width 0.5s ease;
}

/* 导航栏增强 */
#systemStatus {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    animation: pulse 2s infinite;
}

/* 输入框优化 */
input, select {
    transition: all 0.2s ease;
    background: rgba(33, 38, 45, 0.6);
    border: 1px solid rgba(0, 168, 255, 0.3);
}

input:focus, select:focus {
    border-color: #00A8FF;
    box-shadow: 0 0 0 2px rgba(0, 168, 255, 0.2);
    background: rgba(33, 38, 45, 0.8);
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(33, 38, 45, 0.5);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 168, 255, 0.5);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 168, 255, 0.7);
}

/* 文字渐变色 */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(90deg, #00A8FF, #6554C0);
}

/* 预警和紧急响应按钮增强 */
button:contains('一级预警') {
    background: linear-gradient(45deg, #FFAB00, #FF8C00);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

button:contains('紧急响应') {
    background: linear-gradient(45deg, #FF5630, #FF3030);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* 图标增强 */
.text-accent {
    color: #00A8FF;
    filter: drop-shadow(0 0 4px rgba(0, 168, 255, 0.5));
}

/* 状态指示器动画 */
.status-indicator {
    position: relative;
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}