/**
 * 扁平化图标系统
 * 统一的图标样式规范，提供现代化的扁平化设计
 */

/* 基础图标盒子样式 */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 小尺寸图标盒子 */
.icon-box-sm {
    width: 36px;
    height: 36px;
    font-size: 16px;
    border-radius: 10px;
}

/* 大尺寸图标盒子 */
.icon-box-lg {
    width: 64px;
    height: 64px;
    font-size: 28px;
    border-radius: 16px;
}

/* 颜色变体 */
.icon-box.primary {
    background: linear-gradient(135deg, #4361ee 0%, #3a56d4 100%);
    color: #fff;
}

.icon-box.success {
    background: linear-gradient(135deg, #06d6a0 0%, #05c090 100%);
    color: #fff;
}

.icon-box.warning {
    background: linear-gradient(135deg, #ffd166 0%, #ffc532 100%);
    color: #fff;
}

.icon-box.danger {
    background: linear-gradient(135deg, #ef476f 0%, #e6396a 100%);
    color: #fff;
}

.icon-box.info {
    background: linear-gradient(135deg, #118ab2 0%, #0d7a9e 100%);
    color: #fff;
}

.icon-box.purple {
    background: linear-gradient(135deg, #9d4edd 0%, #8b44cf 100%);
    color: #fff;
}

.icon-box.orange {
    background: linear-gradient(135deg, #f77f00 0%, #e06d00 100%);
    color: #fff;
}

.icon-box.teal {
    background: linear-gradient(135deg, #2a9d8f 0%, #238a7d 100%);
    color: #fff;
}

.icon-box.gray {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: #fff;
}

/* 统计卡片图标 */
.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    font-size: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 导航图标 */
.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 16px;
}

/* 头像图标替代 */
.avatar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

/* 图标组 - 用于多个图标的排列 */
.icon-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* 浮动操作图标 */
.fab-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.fab-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* 功能按钮图标 */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-icon:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* 状态指示图标 */
.status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    font-size: 12px;
}

.status-icon.active {
    background-color: #06d6a0;
    color: #fff;
}

.status-icon.inactive {
    background-color: #6c757d;
    color: #fff;
}

.status-icon.pending {
    background-color: #ffd166;
    color: #fff;
}
