/* 任務圖示樣式 */
.task-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: all 0.2s ease;
}

.task-icon-large {
    width: 96px;
    height: 96px;
}

.task-icon-small {
    width: 32px;
    height: 32px;
}

/* 小圖示的 hover 效果 */
.task-icon-container .task-icon-small.task-icon-hover {
    width: 32px;
    height: 32px;
}

/* 互動效果 */
.task-icon-container {
    position: relative;
    display: inline-block;
}

.task-icon-container .task-icon-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.task-icon-container:hover .task-icon {
    opacity: 0;
}

.task-icon-container:hover .task-icon-hover {
    opacity: 1;
}

/* 狀態樣式 */
.task-icon.completed {
    filter: brightness(1.2) saturate(1.3);
}

.task-icon.disabled {
    opacity: 0.5;
    filter: grayscale(1);
}

/* 深色主題支援 */
@media (prefers-color-scheme: dark) {
    .task-icon {
        filter: brightness(0.9) contrast(1.1);
    }
}

/* Bootstrap 整合 */
.card .task-icon {
    margin-right: 8px;
    vertical-align: middle;
}

.btn .task-icon {
    margin-right: 6px;
    width: 32px;
    height: 32px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .task-icon-large {
        width: 64px;
        height: 64px;
    }
    
    .task-icon {
        width: 32px;
        height: 32px;
    }
    
    .task-icon-small {
        width: 24px;
        height: 24px;
    }
    
    .task-icon-container .task-icon-hover {
        width: 32px;
        height: 32px;
    }
}